mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-12-15 13:27:06 +08:00
JSON fixes. Grids
This commit is contained in:
@ -6,6 +6,7 @@ namespace Strawberry
|
||||
public class Scene
|
||||
{
|
||||
public float TimeStarted { get; private set; }
|
||||
public Grid SolidGrid;
|
||||
|
||||
private List<Entity> entities;
|
||||
private HashSet<Entity> toRemove;
|
||||
@ -20,6 +21,9 @@ namespace Strawberry
|
||||
|
||||
public ~this()
|
||||
{
|
||||
if (SolidGrid != null)
|
||||
delete SolidGrid;
|
||||
|
||||
for (var e in entities)
|
||||
if (e.DeleteOnRemove)
|
||||
delete e;
|
||||
|
||||
Reference in New Issue
Block a user