added Game.GameSession
This commit is contained in:
@@ -64,7 +64,13 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public GameSession GameSession
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameMain.GameSession;
|
||||
}
|
||||
}
|
||||
|
||||
public void OverrideTraitors(bool o)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user