Exemple #1
0
 public int AddFallGoods(Point p, MapGoodsInfo itemID)
 {
     Box box = new Box(_fallItemID.Count, itemID);
     box.SetXY(p);
     _currentMap.AddPhysical(box);
     _fallItemID.Add(box);
     TempBox.Add(box);
     Arks++;
     return 0;
 }
Exemple #2
0
 public void PickBox(Box box)
 {
     box.UserID = _player.PlayerCharacter.ID;
     box.Die();
 }
Exemple #3
0
 public Box AddBox(MapGoodsInfo item,Point pos)
 {
     Box box = new Box(m_tempBoxId ++, item);
     box.SetXY(pos);
     m_map.AddPhysical(box);
     m_tempBox.Add(box);
     return box;
 }
Exemple #4
0
        public void PickBox(Box box,bool sendToClient)
        {
            box.UserID = Id;
            box.Die();

            m_tempBoxes.Add(box);

            if (sendToClient)
            {
                GSPacketIn pkg = m_player.Out.SendGamePickBox(this, box.Id, box.Items.Type, "");
                m_game.SendToAll(pkg);
            }
        }