Register particles, added Game.Paused which is always false to server-side, and exposed ParticleManager

This commit is contained in:
EvilFactory
2023-02-28 16:57:17 -03:00
parent fb374a9ae3
commit 27cde50c08
3 changed files with 30 additions and 0 deletions

View File

@@ -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")

View File

@@ -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")

View File

@@ -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