Exemplo n.º 1
0
        public static ServerSeasonPass GetSeasonPass()
        {
            AccelByteServerPlugin.CheckPlugin();

            return(AccelByteServerPlugin.seasonPass ?? (AccelByteServerPlugin.seasonPass = new ServerSeasonPass(
                                                            new ServerSeasonPassApi(
                                                                AccelByteServerPlugin.config.BaseUrl,
                                                                AccelByteServerPlugin.httpClient),
                                                            AccelByteServerPlugin.session,
                                                            AccelByteServerPlugin.config.Namespace,
                                                            AccelByteServerPlugin.coroutineRunner)));
        }
Exemplo n.º 2
0
        public static ServerMatchmaking GetMatchmaking()
        {
            AccelByteServerPlugin.CheckPlugin();

            return(AccelByteServerPlugin.matchmaking ?? (AccelByteServerPlugin.matchmaking = new ServerMatchmaking(
                                                             new ServerMatchmakingApi(
                                                                 AccelByteServerPlugin.config.MatchmakingServerUrl,
                                                                 AccelByteServerPlugin.httpClient),
                                                             AccelByteServerPlugin.session,
                                                             AccelByteServerPlugin.config.Namespace,
                                                             AccelByteServerPlugin.coroutineRunner)));
        }
Exemplo n.º 3
0
        public static ServerUserAccount GetUserAccount()
        {
            AccelByteServerPlugin.CheckPlugin();

            return(AccelByteServerPlugin.userAccount ?? (AccelByteServerPlugin.userAccount = new ServerUserAccount(
                                                             new ServerUserAccountApi(
                                                                 AccelByteServerPlugin.config.BaseUrl,
                                                                 AccelByteServerPlugin.httpClient),
                                                             AccelByteServerPlugin.session,
                                                             AccelByteServerPlugin.config.Namespace,
                                                             AccelByteServerPlugin.coroutineRunner)));
        }
Exemplo n.º 4
0
        public static ServerQos GetQos()
        {
            if (AccelByteServerPlugin.qos != null)
            {
                return(AccelByteServerPlugin.qos);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.qos = new ServerQos(
                new ServerQosManagerApi(
                    AccelByteServerPlugin.config.QosManagerServerUrl,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.qos);
        }
Exemplo n.º 5
0
        public static ServerGameTelemetry GetGameTelemetry()
        {
            if (AccelByteServerPlugin.gameTelemetry != null)
            {
                return(AccelByteServerPlugin.gameTelemetry);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.gameTelemetry = new ServerGameTelemetry(
                new ServerGameTelemetryApi(
                    AccelByteServerPlugin.config.GameTelemetryServerUrl,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.session,
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.gameTelemetry);
        }
Exemplo n.º 6
0
        public static ServerCloudSave GetCloudSave()
        {
            if (AccelByteServerPlugin.cloudSave != null)
            {
                return(AccelByteServerPlugin.cloudSave);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.cloudSave = new ServerCloudSave(
                new ServerCloudSaveApi(
                    AccelByteServerPlugin.config.CloudSaveServerUrl,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.session,
                AccelByteServerPlugin.config.Namespace,
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.cloudSave);
        }
Exemplo n.º 7
0
        public static ServerLobby GetLobby()
        {
            if (AccelByteServerPlugin.lobby != null)
            {
                return(AccelByteServerPlugin.lobby);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.lobby = new ServerLobby(
                new ServerLobbyApi(
                    AccelByteServerPlugin.config.LobbyServerUrl,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.session,
                AccelByteServerPlugin.config.Namespace,
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.lobby);
        }
Exemplo n.º 8
0
        public static ServerAchievement GetAchievement()
        {
            if (AccelByteServerPlugin.achievement != null)
            {
                return(AccelByteServerPlugin.achievement);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.achievement = new ServerAchievement(
                new ServerAchievementApi(
                    AccelByteServerPlugin.config.AchievementServerUrl,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.session,
                AccelByteServerPlugin.config.Namespace,
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.achievement);
        }
Exemplo n.º 9
0
        public static ServerStatistic GetStatistic()
        {
            if (AccelByteServerPlugin.statistic != null)
            {
                return(AccelByteServerPlugin.statistic);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.statistic = new ServerStatistic(
                new ServerStatisticApi(
                    AccelByteServerPlugin.config.StatisticServerUrl,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.session,
                AccelByteServerPlugin.config.Namespace,
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.statistic);
        }
Exemplo n.º 10
0
        public static ServerEcommerce GetEcommerce()
        {
            if (AccelByteServerPlugin.ecommerce != null)
            {
                return(AccelByteServerPlugin.ecommerce);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.ecommerce = new ServerEcommerce(
                new ServerEcommerceApi(
                    AccelByteServerPlugin.config.PlatformServerUrl,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.session,
                AccelByteServerPlugin.config.Namespace,
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.ecommerce);
        }
Exemplo n.º 11
0
        public static DedicatedServerManager GetDedicatedServerManager()
        {
            if (AccelByteServerPlugin.dedicatedServerManager != null)
            {
                return(AccelByteServerPlugin.dedicatedServerManager);
            }

            AccelByteServerPlugin.CheckPlugin();
            AccelByteServerPlugin.dedicatedServerManager = new DedicatedServerManager(
                new DedicatedServerManagerApi(
                    AccelByteServerPlugin.config.DSMControllerServerUrl,
                    AccelByteServerPlugin.config.Namespace,
                    AccelByteServerPlugin.httpClient),
                AccelByteServerPlugin.session,
                AccelByteServerPlugin.coroutineRunner);

            return(AccelByteServerPlugin.dedicatedServerManager);
        }
Exemplo n.º 12
0
 public static DedicatedServer GetDedicatedServer()
 {
     AccelByteServerPlugin.CheckPlugin();
     return(AccelByteServerPlugin.server);
 }