Пример #1
0
        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));
        }
Пример #2
0
 public Survivor(iconDB idb)
     : base(idb)
 {
     this.inventory = new Cargo();
     this.backpack  = new Cargo();
     this.tools     = new Cargo();
 }
Пример #3
0
 public Spawn(iconDB idb)
     : base(idb)
 {
     this.inventory = new Storage();
 }
Пример #4
0
 public Deployable(iconDB idb)
     : base(idb)
 {
     this.inventory = new Storage();
 }
Пример #5
0
 public Vehicle(iconDB idb)
     : base(idb)
 {
     this.inventory = new Storage();
     this.parts     = new VParts();
 }