49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
getroottable().DebugModelFlag <- false;
|
|
//初始化插件
|
|
function InitPluginInfo() {
|
|
//初始化定时器
|
|
_Timer_Object <- Timer();
|
|
|
|
|
|
//初始化自动重载 只在15线开启
|
|
local ConfigPath = Sq_Game_GetConfig();
|
|
local Channel = ConfigPath.slice(ConfigPath.find("cfg/") + 4, ConfigPath.len());
|
|
if (Channel.find("15")) GameManager.OpenHotFix("/dp_s/Dps_A");
|
|
|
|
local PoolObj = MysqlPool.GetInstance();
|
|
PoolObj.SetBaseConfiguration("127.0.0.1", 3306, "game", "uu5!^%jg");
|
|
//连接池大小
|
|
PoolObj.PoolSize = 10;
|
|
//初始化
|
|
PoolObj.Init();
|
|
|
|
|
|
|
|
// Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg");
|
|
Sq_CreatSocketConnect("192.168.200.24", "65109");
|
|
|
|
//初始化结婚
|
|
ProjectInitFuncMap.P_Marry <- Marry();
|
|
}
|
|
|
|
|
|
|
|
function PrintTag() {
|
|
print(InitSuccessTag);
|
|
}
|
|
|
|
function main() {
|
|
|
|
InitPluginInfo();
|
|
|
|
PrintTag();
|
|
|
|
GameManager.SetGameMaxLevel(95);
|
|
|
|
}
|
|
|
|
|
|
// getroottable().CombatRankServerProject <- CombatRank();
|
|
// getroottable().ServerControlProject <- ServerControl();
|
|
// getroottable().AntonServerProject <- Anton();
|
|
// getroottable().FiendwarServerProject <- Fiendwar(); |