示例#1
0
 public LoginActions(IPacketSendService packetSendService,
                     IPacketTranslator <IAccountLoginData> loginPacketTranslator,
                     IPacketTranslator <ILoginRequestGrantedData> loginRequestGrantedPacketTranslator,
                     IPacketTranslator <ILoginRequestCompletedData> loginRequestCompletedPacketTranslator,
                     ILocalizedStringFinder localizedStringFinder,
                     ICharacterSelectorRepository characterSelectorRepository,
                     IPlayerInfoRepository playerInfoRepository,
                     ICharacterRepository characterRepository,
                     ICurrentMapStateRepository currentMapStateRepository,
                     ILoginFileChecksumRepository loginFileChecksumRepository,
                     INewsRepository newsRepository,
                     IChatRepository chatRepository,
                     ICharacterInventoryRepository characterInventoryRepository,
                     IPaperdollRepository paperdollRepository)
 {
     _packetSendService     = packetSendService;
     _loginPacketTranslator = loginPacketTranslator;
     _loginRequestGrantedPacketTranslator   = loginRequestGrantedPacketTranslator;
     _loginRequestCompletedPacketTranslator = loginRequestCompletedPacketTranslator;
     _localizedStringFinder       = localizedStringFinder;
     _characterSelectorRepository = characterSelectorRepository;
     _playerInfoRepository        = playerInfoRepository;
     _characterRepository         = characterRepository;
     _currentMapStateRepository   = currentMapStateRepository;
     _loginFileChecksumRepository = loginFileChecksumRepository;
     _newsRepository = newsRepository;
     _chatRepository = chatRepository;
     _characterInventoryRepository = characterInventoryRepository;
     _paperdollRepository          = paperdollRepository;
 }
 public PlayerWalkHandler(IPlayerInfoProvider playerInfoProvider,
                          ICurrentMapStateRepository currentMapStateRepository,
                          IEnumerable <IOtherCharacterAnimationNotifier> otherCharacterAnimationNotifiers)
     : base(playerInfoProvider)
 {
     _currentMapStateRepository        = currentMapStateRepository;
     _otherCharacterAnimationNotifiers = otherCharacterAnimationNotifiers;
 }
示例#3
0
 public AdminShowHandler(IPlayerInfoProvider playerInfoProvider,
                         ICharacterRepository characterRepository,
                         ICurrentMapStateRepository currentMapStateRepository)
     : base(playerInfoProvider)
 {
     _characterRepository       = characterRepository;
     _currentMapStateRepository = currentMapStateRepository;
 }
示例#4
0
 public NPCAnimator(IEndlessGameProvider gameProvider,
                    ICurrentMapStateRepository currentMapStateRepository)
     : base((Game)gameProvider.Game)
 {
     _currentMapStateRepository = currentMapStateRepository;
     _npcStartWalkingTimes      = new List <RenderFrameActionTime>();
     _npcStartAttackingTimes    = new List <RenderFrameActionTime>();
 }
 public PlayerEnterMapHandler(IPlayerInfoProvider playerInfoProvider,
                              ICurrentMapStateRepository mapStateRepository,
                              ICharacterFromPacketFactory characterFromPacketFactory)
     : base(playerInfoProvider)
 {
     _mapStateRepository         = mapStateRepository;
     _characterFromPacketFactory = characterFromPacketFactory;
 }
示例#6
0
 public NPCDieFromSpellCastHandler(IPlayerInfoProvider playerInfoProvider,
                                   ICurrentMapStateRepository currentMapStateRepository,
                                   ICharacterRepository characterRepository,
                                   IEnumerable <INPCActionNotifier> npcAnimationNotifiers,
                                   IEnumerable <IMainCharacterEventNotifier> mainCharacterEventNotifiers)
     : base(playerInfoProvider, currentMapStateRepository, characterRepository,
            npcAnimationNotifiers, mainCharacterEventNotifiers)
 {
 }
示例#7
0
 public HudStateActions(IStatusLabelSetter statusLabelSetter,
                        IHudControlProvider hudControlProvider,
                        ICurrentMapStateRepository currentMapStateRepository,
                        IMapFileProvider mapFileProvider)
 {
     _statusLabelSetter         = statusLabelSetter;
     _hudControlProvider        = hudControlProvider;
     _currentMapStateRepository = currentMapStateRepository;
     _mapFileProvider           = mapFileProvider;
 }
示例#8
0
 public CharacterRendererUpdater(ICharacterProvider characterProvider,
                                 ICurrentMapStateRepository currentMapStateRepository,
                                 ICharacterRendererFactory characterRendererFactory,
                                 ICharacterRendererRepository characterRendererRepository,
                                 ICharacterStateCache characterStateCache)
 {
     _characterProvider           = characterProvider;
     _currentMapStateRepository   = currentMapStateRepository;
     _characterRendererFactory    = characterRendererFactory;
     _characterRendererRepository = characterRendererRepository;
     _characterStateCache         = characterStateCache;
 }
示例#9
0
 public NPCLeaveMapHandler(IPlayerInfoProvider playerInfoProvider,
                           ICurrentMapStateRepository currentMapStateRepository,
                           ICharacterRepository characterRepository,
                           IEnumerable <INPCActionNotifier> npcAnimationNotifiers,
                           IEnumerable <IMainCharacterEventNotifier> mainCharacterEventNotifiers)
     : base(playerInfoProvider)
 {
     _currentMapStateRepository   = currentMapStateRepository;
     _characterRepository         = characterRepository;
     _npcAnimationNotifiers       = npcAnimationNotifiers;
     _mainCharacterEventNotifiers = mainCharacterEventNotifiers;
 }
示例#10
0
 public ItemPickupHandler(IPlayerInfoProvider playerInfoProvider,
                          ICharacterInventoryRepository characterInventoryRepository,
                          ICharacterRepository characterRepository,
                          ICurrentMapStateRepository mapStateRepository,
                          IEnumerable <IMainCharacterEventNotifier> mainCharacterEventNotifiers)
     : base(playerInfoProvider)
 {
     _characterInventoryRepository = characterInventoryRepository;
     _characterRepository          = characterRepository;
     _mapStateRepository           = mapStateRepository;
     _mainCharacterEventNotifiers  = mainCharacterEventNotifiers;
 }
示例#11
0
        public CharacterAnimator(IEndlessGameProvider gameProvider,
                                 ICharacterRepository characterRepository,
                                 ICurrentMapStateRepository currentMapStateRepository)
            : base((Game)gameProvider.Game)
        {
            _characterRepository       = characterRepository;
            _currentMapStateRepository = currentMapStateRepository;

            _otherPlayerStartWalkingTimes = new List <RenderFrameActionTime>();

            _otherPlayerStartAttackingTimes = new List <RenderFrameActionTime>();
        }
 public RefreshMapStateHandler(IPlayerInfoProvider playerInfoProvider,
                               IPacketTranslator <IRefreshReplyData> refreshReplyTranslator,
                               ICharacterRepository characterRepository,
                               ICurrentMapStateRepository currentMapStateRepository,
                               IEnumerable <IMapChangedNotifier> mapChangedNotifiers)
     : base(playerInfoProvider)
 {
     _refreshReplyTranslator    = refreshReplyTranslator;
     _characterRepository       = characterRepository;
     _currentMapStateRepository = currentMapStateRepository;
     _mapChangedNotifiers       = mapChangedNotifiers;
 }
 public BeginPlayerWarpHandler(IPlayerInfoProvider playerInfoProvider,
                               IPacketSendService packetSendService,
                               IFileRequestActions fileRequestActions,
                               IMapFileLoadActions mapFileLoadActions,
                               ICurrentMapStateRepository mapStateRepository,
                               IMapFileProvider mapFileProvider)
     : base(playerInfoProvider)
 {
     _packetSendService  = packetSendService;
     _fileRequestActions = fileRequestActions;
     _mapFileLoadActions = mapFileLoadActions;
     _mapStateRepository = mapStateRepository;
     _mapFileProvider    = mapFileProvider;
 }
示例#14
0
 public EndPlayerWarpHandler(IPlayerInfoProvider playerInfoProvider,
                             IPacketTranslator <IWarpAgreePacketData> warpAgreePacketTranslator,
                             ICharacterRepository characterRepository,
                             ICurrentMapStateRepository currentMapStateRepository,
                             ICurrentMapProvider currentMapProvider,
                             IEnumerable <IMapChangedNotifier> mapChangedNotifiers)
     : base(playerInfoProvider)
 {
     _warpAgreePacketTranslator = warpAgreePacketTranslator;
     _characterRepository       = characterRepository;
     _currentMapStateRepository = currentMapStateRepository;
     _currentMapProvider        = currentMapProvider;
     _mapChangedNotifiers       = mapChangedNotifiers;
 }
示例#15
0
 public WalkErrorHandler(IMapCellStateProvider mapCellStateProvider,
                         ICharacterProvider characterProvider,
                         IStatusLabelSetter statusLabelSetter,
                         ICurrentMapStateRepository currentMapStateRepository,
                         IUnlockDoorValidator unlockDoorValidator,
                         IEOMessageBoxFactory eoMessageBoxFactory,
                         IPacketSendService packetSendService)
 {
     _mapCellStateProvider      = mapCellStateProvider;
     _characterProvider         = characterProvider;
     _statusLabelSetter         = statusLabelSetter;
     _currentMapStateRepository = currentMapStateRepository;
     _unlockDoorValidator       = unlockDoorValidator;
     _eoMessageBoxFactory       = eoMessageBoxFactory;
     _packetSendService         = packetSendService;
 }
示例#16
0
 public NPCActionHandler(IPlayerInfoProvider playerInfoProvider,
                         ICurrentMapStateRepository currentMapStateRepository,
                         ICharacterRepository characterRepository,
                         IChatRepository chatRepository,
                         IENFFileProvider enfFileProvider,
                         IEnumerable <INPCActionNotifier> npcAnimationNotifiers,
                         IEnumerable <IMainCharacterEventNotifier> mainCharacterNotifiers,
                         IEnumerable <IOtherCharacterEventNotifier> otherCharacterNotifiers)
     : base(playerInfoProvider)
 {
     _currentMapStateRepository = currentMapStateRepository;
     _characterRepository       = characterRepository;
     _chatRepository            = chatRepository;
     _enfFileProvider           = enfFileProvider;
     _npcAnimationNotifiers     = npcAnimationNotifiers;
     _mainCharacterNotifiers    = mainCharacterNotifiers;
     _otherCharacterNotifiers   = otherCharacterNotifiers;
 }
示例#17
0
 public HudControlsFactory(IHudButtonController hudButtonController,
                           IHudPanelFactory hudPanelFactory,
                           IMapRendererFactory mapRendererFactory,
                           IUserInputHandlerFactory userInputHandlerFactory,
                           INativeGraphicsManager nativeGraphicsManager,
                           IGraphicsDeviceProvider graphicsDeviceProvider,
                           IClientWindowSizeProvider clientWindowSizeProvider,
                           IEndlessGameProvider endlessGameProvider,
                           ICharacterRepository characterRepository,
                           ICurrentMapStateRepository currentMapStateRepository,
                           IKeyStateRepository keyStateRepository,
                           IStatusLabelSetter statusLabelSetter,
                           IStatusLabelTextProvider statusLabelTextProvider,
                           IContentManagerProvider contentManagerProvider,
                           IHudControlProvider hudControlProvider,
                           IChatModeCalculator chatModeCalculator,
                           IExperienceTableProvider experienceTableProvider)
 {
     _hudButtonController       = hudButtonController;
     _hudPanelFactory           = hudPanelFactory;
     _mapRendererFactory        = mapRendererFactory;
     _userInputHandlerFactory   = userInputHandlerFactory;
     _nativeGraphicsManager     = nativeGraphicsManager;
     _graphicsDeviceProvider    = graphicsDeviceProvider;
     _clientWindowSizeProvider  = clientWindowSizeProvider;
     _endlessGameProvider       = endlessGameProvider;
     _characterRepository       = characterRepository;
     _currentMapStateRepository = currentMapStateRepository;
     _keyStateRepository        = keyStateRepository;
     _statusLabelSetter         = statusLabelSetter;
     _statusLabelTextProvider   = statusLabelTextProvider;
     _contentManagerProvider    = contentManagerProvider;
     _hudControlProvider        = hudControlProvider;
     _chatModeCalculator        = chatModeCalculator;
     _experienceTableProvider   = experienceTableProvider;
 }
示例#18
0
        public DoorStateUpdater(ICurrentMapStateRepository currentMapStateRepository)
        {
            _currentMapStateRepository = currentMapStateRepository;

            _cachedDoorState = new List <DoorTimePair>();
        }
 public PlayerLeaveMapHandler(IPlayerInfoProvider playerInfoProvider,
                              ICurrentMapStateRepository currentMapStateRepository)
     : base(playerInfoProvider)
 {
     _currentMapStateRepository = currentMapStateRepository;
 }
示例#20
0
 public PlayerDirectionHandler(IPlayerInfoProvider playerInfoProvider,
                               ICurrentMapStateRepository mapStateRepository)
     : base(playerInfoProvider)
 {
     _mapStateRepository = mapStateRepository;
 }
 public PlayerAvatarChangeHandler(IPlayerInfoProvider playerInfoProvider,
                                  ICurrentMapStateRepository currentMapStateRepository)
     : base(playerInfoProvider)
 {
     _currentMapStateRepository = currentMapStateRepository;
 }
示例#22
0
 public DoorOpenHandler(IPlayerInfoProvider playerInfoProvider,
                        ICurrentMapStateRepository currentMapStateRepository)
     : base(playerInfoProvider)
 {
     _currentMapStateRepository = currentMapStateRepository;
 }
示例#23
0
 public MainPlayerWalkHandler(IPlayerInfoProvider playerInfoProvider,
                              ICurrentMapStateRepository currentMapStateRepository)
     : base(playerInfoProvider)
 {
     _currentMapStateRepository = currentMapStateRepository;
 }