added GameSettings and ChatBox
This commit is contained in:
@@ -170,6 +170,7 @@ RegisterBarotrauma("UpgradeManager")
|
|||||||
RegisterBarotrauma("Screen")
|
RegisterBarotrauma("Screen")
|
||||||
RegisterBarotrauma("GameScreen")
|
RegisterBarotrauma("GameScreen")
|
||||||
RegisterBarotrauma("GameSession")
|
RegisterBarotrauma("GameSession")
|
||||||
|
RegisterBarotrauma("GameSettings")
|
||||||
RegisterBarotrauma("CampaignMode")
|
RegisterBarotrauma("CampaignMode")
|
||||||
RegisterBarotrauma("CrewManager")
|
RegisterBarotrauma("CrewManager")
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,21 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public partial class LuaGame
|
public partial class LuaGame
|
||||||
{
|
{
|
||||||
|
public GameSettings GameSettings => GameMain.Config;
|
||||||
|
|
||||||
|
#if CLIENT
|
||||||
|
public ChatBox ChatBox
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (GameMain.IsSingleplayer)
|
||||||
|
return GameMain.GameSession.CrewManager.ChatBox;
|
||||||
|
else
|
||||||
|
return GameMain.Client.ChatBox;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
LuaSetup env;
|
LuaSetup env;
|
||||||
|
|
||||||
public LuaGame(LuaSetup e)
|
public LuaGame(LuaSetup e)
|
||||||
|
|||||||
Reference in New Issue
Block a user