Пример #1
0
 public void AddProtectionOfPlayer(ProtectionOfPlayer protectionOfPlayer)
 {
     if (player != null)
     {
         protectionOfPlayer.PlayerId = player.Id;
         protectionOfPlayerRepository.AddProtectionOfPlayer(protectionOfPlayer);
         CheckAchivements();
     }
 }
Пример #2
0
        public void NotifyProtectionEquipped(ObjectContainedInventory objectContainedInventory)
        {
            Item itemOfProtection = objectContainedInventory.GetItem();
            ProtectionOfPlayer protectionOfPlayer = new ProtectionOfPlayer
            {
                LevelProtection = itemOfProtection.Level,
                TypeProtection  = itemOfProtection.Type.ToString()
            };

            if (ProtectionEquipped != null)
            {
                ProtectionEquipped(protectionOfPlayer);
            }
        }
Пример #3
0
 private void OnProtectionEquipped(ProtectionOfPlayer protectionOfPlayer)
 {
     achivementController.AddProtectionOfPlayer(protectionOfPlayer);
 }
Пример #4
0
 public virtual void AddProtectionOfPlayer(ProtectionOfPlayer protectionOfPlayer)
 {
     repository.AddProtectionOfPlayer(protectionOfPlayer);
 }