[build] added gulp builder

This commit is contained in:
2017-12-17 22:29:16 +03:00
parent 823799e8fb
commit 69c2b735a0
24 changed files with 1273 additions and 4 deletions

View File

@@ -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();
}

View 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;
}
}