replace harmony with a custom one that includes __params, some fixes in the lua setup and hook method is now actually useful

This commit is contained in:
Evil Factory
2021-11-05 20:40:50 -03:00
parent a8a0c96d57
commit 72fff4ab73
12 changed files with 115 additions and 19 deletions
@@ -320,6 +320,7 @@ namespace Barotrauma
UserData.RegisterType<LuaFile>();
UserData.RegisterType<LuaNetworking>();
UserData.RegisterType<LuaUserData>();
UserData.RegisterType<LuaHook.HookMethodType>();
UserData.RegisterType<IUserDataDescriptor>();
UserData.RegisterType<PrefabCollection<ItemPrefab>>();
@@ -330,6 +331,11 @@ namespace Barotrauma
UserData.RegisterType<Pair<JobPrefab, int>>();
#if SERVER
#elif CLIENT
UserData.RegisterType<LuaGUI>();
#endif
lua.Globals["setmodulepaths"] = (Action<string[]>)SetModulePaths;