### 新增IO 类

### 新增MD5 类

### 新增Mysql 类

### 新增Timer 类
This commit is contained in:
lenheart
2024-09-20 19:24:32 +08:00
parent 237bcf8719
commit 7f547f5fd4
21 changed files with 1234 additions and 16 deletions

View File

@@ -1,7 +1,17 @@
getroottable().DebugModelFlag <- false;
//初始化插件
function InitPluginInfo() {
Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg");
//初始化定时器
_Timer_Object <- Timer();
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");
}
@@ -17,6 +27,8 @@ function main() {
PrintTag();
GameManager.SetGameMaxLevel(95);
}