public void Dispose() { // HACK: Disposing the world from here violates ownership // but the WorldRenderer lifetime matches the disposal // behavior we want for the world, and the root object setup // is so horrible that doing it properly would be a giant mess. World.Dispose(); palette.Dispose(); }
public void Dispose() { // HACK: Disposing the world from here violates ownership // but the WorldRenderer lifetime matches the disposal // behavior we want for the world, and the root object setup // is so horrible that doing it properly would be a giant mess. World.Dispose(); //Game.ModData.ResetSequenceProviders(); Game.Renderer.WorldSpriteRenderer.ClearTexturesShader(); Game.Renderer.SpriteRenderer.ClearTexturesShader(); palette.Dispose(); Theater.Dispose(); }
public void Dispose() { palette.Dispose(); sheetBuilder.Dispose(); }
public void Dispose() { palette.Dispose(); Theater.Dispose(); terrainRenderer.Dispose(); }