mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore(ui): clean up script handlers for CScriptObject
This commit is contained in:
parent
bc1ce52f7d
commit
884e491b25
3 changed files with 19 additions and 35 deletions
|
|
@ -13,6 +13,14 @@ void CScriptObject::RegisterScriptMethods(lua_State* L) {
|
|||
FrameScript_Object::FillScriptMethodTable(L, ScriptObjectMethods, NUM_SCRIPT_OBJECT_SCRIPT_METHODS);
|
||||
}
|
||||
|
||||
int32_t CScriptObject::GetObjectType() {
|
||||
if (!CScriptObject::s_objectType) {
|
||||
CScriptObject::s_objectType = ++FrameScript_Object::s_objectTypes;
|
||||
}
|
||||
|
||||
return CScriptObject::s_objectType;
|
||||
}
|
||||
|
||||
CScriptObject* CScriptObject::GetScriptObjectByName(const char* name, int32_t type) {
|
||||
lua_State* L = FrameScript_GetContext();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue