コード例 #1
0
 public void RemoveEntity(EntityPrototype instance)
 {
     if (entityPrototypes.Contains(instance))
     {
         this.entityPrototypes.Remove(instance);
         return;
     }
 }
コード例 #2
0
ファイル: Entity.cs プロジェクト: Joeking360/ProjectCrawler
        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);
 }