public void RemoveEntity(EntityPrototype instance) { if (entityPrototypes.Contains(instance)) { this.entityPrototypes.Remove(instance); return; } }
public Entity(EntityPrototype template) { this.name = template.name; this.visualName = template.visualName; this.description = template.description; this.components = new List <Component>(); this.AddComponents(template.components.ToArray()); }
public void AddEntity(EntityPrototype instance) { this.entityPrototypes.Add(instance); }