Register particles, added Game.Paused which is always false to server-side, and exposed ParticleManager
This commit is contained in:
@@ -52,10 +52,19 @@ RegisterBarotrauma("Sounds.LowShelfFilter")
|
||||
RegisterBarotrauma("Sounds.HighShelfFilter")
|
||||
RegisterBarotrauma("Sounds.PeakFilter")
|
||||
|
||||
RegisterBarotrauma("Particles.ParticleManager")
|
||||
RegisterBarotrauma("Particles.Particle")
|
||||
RegisterBarotrauma("Particles.ParticleEmitterProperties")
|
||||
RegisterBarotrauma("Particles.ParticleEmitter")
|
||||
RegisterBarotrauma("Particles.ParticlePrefab")
|
||||
RegisterBarotrauma("PrefabCollection`1[[Barotrauma.Particles.ParticlePrefab]]")
|
||||
|
||||
RegisterBarotrauma("Lights.LightManager")
|
||||
RegisterBarotrauma("Lights.LightSource")
|
||||
RegisterBarotrauma("Lights.LightSourceParams")
|
||||
|
||||
RegisterBarotrauma("LevelWallVertexBuffer")
|
||||
RegisterBarotrauma("LevelRenderer")
|
||||
RegisterBarotrauma("WaterRenderer")
|
||||
RegisterBarotrauma("WaterVertexData")
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ local RegisterBarotrauma = LuaSetup.LuaUserData.RegisterTypeBarotrauma
|
||||
Register("System.TimeSpan")
|
||||
Register("System.Exception")
|
||||
|
||||
RegisterBarotrauma("Barotrauma.Success`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
||||
RegisterBarotrauma("Barotrauma.Failure`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
||||
|
||||
RegisterBarotrauma("LuaSByte")
|
||||
RegisterBarotrauma("LuaByte")
|
||||
RegisterBarotrauma("LuaInt16")
|
||||
|
||||
@@ -66,6 +66,22 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public MainMenuScreen MainMenuScreen
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameMain.MainMenuScreen;
|
||||
}
|
||||
}
|
||||
|
||||
public Particles.ParticleManager ParticleManager
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameMain.ParticleManager;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsSubEditor
|
||||
{
|
||||
get
|
||||
@@ -90,6 +106,8 @@ namespace Barotrauma
|
||||
return GameMain.Server.ServerPeer is LidgrenServerPeer;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Paused => false;
|
||||
#endif
|
||||
|
||||
public ServerSettings ServerSettings
|
||||
|
||||
Reference in New Issue
Block a user