[build] added gulp builder
This commit is contained in:
@@ -31,7 +31,10 @@ class Client implements IConnectionHandler {
|
||||
#if flash
|
||||
L.push(new JSLogger());
|
||||
#end
|
||||
L.d(TAG, Meta.getVersion());
|
||||
Const.init();
|
||||
L.d(TAG, "Debug: " + Const.DEBUG);
|
||||
L.i(TAG, "Version: " + Const.VERSION);
|
||||
L.i(TAG, "Build: " + Const.BUILD);
|
||||
new Client();
|
||||
}
|
||||
|
||||
|
||||
19
src/client/haxe/ru/m/tankz/Const.hx
Executable file
19
src/client/haxe/ru/m/tankz/Const.hx
Executable file
@@ -0,0 +1,19 @@
|
||||
package ru.m.tankz;
|
||||
|
||||
import flash.Lib;
|
||||
import flash.system.Capabilities;
|
||||
|
||||
|
||||
class Const {
|
||||
public static var FPS:Int;
|
||||
public static var BUILD:String;
|
||||
public static var VERSION:String;
|
||||
public static var DEBUG:Bool;
|
||||
|
||||
public static function init():Void {
|
||||
FPS = Lib.current.stage.application.config.fps;
|
||||
BUILD = CompilationOption.get("build");
|
||||
VERSION = Lib.current.stage.application.config.version;
|
||||
DEBUG = Capabilities.isDebugger;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user