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.HighShelfFilter")
|
||||||
RegisterBarotrauma("Sounds.PeakFilter")
|
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.LightManager")
|
||||||
RegisterBarotrauma("Lights.LightSource")
|
RegisterBarotrauma("Lights.LightSource")
|
||||||
RegisterBarotrauma("Lights.LightSourceParams")
|
RegisterBarotrauma("Lights.LightSourceParams")
|
||||||
|
|
||||||
|
RegisterBarotrauma("LevelWallVertexBuffer")
|
||||||
|
RegisterBarotrauma("LevelRenderer")
|
||||||
RegisterBarotrauma("WaterRenderer")
|
RegisterBarotrauma("WaterRenderer")
|
||||||
RegisterBarotrauma("WaterVertexData")
|
RegisterBarotrauma("WaterVertexData")
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ local RegisterBarotrauma = LuaSetup.LuaUserData.RegisterTypeBarotrauma
|
|||||||
Register("System.TimeSpan")
|
Register("System.TimeSpan")
|
||||||
Register("System.Exception")
|
Register("System.Exception")
|
||||||
|
|
||||||
|
RegisterBarotrauma("Barotrauma.Success`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
||||||
|
RegisterBarotrauma("Barotrauma.Failure`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
||||||
|
|
||||||
RegisterBarotrauma("LuaSByte")
|
RegisterBarotrauma("LuaSByte")
|
||||||
RegisterBarotrauma("LuaByte")
|
RegisterBarotrauma("LuaByte")
|
||||||
RegisterBarotrauma("LuaInt16")
|
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
|
public bool IsSubEditor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -90,6 +106,8 @@ namespace Barotrauma
|
|||||||
return GameMain.Server.ServerPeer is LidgrenServerPeer;
|
return GameMain.Server.ServerPeer is LidgrenServerPeer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool Paused => false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public ServerSettings ServerSettings
|
public ServerSettings ServerSettings
|
||||||
|
|||||||
Reference in New Issue
Block a user