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
@@ -64,7 +64,13 @@ namespace Barotrauma
} }
} }
public GameSession GameSession
{
get
{
return GameMain.GameSession;
}
}
public void OverrideTraitors(bool o) public void OverrideTraitors(bool o)
{ {
@@ -274,6 +274,8 @@ namespace Barotrauma
UserData.RegisterType<ServerSettings>(); UserData.RegisterType<ServerSettings>();
UserData.RegisterType<PrefabCollection<ItemPrefab>>(); UserData.RegisterType<PrefabCollection<ItemPrefab>>();
UserData.RegisterType<PrefabCollection<JobPrefab>>(); UserData.RegisterType<PrefabCollection<JobPrefab>>();
UserData.RegisterType<GameSession>();
UserData.RegisterType<CampaignMode>();
lua = new Script(CoreModules.Preset_SoftSandbox); lua = new Script(CoreModules.Preset_SoftSandbox);