init
This commit is contained in:
23
server/LogicServer/base/CustomLogicLuaConfig.h
Normal file
23
server/LogicServer/base/CustomLogicLuaConfig.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
/************************************************************************/
|
||||
/*
|
||||
/* 可提供默认的lua虚拟机内存管理函数的脚本配置类
|
||||
/*
|
||||
/************************************************************************/
|
||||
class CCustomLogicLuaConfig :
|
||||
public CCustomLuaConfig
|
||||
{
|
||||
public:
|
||||
typedef CCustomLuaConfig Inherited;
|
||||
bool LoadFile(LPCTSTR sFilePath);
|
||||
protected:
|
||||
//创建虚拟机对象
|
||||
inline lua_State* createLuaVM()
|
||||
{
|
||||
return CLogicLuaAllocator::createLuaVM();
|
||||
}
|
||||
//注册本地库
|
||||
bool registLocalLibs();
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user