Exemplo n.º 1
0
        public void EquipMagic(int magicid)
        {
            PlayerRepo repo = new PlayerRepo(new PlayerQuery());

            repo.EquipItem(magicid, CurrentPlayer.Id, "Magic");
            SetPlayer(CurrentPlayer.Id);
        }
Exemplo n.º 2
0
        public void EquipItem(int itemid, string itemtype)
        {
            PlayerRepo repo = new PlayerRepo(new PlayerQuery());

            repo.EquipItem(itemid, CurrentPlayer.Id, itemtype);
            CurrentPlayer = repo.GetPlayer(CurrentPlayer.Id);
        }