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; }
public void PickBox(Box box) { box.UserID = _player.PlayerCharacter.ID; box.Die(); }
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; }
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); } }