コード例 #1
0
    public static bool ChangeCurrentCloudService(MFGCloudService cloud)
    {
#if USING_MULTI_CLOUD_CONFIG
        m_CurrentCloudService = cloud;
        return(true);
#else
        Debug.LogError("ChangeCurrentCloudService: service is not enabled.");
        return(false);
#endif
    }
コード例 #2
0
    public static string GetURLBase(MFGCloudService service)
    {
        switch (service)
        {
        case MFGCloudService.Community:
            return(SERVICE_URL_BASE_COMMUNITY);

        case MFGCloudService.Localhost:
            return(SERVICE_URL_BASE_LOCAL);
        }

        Debug.LogError("CloudServices.GetCurrentURLBase() : unsupported cloud service - " + m_CurrentCloudService);

        return(string.Empty);
    }
コード例 #3
0
 /// <summary>
 /// Returns true for the retail or important service, false for develop, testing and local services
 /// </summary>
 public static bool IsServiceCritical(MFGCloudService service)
 {
     return(service == MFGCloudService.Community);
 }