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

            repo.EquipItem(magicid, CurrentPlayer.Id, "Magic");
            SetPlayer(CurrentPlayer.Id);
        }
Esempio 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);
        }