Refactored Ghost Entities

Game Context was creating an empty OrbitalEntity for every planet; this was an ugly hack so I refactored it, as well as refactoring some object references to GUIDs as they should be
This commit is contained in:
hyperion51 2020-05-04 00:07:36 +01:00
commit 4f29bf24d0
13 changed files with 199 additions and 191 deletions

View file

@ -1,4 +1,5 @@
using System.Collections;
using System;
using System.Collections;
using System.Collections.Generic;
public class EntityAgent
@ -7,9 +8,9 @@ public class EntityAgent
public Entity Entity { get; }
public GameContext Context { get; }
public ZoneData Zone { get; set; }
public Guid Zone { get; set; }
public EntityAgent(GameContext context, ZoneData zone, Entity entity)
public EntityAgent(GameContext context, Guid zone, Entity entity)
{
Entity = entity;
Zone = zone;