public Tool.Point UnitToPanel(iconDB from) { Tool.Size ratio = this.nfo.dbMapSize / this.nfo.dbRefMapSize; Tool.Point unitPos = from.pos * ratio + this.nfo.dbMapOffsetUnit; return(this.Position + (unitPos * this.SizeCorrected) - (from.icon.Size * 0.5f)); }
public Survivor(iconDB idb) : base(idb) { this.inventory = new Cargo(); this.backpack = new Cargo(); this.tools = new Cargo(); }
public Spawn(iconDB idb) : base(idb) { this.inventory = new Storage(); }
public Deployable(iconDB idb) : base(idb) { this.inventory = new Storage(); }
public Vehicle(iconDB idb) : base(idb) { this.inventory = new Storage(); this.parts = new VParts(); }