move the registration of generic types to the lua side in a simple way

This commit is contained in:
zhurengong
2021-11-09 00:16:48 +08:00
parent 9d45eb7402
commit 83d1c29917
2 changed files with 8 additions and 6 deletions
@@ -323,13 +323,7 @@ namespace Barotrauma
UserData.RegisterType<LuaHook.HookMethodType>();
UserData.RegisterType<IUserDataDescriptor>();
UserData.RegisterType<PrefabCollection<ItemPrefab>>();
UserData.RegisterType<PrefabCollection<JobPrefab>>();
UserData.RegisterType<PrefabCollection<CharacterPrefab>>();
UserData.RegisterType<PrefabCollection<AfflictionPrefab>>();
UserData.RegisterType<PrefabCollection<TalentPrefab>>();
UserData.RegisterType<Pair<JobPrefab, int>>();
#if SERVER