示例#1
0
 public void RemoveEntity(EntityPrototype instance)
 {
     if (entityPrototypes.Contains(instance))
     {
         this.entityPrototypes.Remove(instance);
         return;
     }
 }
示例#2
0
        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());
        }
示例#3
0
 public void AddEntity(EntityPrototype instance)
 {
     this.entityPrototypes.Add(instance);
 }