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); }
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); }
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); } }
public DecayEvent(Fougerite.Entity en, ref float dmg) { this.Entity = en; this.DamageAmount = dmg; }