- made all internal struct types NativeStructs so that all variables of their types are made references.

This commit is contained in:
Christoph Oelckers 2016-11-21 19:20:27 +01:00
commit 6cc00e79a6
7 changed files with 27 additions and 6 deletions

View file

@ -161,8 +161,8 @@ void AActor::InitNativeFields()
PType *TypeActor = NewPointer(RUNTIME_CLASS(AActor));
PType *TypeActorClass = NewClassPointer(RUNTIME_CLASS(AActor));
PType *TypeInventory = NewPointer(RUNTIME_CLASS(AInventory));
PType *TypePlayer = NewPointer(NewStruct("Player", nullptr));
auto TypeSector = NewPointer(NewStruct("Sector", nullptr));
PType *TypePlayer = NewPointer(NewNativeStruct("Player", nullptr));
auto TypeSector = NewPointer(NewNativeStruct("Sector", nullptr));
PType *array5 = NewArray(TypeSInt32, 5);
auto meta = RUNTIME_CLASS(AActor);