public void AddProtectionOfPlayer(ProtectionOfPlayer protectionOfPlayer) { if (player != null) { protectionOfPlayer.PlayerId = player.Id; protectionOfPlayerRepository.AddProtectionOfPlayer(protectionOfPlayer); CheckAchivements(); } }
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); } }
private void OnProtectionEquipped(ProtectionOfPlayer protectionOfPlayer) { achivementController.AddProtectionOfPlayer(protectionOfPlayer); }
public virtual void AddProtectionOfPlayer(ProtectionOfPlayer protectionOfPlayer) { repository.AddProtectionOfPlayer(protectionOfPlayer); }