public EnteredMapHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IGameWorld gameWorld, ITeleportationManager teleportationManager, IMapProvider mapProvider, IWarehouseManager warehouseManager) : base(packetFactory, gameSession) { _gameWorld = gameWorld; _teleportationManager = teleportationManager; _mapProvider = mapProvider; _warehouseManager = warehouseManager; }
public SkillsManager(ILogger <SkillsManager> logger, IGameDefinitionsPreloder definitionsPreloder, IDatabase database, IHealthManager healthManager, IAttackManager attackManager, IBuffsManager buffsManager, IStatsManager statsManager, IElementProvider elementProvider, ICountryProvider countryProvider, ICharacterConfiguration characterConfig, ILevelProvider levelProvider, IAdditionalInfoManager additionalInfoManager, IMapProvider mapProvider, ITeleportationManager teleportationManager, IMovementManager movementManager, IShapeManager shapeManager, IPartyManager partyManager, IGamePacketFactory packetFactory) { _logger = logger; _definitionsPreloder = definitionsPreloder; _database = database; _healthManager = healthManager; _attackManager = attackManager; _buffsManager = buffsManager; _statsManager = statsManager; _elementProvider = elementProvider; _countryProvider = countryProvider; _characterConfig = characterConfig; _levelProvider = levelProvider; _additionalInfoManager = additionalInfoManager; _mapProvider = mapProvider; _teleportationManager = teleportationManager; _movementManager = movementManager; _shapeManager = shapeManager; _partyManager = partyManager; _packetFactory = packetFactory; _levelProvider.OnLevelUp += OnLevelUp; #if DEBUG _logger.LogDebug("SkillsManager {hashcode} created", GetHashCode()); #endif }
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 GMTeleportHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IGameWorld gameWorld, IMapsLoader mapLoader, ICountryProvider countryProvider, ITeleportationManager teleportationManager, IMovementManager movementManager, IPartyManager partyManager, IGuildManager guildManager) : base(packetFactory, gameSession) { _gameWorld = gameWorld; _mapLoader = mapLoader; _countryProvider = countryProvider; _teleportationManager = teleportationManager; _movementManager = movementManager; _partyManager = partyManager; _guildManager = guildManager; }
public RebirthHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IMapProvider mapProvider, IGameWorld gameWorld, IHealthManager healthManager, ITeleportationManager teleportationManager, IMovementManager movementManager, IBuffsManager buffsManager, IInventoryManager inventoryManager, IGameDefinitionsPreloder definitionsPreloder) : base(packetFactory, gameSession) { _mapProvider = mapProvider; _gameWorld = gameWorld; _healthManager = healthManager; _teleportationManager = teleportationManager; _movementManager = movementManager; _buffsManager = buffsManager; _inventoryManager = inventoryManager; _definitionsPreloder = definitionsPreloder; }
public TeleportHandlers(ILogger <TeleportHandlers> logger, ILogger <Npc> npcLogger, IGamePacketFactory packetFactory, IGameSession gameSession, ITeleportationManager teleportationManager, IMapProvider mapProvider, IGameWorld gameWorld, IGuildManager guildManager, IInventoryManager inventoryManager, IMapsLoader mapLoader, IMoveTownsConfiguration moveTownsConfiguration, ICountryProvider countryProvider) : base(packetFactory, gameSession) { _logger = logger; _npcLogger = npcLogger; _teleportationManager = teleportationManager; _mapProvider = mapProvider; _gameWorld = gameWorld; _guildManager = guildManager; _inventoryManager = inventoryManager; _mapLoader = mapLoader; _moveTownsConfiguration = moveTownsConfiguration; _countryProvider = countryProvider; }
public SkillCastingManager(ILogger <SkillCastingManager> logger, IMovementManager movementManager, ITeleportationManager teleportationManager, IHealthManager healthManager, ISkillsManager skillsManager, IBuffsManager buffsManager, IGameWorld gameWorld, ICastProtectionManager castProtectionManager) { _logger = logger; _movementManager = movementManager; _teleportationManager = teleportationManager; _healthManager = healthManager; _skillsManager = skillsManager; _buffsManager = buffsManager; _gameWorld = gameWorld; _castProtectionManager = castProtectionManager; _castTimer.Elapsed += CastTimer_Elapsed; _movementManager.OnMove += MovementManager_OnMove; _healthManager.OnGotDamage += HealthManager_OnGotDamage; _buffsManager.OnBuffAdded += BuffsManager_OnBuffAdded; _teleportationManager.OnTeleporting += TeleportationManager_OnTeleporting; #if DEBUG _logger.LogDebug("SkillCastingManager {hashcode} created", GetHashCode()); #endif }
public DuelManager(ILogger <DuelManager> logger, IGameWorld gameWorld, ITradeManager tradeManager, IMovementManager movementManager, IHealthManager healthManager, IKillsManager killsManager, IMapProvider mapProvider, IInventoryManager inventoryManager, ITeleportationManager teleportationManager) { _logger = logger; _gameWorld = gameWorld; _tradeManager = tradeManager; _movementManager = movementManager; _healthManager = healthManager; _killsManager = killsManager; _mapProvider = mapProvider; _inventoryManager = inventoryManager; _teleportationManager = teleportationManager; _duelRequestTimer.Interval = 10000; // 10 seconds. _duelRequestTimer.Elapsed += DuelRequestTimer_Elapsed; _duelRequestTimer.AutoReset = false; _duelStartTimer.Interval = 5000; // 5 seconds. _duelStartTimer.Elapsed += DuelStartTimer_Elapsed; _duelStartTimer.AutoReset = false; #if DEBUG _logger.LogDebug("DuelManager {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; }
public PartySummonHandler(IGamePacketFactory packetFactory, IGameSession gameSession, IPartyManager partyManager, IGameWorld gameWorld, ITeleportationManager teleportationManager) : base(packetFactory, gameSession) { _partyManager = partyManager; _gameWorld = gameWorld; _teleportationManager = teleportationManager; }