Пример #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);
 }
Пример #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;
        }