Пример #1
0
        public void AddItem(GameSession sender, Item item)
        {
            FieldObject <Item> fieldItem = WrapObject(item);

            fieldItem.Coord = sender.FieldPlayer.Coord;

            State.AddItem(fieldItem);

            Broadcast(session =>
            {
                session.Send(FieldPacket.AddItem(fieldItem, session.FieldPlayer.ObjectId));
            });
        }