Beispiel #1
0
 public Box AddBox(ItemInfo item, Point pos, bool sendToClient)
 {
     Box box = new Box(PhysicalId++, "1", item);
     box.SetXY(pos);
     AddPhysicalObj(box, sendToClient);
     return AddBox(box, sendToClient);
 }
Beispiel #2
0
        public Box CreateBox(int x, int y, string model, ItemInfo item)
        {
            Box box = new Box(PhysicalId++, model, item);
            box.SetXY(x, y);

            m_map.AddPhysical(box);
            AddBox(box, true);

            return box;
        }