map entity prefab and fabricator component

This commit is contained in:
Evil Factory
2021-08-28 22:28:30 -03:00
parent 327a287a0b
commit c248a192c9
2 changed files with 9 additions and 2 deletions
@@ -321,6 +321,11 @@ namespace Barotrauma
return item.GetComponent<CustomInterface>();
}
public static Fabricator GetFabricatorComponent(Item item)
{
return item.GetComponent<Fabricator>();
}
public static void DispatchRespawnSub()
{
GameMain.Server.RespawnManager.DispatchShuttle();
@@ -142,6 +142,7 @@ namespace Barotrauma
UserData.RegisterType<AttackResult>();
UserData.RegisterType<Entity>();
UserData.RegisterType<MapEntity>();
UserData.RegisterType<MapEntityPrefab>();
UserData.RegisterType<CauseOfDeath>();
UserData.RegisterType<CharacterTeamType>();
UserData.RegisterType<Signal>();
@@ -162,8 +163,9 @@ namespace Barotrauma
UserData.RegisterType<StatusEffect>();
UserData.RegisterType<CustomInterface.CustomInterfaceElement>();
UserData.RegisterType<FireSource>();
UserData.RegisterType<Fabricator>();
lua = new Script(CoreModules.Preset_SoftSandbox | CoreModules.LoadMethods);
lua.Options.DebugPrint = PrintMessage;