77 lines
1.9 KiB
ActionScript
77 lines
1.9 KiB
ActionScript
package net.pixvi.myrloader.center
|
|
{
|
|
public class MyrCenter
|
|
{
|
|
|
|
public static const PLATFORM_PC:String = "PC";
|
|
|
|
public static const PLATFORM_IOS:String = "IOS";
|
|
|
|
public static const PLATFORM_ANDROID:String = "ANDROID";
|
|
|
|
public static const CHANNEL_DYD:String = "DYD";
|
|
|
|
public static const CHANNEL_BLBL:String = "BLBL";
|
|
|
|
public static const CHANNEL_MEIZU:String = "MEIZU";
|
|
|
|
public static const CHANNEL_TEST:String = "TEST";
|
|
|
|
public static const CHANNEL_JAPAN:String = "XDG";
|
|
|
|
public static const CHANNEL_LOCAL:String = "LOCAL";
|
|
|
|
public static const CHANNEL_CPG:String = "CPG";
|
|
|
|
public static var OBB_MODE:Boolean = false;
|
|
|
|
public static var obb_packageName:String;
|
|
|
|
public static var obb_mainVersion:String;
|
|
|
|
public static var obb_traceMode:Boolean = false;
|
|
|
|
public static var closeLoginSelectBack:Boolean = false;
|
|
|
|
public static var closeRealName:Boolean = false;
|
|
|
|
public static var startLogout:Boolean = false;
|
|
|
|
public static const LANG_CN:String = "CN";
|
|
|
|
public static const LANG_JP:String = "JP";
|
|
|
|
public static var platform:String;
|
|
|
|
public static var channel:String;
|
|
|
|
public static var lang:String;
|
|
|
|
public static var serverChannel:String;
|
|
|
|
public function MyrCenter()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public static function isObbMode() : Boolean
|
|
{
|
|
if(platform == "ANDROID" && OBB_MODE == true && obb_mainVersion != "")
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static function hasLang() : Boolean
|
|
{
|
|
if(lang != null && lang != "" && lang != "CN")
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|