Exemplo n.º 1
0
        public BrainCloudClient()
        {
            m_bc                  = new BrainCloudComms(this);
            m_entityService       = new BrainCloudEntity(this);
            m_entityFactory       = new BCEntityFactory(m_entityService);
            m_globalEntityService = new BrainCloudGlobalEntity(this);

            m_globalAppService        = new BrainCloudGlobalApp(this);
            m_productService          = new BrainCloudProduct(this);
            m_playerStatisticsService = new BrainCloudPlayerStatistics(this);
            m_globalStatisticsService = new BrainCloudGlobalStatistics(this);

            m_identityService    = new BrainCloudIdentity(this);
            m_scriptService      = new BrainCloudScript(this);
            m_matchMakingService = new BrainCloudMatchMaking(this);
            m_oneWayMatchService = new BrainCloudOneWayMatch(this);

            m_playbackStreamService = new BrainCloudPlaybackStream(this);
            m_gamificationService   = new BrainCloudGamification(this);
            m_playerStateService    = new BrainCloudPlayerState(this);
            m_friendService         = new BrainCloudFriend(this);

            m_eventService             = new BrainCloudEvent(this);
            m_socialLeaderboardService = new BrainCloudSocialLeaderboard(this);
            m_asyncMatchService        = new BrainCloudAsyncMatch(this);
            m_timeService = new BrainCloudTime(this);

            m_authenticationService        = new BrainCloudAuthentication(this);
            m_twitterService               = new BrainCloudTwitter(this);
            m_pushNotificationService      = new BrainCloudPushNotification(this);
            m_playerStatisticsEventService = new BrainCloudPlayerStatisticsEvent(this);
        }
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        public BrainCloudClient()
        {
            m_bc = new BrainCloudComms(this);
            m_entityService = new BrainCloudEntity(this);
            m_entityFactory = new BCEntityFactory(m_entityService);
            m_globalEntityService = new BrainCloudGlobalEntity(this);

            m_globalAppService = new BrainCloudGlobalApp(this);
            m_productService = new BrainCloudProduct(this);
            m_playerStatisticsService = new BrainCloudPlayerStatistics(this);
            m_globalStatisticsService = new BrainCloudGlobalStatistics(this);

            m_identityService = new BrainCloudIdentity(this);
            m_scriptService = new BrainCloudScript(this);
            m_matchMakingService = new BrainCloudMatchMaking(this);
            m_oneWayMatchService = new BrainCloudOneWayMatch(this);

            m_playbackStreamService = new BrainCloudPlaybackStream(this);
            m_gamificationService = new BrainCloudGamification(this);
            m_playerStateService = new BrainCloudPlayerState(this);
            m_friendService = new BrainCloudFriend(this);

            m_eventService = new BrainCloudEvent(this);
            m_socialLeaderboardService = new BrainCloudSocialLeaderboard(this);
            m_asyncMatchService = new BrainCloudAsyncMatch(this);
            m_timeService = new BrainCloudTime(this);

            m_authenticationService = new BrainCloudAuthentication(this);
            m_twitterService = new BrainCloudTwitter(this);
            m_pushNotificationService = new BrainCloudPushNotification(this);
            m_playerStatisticsEventService = new BrainCloudPlayerStatisticsEvent(this);
        }