Refactor PhysicalMaterial to use API bindings

This commit is contained in:
Wojtek Figat
2020-12-21 15:39:14 +01:00
parent 41b938b3cd
commit 7798a7f6d5
7 changed files with 24 additions and 89 deletions

View File

@@ -190,13 +190,11 @@ ISerializable* Create()
return New<T>();
}
// Key: managed class typename, Value: unmanaged instance spawner function
Dictionary<String, UnmanagedJsonInstanceCreator> UnmanagedTypes(32);
void InitUnmanagedJsonTypes()
{
ASSERT(UnmanagedTypes.IsEmpty());
// Key: managed class typename, Value: unmanaged instance spawner function
UnmanagedTypes[TEXT("FlaxEngine.PhysicalMaterial")] = &Create<PhysicalMaterial>;
}