public enum ENVIRONMENT { LOCAL, DEV, STAGING, PRODUCTION }
#if UNITY_EDITOR
public static string api_base = "dev-api-url";
public static ENVIRONMENT rdb_environment = ENVIRONMENT.DEV;
//public static string api_base = "http://localhost:1337/";
//public static ENVIRONMENT rdb_environment = ENVIRONMENT.LOCAL;
#elif UNITY_WEBGL
public static string api_base
{
get
{
switch(JavascriptData.getEnvironment())
{
case JavascriptData.ENVIRONMENT.LOCAL:
return "http://localhost:1337/";
case JavascriptData.ENVIRONMENT.DEV:
return "dev-api-url";
case JavascriptData.ENVIRONMENT.STAGING:
return "stage-api-url";
case JavascriptData.ENVIRONMENT.PROD:
return "prod-api-url";
default:
return "dev-api-url";
}
}
}
public static ENVIRONMENT rdb_environment
{
get
{
switch(JavascriptData.getEnvironment())
{
case JavascriptData.ENVIRONMENT.LOCAL:
return ENVIRONMENT.LOCAL;
case JavascriptData.ENVIRONMENT.DEV:
return ENVIRONMENT.DEV;
case JavascriptData.ENVIRONMENT.STAGING:
return ENVIRONMENT.STAGING;
case JavascriptData.ENVIRONMENT.PROD:
return ENVIRONMENT.PRODUCTION;
default:
return ENVIRONMENT.DEV;
}
}
}
#elif DEVELOPMENT
public static string api_base = "dev-api-url";
public static ENVIRONMENT rdb_environment = ENVIRONMENT.DEV;
#elif STAGING
public static string api_base = "stage-api-url";
public static ENVIRONMENT rdb_environment = ENVIRONMENT.STAGING;
#elif PRODUCTION
public static string api_base = "prod-api-url";
public static ENVIRONMENT rdb_environment = ENVIRONMENT.PRODUCTION;
#else
public static string api_base = "dev-api-url";
public static ENVIRONMENT rdb_environment = ENVIRONMENT.DEV;
//public static string api_base = "http://localhost:1337/";
//public static ENVIRONMENT rdb_environment = ENVIRONMENT.LOCAL;
#endif
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}