JSON fixes. Grids

This commit is contained in:
Matt Thorson
2020-05-17 16:27:02 -07:00
parent 3f8b016d84
commit 5745029fcc
8 changed files with 288 additions and 4 deletions

View File

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