private void init() { _comms = new BrainCloudComms(this); _rttComms = new RTTComms(this); _rsComms = new RelayComms(this); _entityService = new BrainCloudEntity(this); #if !XAMARIN _entityFactory = new BCEntityFactory(_entityService); #endif _globalEntityService = new BrainCloudGlobalEntity(this); _globalAppService = new BrainCloudGlobalApp(this); _presenceService = new BrainCloudPresence(this); _productService = new BrainCloudProduct(this); _virtualCurrencyService = new BrainCloudVirtualCurrency(this); _appStore = new BrainCloudAppStore(this); _playerStatisticsService = new BrainCloudPlayerStatistics(this); _globalStatisticsService = new BrainCloudGlobalStatistics(this); _identityService = new BrainCloudIdentity(this); _itemCatalogService = new BrainCloudItemCatalog(this); _userItemsService = new BrainCloudUserItems(this); _scriptService = new BrainCloudScript(this); _matchMakingService = new BrainCloudMatchMaking(this); _oneWayMatchService = new BrainCloudOneWayMatch(this); _playbackStreamService = new BrainCloudPlaybackStream(this); _gamificationService = new BrainCloudGamification(this); _playerStateService = new BrainCloudPlayerState(this); _friendService = new BrainCloudFriend(this); _eventService = new BrainCloudEvent(this); _leaderboardService = new BrainCloudSocialLeaderboard(this); _asyncMatchService = new BrainCloudAsyncMatch(this); _timeService = new BrainCloudTime(this); _tournamentService = new BrainCloudTournament(this); _globalFileService = new BrainCloudGlobalFile(this); _customEntityService = new BrainCloudCustomEntity(this); _authenticationService = new BrainCloudAuthentication(this); _pushNotificationService = new BrainCloudPushNotification(this); _playerStatisticsEventService = new BrainCloudPlayerStatisticsEvent(this); _s3HandlingService = new BrainCloudS3Handling(this); _redemptionCodeService = new BrainCloudRedemptionCode(this); _dataStreamService = new BrainCloudDataStream(this); _profanityService = new BrainCloudProfanity(this); _fileService = new BrainCloudFile(this); _groupService = new BrainCloudGroup(this); _mailService = new BrainCloudMail(this); _messagingService = new BrainCloudMessaging(this); // RTT _lobbyService = new BrainCloudLobby(this); _chatService = new BrainCloudChat(this); _rttService = new BrainCloudRTT(_rttComms, this); _rsService = new BrainCloudRelay(_rsComms); }
public BrainCloudClient() { _comms = new BrainCloudComms(this); _entityService = new BrainCloudEntity(this); #if !XAMARIN _entityFactory = new BCEntityFactory(_entityService); #endif _globalEntityService = new BrainCloudGlobalEntity(this); _globalAppService = new BrainCloudGlobalApp(this); _productService = new BrainCloudProduct(this); _playerStatisticsService = new BrainCloudPlayerStatistics(this); _globalStatisticsService = new BrainCloudGlobalStatistics(this); _identityService = new BrainCloudIdentity(this); _scriptService = new BrainCloudScript(this); _matchMakingService = new BrainCloudMatchMaking(this); _oneWayMatchService = new BrainCloudOneWayMatch(this); _playbackStreamService = new BrainCloudPlaybackStream(this); _gamificationService = new BrainCloudGamification(this); _playerStateService = new BrainCloudPlayerState(this); _friendService = new BrainCloudFriend(this); _eventService = new BrainCloudEvent(this); _leaderboardService = new BrainCloudSocialLeaderboard(this); _asyncMatchService = new BrainCloudAsyncMatch(this); _timeService = new BrainCloudTime(this); _tournamentService = new BrainCloudTournament(this); _authenticationService = new BrainCloudAuthentication(this); _pushNotificationService = new BrainCloudPushNotification(this); _playerStatisticsEventService = new BrainCloudPlayerStatisticsEvent(this); _s3HandlingService = new BrainCloudS3Handling(this); _redemptionCodeService = new BrainCloudRedemptionCode(this); _dataStreamService = new BrainCloudDataStream(this); _profanityService = new BrainCloudProfanity(this); _fileService = new BrainCloudFile(this); _groupService = new BrainCloudGroup(this); _mailService = new BrainCloudMail(this); }