Introduce EntityId and refactor everything

This commit is contained in:
ζeh Matt committed 2022-02-16 18:56:39 +02:00
1 parent 9322f415a9
commit d7f5003943
97 files changed
+476 -388

No files matched your search

+2 -2
View File
@@ -900,9 +900,9 @@ DukValue ScriptEngine::GameActionResultToDuk(const GameAction& action, const Gam
if (result.Error == GameActions::Status::Ok)
{
const auto actionResult = result.GetData<StaffHireNewActionResult>();
if (actionResult.StaffEntityId != SPRITE_INDEX_NULL)
if (!actionResult.StaffEntityId.IsNull())
{
obj.Set("peep", actionResult.StaffEntityId);
obj.Set("peep", actionResult.StaffEntityId.ToUnderlying());
}
}
}