Пример #1
0
        public EntityInv(Inventory inv, Entity ent)
        {
            this.entity = ent;
            this._inv = inv;

            this._items = new EntityItem[inv.slotCount];
            for (var i = 0; i < inv.slotCount; i++)
                this._items[i] = new EntityItem(this._inv, i);
        }
Пример #2
0
 private static Fougerite.Entity[] QueryToEntity <T>(IEnumerable <T> query)
 {
     Fougerite.Entity[] these = new Fougerite.Entity[query.Count <T>()];
     for (int i = 0; i < these.Length; i++)
     {
         these[i] = new Fougerite.Entity((query.ElementAtOrDefault <T>(i) as UnityEngine.Component).GetComponent <DeployableObject>());
     }
     return(these);
 }
Пример #3
0
        public EntityInv(Inventory inv, Entity ent)
        {
            this.entity = ent;
            this._inv   = inv;

            this._items = new EntityItem[inv.slotCount];
            for (var i = 0; i < inv.slotCount; i++)
            {
                this._items[i] = new EntityItem(this._inv, i);
            }
        }
Пример #4
0
 public DecayEvent(Fougerite.Entity en, ref float dmg)
 {
     this.Entity       = en;
     this.DamageAmount = dmg;
 }