Add support for basic classes to Scripting Type (without scripting object as a base)

This commit is contained in:
Wojtek Figat
2020-12-22 12:55:57 +01:00
parent f25064fae8
commit 4665e8fbdb
8 changed files with 150 additions and 110 deletions

View File

@@ -186,9 +186,9 @@ void Script::SetupType()
while (typeHandle != Script::TypeInitializer)
{
auto& type = typeHandle.GetType();
_tickUpdate |= type.Class.ScriptVTable[8] != nullptr;
_tickLateUpdate |= type.Class.ScriptVTable[9] != nullptr;
_tickFixedUpdate |= type.Class.ScriptVTable[10] != nullptr;
_tickUpdate |= type.Script.ScriptVTable[8] != nullptr;
_tickLateUpdate |= type.Script.ScriptVTable[9] != nullptr;
_tickFixedUpdate |= type.Script.ScriptVTable[10] != nullptr;
typeHandle = type.GetBaseType();
}
}