/// <summary> /// Creates a new <see cref="Gw2WebApiV2Client"/>. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <c>null</c>.</exception> protected internal Gw2WebApiV2Client(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { if (connection == null) { throw new ArgumentNullException(nameof(connection)); } if (gw2Client == null) { throw new ArgumentNullException(nameof(gw2Client)); } this.account = new AccountClient(connection, gw2Client); this.achievements = new AchievementsClient(connection, gw2Client); this.backstory = new BackstoryClient(connection, gw2Client); this.build = new BuildClient(connection, gw2Client); this.characters = new CharactersClient(connection, gw2Client); this.colors = new ColorsClient(connection, gw2Client); this.commerce = new CommerceClient(connection, gw2Client); this.continents = new ContinentsClient(connection, gw2Client); this.createSubtoken = new CreateSubtokenClient(connection, gw2Client); this.currencies = new CurrenciesClient(connection, gw2Client); this.dailyCrafting = new DailyCraftingClient(connection, gw2Client); this.dungeons = new DungeonsClient(connection, gw2Client); this.emblem = new EmblemClient(connection, gw2Client); this.emotes = new EmotesClient(connection, gw2Client); this.files = new FilesClient(connection, gw2Client); this.finishers = new FinishersClient(connection, gw2Client); this.gliders = new GlidersClient(connection, gw2Client); this.guild = new GuildClient(connection, gw2Client); this.home = new HomeClient(connection, gw2Client); this.items = new ItemsClient(connection, gw2Client); this.itemstats = new ItemstatsClient(connection, gw2Client); this.legends = new LegendsClient(connection, gw2Client); this.mailCarriers = new MailCarriersClient(connection, gw2Client); this.mapChests = new MapChestsClient(connection, gw2Client); this.maps = new MapsClient(connection, gw2Client); this.masteries = new MasteriesClient(connection, gw2Client); this.materials = new MaterialsClient(connection, gw2Client); this.minis = new MinisClient(connection, gw2Client); this.mounts = new MountsClient(connection, gw2Client); this.novelties = new NoveltiesClient(connection, gw2Client); this.outfits = new OutfitsClient(connection, gw2Client); this.pets = new PetsClient(connection, gw2Client); this.professions = new ProfessionsClient(connection, gw2Client); this.pvp = new PvpClient(connection, gw2Client); this.quaggans = new QuaggansClient(connection, gw2Client); this.quests = new QuestsClient(connection, gw2Client); this.races = new RacesClient(connection, gw2Client); this.raids = new RaidsClient(connection, gw2Client); this.recipes = new RecipesClient(connection, gw2Client); this.skills = new SkillsClient(connection, gw2Client); this.tokenInfo = new TokenInfoClient(connection, gw2Client); this.worldBosses = new WorldBossesClient(connection, gw2Client); }
public MainMenuStateManager( ICharactersClient charactersClient, MainMenuState state) { _charactersClient = charactersClient; _currentState = state; _stateSubject = new BehaviorSubject <MainMenuState>(_currentState); _ = GetCharacters(); // Fire and forget. }
public CharacterCreationInputHandler( ITyperPool typerPool, ComponentPool componentPool, CharacterCreationState state, IScreenNavigation screenNavigation, ICharactersClient charactersClient) : base(typerPool, componentPool) { _screenNavigation = screenNavigation; _charactersClient = charactersClient; _state = state; }
public ScreenFactory( ITextGenerator textGenerator, IConnectionManager connectionManager, ICharactersClient charactersClient, ILocationsClient locationsClient, IOutput output, IPrinter <MainMenuState> mainMenuPrinter, IPrinter <CharacterCreationState> characterCreationPrinter, IPrinter <WorldScreenState> worldPrinter) { _textGenerator = textGenerator; _connectionManager = connectionManager; _charactersClient = charactersClient; _locationsClient = locationsClient; _output = output; _mainMenuPrinter = mainMenuPrinter; _characterCreationPrinter = characterCreationPrinter; _worldPrinter = worldPrinter; // Create this only after initializing everything inside ScreenFactory. ScreenNavigation = new ScreenNavigation(this); Task.Run(() => ScreenNavigation.Screen = GameScreen.MainMenu); }
public ProposeRopeWarContestHandler(ILocationStore locationStore, ICharactersClient charactersClient) { _locationStore = locationStore; _charactersClient = charactersClient; }
public ProfileServiceAdapter(ICharactersClient charactersClient) { _charactersClient = charactersClient; }
public CharacterStateServiceAdapter(ICharactersClient charactersClient) { _charactersClient = charactersClient; }
public AuthorizeCharacterConnectHook(ICharactersClient charactersClient) { _charactersClient = charactersClient; }