public ClubPenguinClient(MonoBehaviour monoBehaviour, string apiURL, string clientToken, string clientApiVersion, string gameZone, bool gameEncryption, bool gameDebugging, bool lagMonitoring, int gameServerLatencyWindowSize, int webServiceLatencyWindowSize, string cpMonitoringURL, string websiteApiURL, bool offlineMode) { OfflineMode = offlineMode; SyncContext = new UnitySynchronizationContext(monoBehaviour); ICommonGameSettings commonGameSettings = Service.Get <ICommonGameSettings>(); if (offlineMode && string.IsNullOrEmpty(commonGameSettings.GameServerHost) && string.IsNullOrEmpty(commonGameSettings.CPAPIServicehost)) { GameServer = new OfflineGameServerClient(this); } else { GameServer = new SmartFoxGameServerClient(this, gameZone, gameEncryption, gameDebugging, lagMonitoring); } BreadcrumbApi = new BreadcrumbApi(this); ChatApi = new ChatApi(this); ConsumableApi = new ConsumableApi(this); DurableApi = new DurableApi(this); EncryptionApi = new EncryptionApi(this); GameApi = new GameApi(this); IglooApi = new IglooApi(this); InventoryApi = new InventoryApi(this); MinigameApi = new MinigameApi(this); PlayerApi = new PlayerApi(this); QuestApi = new QuestApi(this); RewardApi = new RewardApi(this); SavedOutfitApi = new SavedOutfitApi(this); TaskApi = new TaskApi(this); IAPApi = new IAPApi(this); TutorialApi = new TutorialApi(this); ModerationApi = new ModerationApi(this); TubeApi = new TubeApi(this); DisneyStoreApi = new DisneyStoreApi(this); NewsfeedApi = new NewsfeedApi(this); CatalogApi = new CatalogApi(this); ScheduledEventApi = new ScheduledEventApi(this); DiagnosticsApi = new DiagnosticsApi(this); CaptchaApi = new CaptchaApi(this); initWAK(apiURL, clientToken, clientApiVersion); Configuration.SetBaseUri("cp-monitoring-base-uri", cpMonitoringURL); Configuration.SetBaseUri("cp-website-api-base-uri", websiteApiURL); initCPKeyValueDatabase(Service.Get <IKeychain>()); initEncryption(); RecoverableOperationService = new QueuableRecoverableOperationService(this); if (lagMonitoring) { GameServerLatency = new RollingStatistics(gameServerLatencyWindowSize); WebServiceLatency = new RollingStatistics(webServiceLatencyWindowSize); } }
public void SetGameServerClient(OfflineGameServerClient client) { this.client = client; }
public PartyGameSessionManager(OfflineGameServerClient offlineGameServerClient) { client = offlineGameServerClient; }
public new void SetGameServerClient(OfflineGameServerClient client) { base.client = client; }