[network] added NetworkFrame
This commit is contained in:
@@ -105,7 +105,7 @@ exports['client'] = gulp.series(
|
||||
|
||||
const testFlash = function() {
|
||||
const argv = yargs.argv;
|
||||
return build('flash')()
|
||||
return build('flash', {proto_debug: true})()
|
||||
.pipe(new FlashPlayer().run(argv.dev))
|
||||
.pipe(debug());
|
||||
};
|
||||
|
||||
@@ -8,6 +8,12 @@ const prepare = require('./prepare');
|
||||
const debug = require('../tasks/debug');
|
||||
|
||||
|
||||
const generate = () => function generate() {
|
||||
return new Haxe().haxelib([
|
||||
'run', 'protohx', 'generate', 'protohx.json'
|
||||
]);
|
||||
};
|
||||
|
||||
const build = () => function build() {
|
||||
const argv = yargs.argv;
|
||||
return gulp.src('.')
|
||||
@@ -18,6 +24,7 @@ const build = () => function build() {
|
||||
'protohx',
|
||||
'orm',
|
||||
'haxework:git',
|
||||
'haxe-crypto'
|
||||
],
|
||||
cp: [
|
||||
'src/common/haxe',
|
||||
@@ -27,6 +34,9 @@ const build = () => function build() {
|
||||
main: 'ru.m.tankz.server.Server',
|
||||
outputFile: 'tankz.n',
|
||||
debug: argv.dev,
|
||||
values: {
|
||||
proto_debug: true
|
||||
}
|
||||
}))
|
||||
.pipe(gulp.dest('target'));
|
||||
};
|
||||
@@ -39,5 +49,5 @@ const test = (build) => function test() {
|
||||
};
|
||||
|
||||
|
||||
exports['server'] = gulp.series(prepare(Haxe.ID), build());
|
||||
exports['server:test'] = gulp.series(prepare(Haxe.ID, FlashPlayer.ID), test(build()));
|
||||
exports['server'] = gulp.series(prepare(Haxe.ID), generate(), build());
|
||||
exports['server:test'] = gulp.series(prepare(Haxe.ID, FlashPlayer.ID), generate(), test(build()));
|
||||
|
||||
Reference in New Issue
Block a user