public MoveCharacterHandler(ILogger <MoveCharacterHandler> logger, IGamePacketFactory packetFactory, IGameSession gameSession, IBuffsManager buffsManager, IMovementManager movementManager, ITeleportationManager teleportationManager, ISkillsManager skillsManager, ISpeedManager speedManager) : base(packetFactory, gameSession) { _logger = logger; _buffsManager = buffsManager; _movementManager = movementManager; _teleportationManager = teleportationManager; _skillsManager = skillsManager; _speedManager = speedManager; }
public Mob(ushort mobId, bool shouldRebirth, MoveArea moveArea, ILogger <Mob> logger, IDatabasePreloader databasePreloader, IAIManager aiManager, IItemEnchantConfiguration enchantConfig, IItemCreateConfiguration itemCreateConfig, ICountryProvider countryProvider, IStatsManager statsManager, IHealthManager healthManager, ILevelProvider levelProvider, ISpeedManager speedManager, IAttackManager attackManager, ISkillsManager skillsManager, IBuffsManager buffsManager, IElementProvider elementProvider, IMovementManager movementManager, IUntouchableManager untouchableManager, IMapProvider mapProvider) : base(databasePreloader, countryProvider, statsManager, healthManager, levelProvider, buffsManager, elementProvider, movementManager, untouchableManager, mapProvider) { _logger = logger; _enchantConfig = enchantConfig; _itemCreateConfig = itemCreateConfig; _dbMob = databasePreloader.Mobs[mobId]; _moveArea = moveArea; AIManager = aiManager; Exp = _dbMob.Exp; ShouldRebirth = shouldRebirth; SpeedManager = speedManager; AttackManager = attackManager; SkillsManager = skillsManager; ElementProvider.ConstAttackElement = _dbMob.Element; ElementProvider.ConstDefenceElement = _dbMob.Element; if (ShouldRebirth) { _rebirthTimer.Interval = RespawnTimeInMilliseconds; _rebirthTimer.Elapsed += RebirthTimer_Elapsed; HealthManager.OnDead += MobRebirth_OnDead; } HealthManager.OnGotDamage += OnDecreaseHP; AIManager.OnStateChanged += AIManager_OnStateChanged; }
public VehicleManager(ILogger <VehicleManager> logger, IStealthManager stealthManager, ISpeedManager speedManager, IHealthManager healthManager, IGameWorld gameWorld) { _logger = logger; _stealthManager = stealthManager; _speedManager = speedManager; _healthManager = healthManager; _gameWorld = gameWorld; _healthManager.OnGotDamage += HealthManager_OnGotDamage; _summonVehicleTimer.Elapsed += SummonVehicleTimer_Elapsed; #if DEBUG _logger.LogDebug("VehicleManager {hashcode} created", GetHashCode()); #endif }
public AttackManager(ILogger <AttackManager> logger, IStatsManager statsManager, ILevelProvider levelProvider, IElementProvider elementManager, ICountryProvider countryProvider, ISpeedManager speedManager, IStealthManager stealthManager, IHealthManager healthManager, IShapeManager shapeManager) { _logger = logger; _statsManager = statsManager; _levelProvider = levelProvider; _elementManager = elementManager; _countryProvider = countryProvider; _speedManager = speedManager; _stealthManager = stealthManager; _healthManager = healthManager; _shapeManager = shapeManager; #if DEBUG _logger.LogDebug("AttackManager {hashcode} created", GetHashCode()); #endif }
public LinkingManager(ILogger <LinkingManager> logger, IDatabasePreloader databasePreloader, IInventoryManager inventoryManager, IStatsManager statsManager, IHealthManager healthManager, ISpeedManager speedManager, IGuildManager guildManager, IMapProvider mapProvider, IItemEnchantConfiguration itemEnchantConfig, IItemCreateConfiguration itemCreateConfig) { _logger = logger; _databasePreloader = databasePreloader; _inventoryManager = inventoryManager; _statsManager = statsManager; _healthManager = healthManager; _speedManager = speedManager; _guildManager = guildManager; _mapProvider = mapProvider; _itemEnchantConfig = itemEnchantConfig; _itemCreateConfig = itemCreateConfig; #if DEBUG _logger.LogDebug("LinkingManager {hashcode} created", GetHashCode()); #endif }
public AIManager(ILogger <AIManager> logger, IMovementManager movementManager, ICountryProvider countryProvider, IAttackManager attackManager, IUntouchableManager untouchableManager, IMapProvider mapProvider, ISkillsManager skillsManager, IStatsManager statsManager, IElementProvider elementProvider, IGameDefinitionsPreloder definitionsPreloder, ISpeedManager speedManager) { _logger = logger; _movementManager = movementManager; _countryProvider = countryProvider; _attackManager = attackManager; _untouchableManager = untouchableManager; _mapProvider = mapProvider; _skillsManager = skillsManager; _statsManager = statsManager; _elementProvider = elementProvider; _definitionsPreloder = definitionsPreloder; _speedManager = speedManager; _attackManager.OnTargetChanged += AttackManager_OnTargetChanged; #if DEBUG _logger.LogDebug("AIManager {hashcode} created", GetHashCode()); #endif }
public Character(ILogger <Character> logger, IDatabasePreloader databasePreloader, IGuildManager guildManager, ICountryProvider countryProvider, ISpeedManager speedManager, IStatsManager statsManager, IAdditionalInfoManager additionalInfoManager, IHealthManager healthManager, ILevelProvider levelProvider, ILevelingManager levelingManager, IInventoryManager inventoryManager, IStealthManager stealthManager, IAttackManager attackManager, ISkillsManager skillsManager, IBuffsManager buffsManager, IElementProvider elementProvider, IKillsManager killsManager, IVehicleManager vehicleManager, IShapeManager shapeManager, IMovementManager movementManager, ILinkingManager linkinManager, IMapProvider mapProvider, ITeleportationManager teleportationManager, IPartyManager partyManager, ITradeManager tradeManager, IFriendsManager friendsManager, IDuelManager duelManager, IBankManager bankManager, IQuestsManager questsManager, IUntouchableManager untouchableManager, IWarehouseManager warehouseManager, IShopManager shopManager, ISkillCastingManager skillCastingManager, ICastProtectionManager castProtectionManager, IGameSession gameSession, IGamePacketFactory packetFactory) : base(databasePreloader, countryProvider, statsManager, healthManager, levelProvider, buffsManager, elementProvider, movementManager, untouchableManager, mapProvider) { _logger = logger; _packetFactory = packetFactory; AdditionalInfoManager = additionalInfoManager; InventoryManager = inventoryManager; StealthManager = stealthManager; LevelingManager = levelingManager; SpeedManager = speedManager; AttackManager = attackManager; SkillsManager = skillsManager; KillsManager = killsManager; VehicleManager = vehicleManager; ShapeManager = shapeManager; LinkingManager = linkinManager; TeleportationManager = teleportationManager; PartyManager = partyManager; TradeManager = tradeManager; FriendsManager = friendsManager; DuelManager = duelManager; GuildManager = guildManager; BankManager = bankManager; QuestsManager = questsManager; WarehouseManager = warehouseManager; ShopManager = shopManager; SkillCastingManager = skillCastingManager; CastProtectionManager = castProtectionManager; GameSession = gameSession; HealthManager.MP_SP_Used += SendUseMPSP; HealthManager.OnCurrentHitpointsChanged += SendCurrentHitpoints; StatsManager.OnAdditionalStatsUpdate += SendAdditionalStats; StatsManager.OnResetStats += SendResetStats; BuffsManager.OnBuffAdded += SendAddBuff; BuffsManager.OnBuffRemoved += SendRemoveBuff; AttackManager.OnStartAttack += SendAttackStart; VehicleManager.OnUsedVehicle += SendUseVehicle; SkillsManager.OnResetSkills += SendResetSkills; InventoryManager.OnAddItem += SendAddItemToInventory; InventoryManager.OnRemoveItem += SendRemoveItemFromInventory; InventoryManager.OnItemExpired += SendItemExpired; AttackManager.TargetOnBuffAdded += SendTargetAddBuff; AttackManager.TargetOnBuffRemoved += SendTargetRemoveBuff; DuelManager.OnDuelResponse += SendDuelResponse; DuelManager.OnStart += SendDuelStart; DuelManager.OnCanceled += SendDuelCancel; DuelManager.OnFinish += SendDuelFinish; LevelingManager.OnExpChanged += SendExperienceGain; QuestsManager.OnQuestMobCountChanged += SendQuestCountUpdate; QuestsManager.OnQuestFinished += SendQuestFinished; ShopManager.OnUseShopClosed += SendUseShopClosed; ShopManager.OnUseShopItemCountChanged += SendUseShopItemCountChanged; ShopManager.OnSoldItem += SendSoldItem; Bless.Instance.OnDarkBlessChanged += OnDarkBlessChanged; Bless.Instance.OnLightBlessChanged += OnLightBlessChanged; }
public CharacterFactory(ILogger <ICharacterFactory> logger, IDatabase database, ILogger <Character> characterLogger, IGameWorld gameWorld, IDatabasePreloader databasePreloader, IGameDefinitionsPreloder definitionsPreloder, ICountryProvider countryProvider, ISpeedManager speedManager, IStatsManager statsManager, IHealthManager healthManager, ILevelProvider levelProvider, ILevelingManager levelingManager, IInventoryManager inventoryManager, ILinkingManager linkingManager, IGuildManager guildManager, IGameSession gameSession, IStealthManager stealthManager, IAttackManager attackManager, ISkillsManager skillsManager, IBuffsManager buffsManager, IElementProvider elementProvider, IKillsManager killsManager, IVehicleManager vehicleManager, IShapeManager shapeManager, IMovementManager movementManager, IAdditionalInfoManager additionalInfoManager, IMapProvider mapProvider, ITeleportationManager teleportationManager, IPartyManager partyManager, ITradeManager tradeManager, IFriendsManager friendsManager, IDuelManager duelManager, IBankManager bankManager, IQuestsManager questsManager, IUntouchableManager untouchableManager, IWarehouseManager warehouseManager, IShopManager shopManager, ISkillCastingManager skillCastingManager, ICastProtectionManager castProtectionManager, IGamePacketFactory packetFactory, UserManager <DbUser> userManager) { _logger = logger; _database = database; _characterLogger = characterLogger; _gameWorld = gameWorld; _databasePreloader = databasePreloader; _definitionsPreloder = definitionsPreloder; _countryProvider = countryProvider; _speedManager = speedManager; _statsManager = statsManager; _healthManager = healthManager; _levelProvider = levelProvider; _levelingManager = levelingManager; _inventoryManager = inventoryManager; _linkingManager = linkingManager; _guildManager = guildManager; _gameSession = gameSession; _stealthManager = stealthManager; _attackManager = attackManager; _skillsManager = skillsManager; _buffsManager = buffsManager; _elementProvider = elementProvider; _killsManager = killsManager; _vehicleManager = vehicleManager; _shapeManager = shapeManager; _movementManager = movementManager; _additionalInfoManager = additionalInfoManager; _mapProvider = mapProvider; _teleportationManager = teleportationManager; _partyManager = partyManager; _tradeManager = tradeManager; _friendsManager = friendsManager; _duelManager = duelManager; _bankManager = bankManager; _questsManager = questsManager; _untouchableManager = untouchableManager; _warehouseManager = warehouseManager; _shopManager = shopManager; _skillCastingManager = skillCastingManager; _castProtectionManager = castProtectionManager; _packetFactory = packetFactory; _userManager = userManager; }