KLuaScriptSet.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:2k
- //---------------------------------------------------------------------------
- // Sword3 Engine (c) 1999-2000 by Kingsoft
- //
- // File: KLuaScriptSet.h
- // Date: 2001-10-18 11:56:34
- // Code: Romandou
- // Desc:
- //---------------------------------------------------------------------------
- #ifndef KLUASCRIPTSET_H
- #define KLUASCRIPTSET_H
- //---------------------------------------------------------------------------
- /*
- #include "KScriptSet.h"
- #define MAXLUASCRIPTNUM 10
- #define NUMPERCLEAR 3
- //---------------------------------------------------------------------------
- class ENGINE_API KLuaScriptSet : public KScriptSet
- {
- public:
- KLuaScriptSet();
- ~KLuaScriptSet();
- KScript * CreateScript(char * szKey, int StackSize);
- KScript * CreateScript(DWORD nKey, int StackSize);
- BOOL ClearUpSet(void);//进行脚本量检测,一旦发现超出则执行清除
- DWORD ClearUpSet(DWORD);//清除指定数量的脚本
- DWORD GetMaxScriptNum(){return m_nMaxScriptNum; }
- DWORD GetNumPerClear(){return m_nNumPerClear; }
- BOOL SetMaxScriptNum(DWORD nMaxCount = MAXLUASCRIPTNUM);
- BOOL SetNumPerClear(DWORD nNumPerClear = NUMPERCLEAR);
- virtual BOOL Run(DWORD nKey);
- virtual BOOL Run(char * szKey);
- virtual BOOL RunFunction(DWORD nKey, char * szFuncName, int nResults, char * szFormat, ...);
- virtual BOOL RunFunction(char * szKey, char * szFuncName, int nResults, char * szFormat, ...);
-
- private:
- DWORD m_nMaxScriptNum;//最大脚本保存量
- DWORD m_nNumPerClear;//每次整理脚本链表时的清空量
- };
- //---------------------------------------------------------------------------
- */
- #endif //KLUASCRIPTSET_H