added Game.GameSession

This commit is contained in:
Evil Factory
2021-09-16 20:06:27 -03:00
parent b26a6d7ccc
commit 1496313fd8
2 changed files with 10 additions and 2 deletions

View File

@@ -64,7 +64,13 @@ namespace Barotrauma
}
}
public GameSession GameSession
{
get
{
return GameMain.GameSession;
}
}
public void OverrideTraitors(bool o)
{

View File

@@ -274,7 +274,9 @@ namespace Barotrauma
UserData.RegisterType<ServerSettings>();
UserData.RegisterType<PrefabCollection<ItemPrefab>>();
UserData.RegisterType<PrefabCollection<JobPrefab>>();
UserData.RegisterType<GameSession>();
UserData.RegisterType<CampaignMode>();
lua = new Script(CoreModules.Preset_SoftSandbox);
lua.Options.DebugPrint = PrintMessage;