[common] add dota levels

This commit is contained in:
2019-03-27 17:39:41 +03:00
parent 404dd77806
commit 121c470b00
23 changed files with 78 additions and 25 deletions

View File

@@ -98,10 +98,10 @@ typedef GamePreset = {
typedef LevelConfig = {
var data:Array<BrickConfig>;
@:optional var name:String;
@:optional var points:Array<SpawnPoint>;
}
class Config {
public var type(default, null):String;
public var game(default, null):GameConfig;

View File

@@ -5,9 +5,9 @@ import yaml.Parser;
import yaml.Renderer;
import yaml.Yaml;
typedef LevelSource = {
var data:String;
@:optional var name:String;
@:optional var points:Array<SpawnPoint>;
}
@@ -41,6 +41,7 @@ class LevelUtil {
return {
data: obj.data.split('').map(function(c) return config.getBrickByIndex(Std.parseInt(c))),
points: obj.points,
name: obj.name,
}
}
}
@@ -50,6 +51,7 @@ class LevelUtil {
return Yaml.render({
data: bricksStr,
points: level.points,
name: level.name,
}, Renderer.options().setFlowLevel(1));
}

View File

@@ -1,5 +1,5 @@
game:
levels: 8
levels: 16
friendlyFire: true
complete: []

View File

@@ -0,0 +1,2 @@
points: [{index: -1, direction: right, team: radiant, x: 24, type: eagle, y: 26}, {index: 0, direction: right, team: radiant, x: 14, type: tank, y: 26}, {index: 1, direction: right, team: radiant, x: 20, type: tank, y: 20}, {index: 2, direction: right, team: radiant, x: 26, type: tank, y: 20}, {index: 3, direction: right, team: radiant, x: 34, type: tank, y: 24}, {index: 4, direction: right, team: radiant, x: 38, type: tank, y: 22}, {index: -1, direction: right, team: dire, x: 22, type: eagle, y: 2}, {index: 0, direction: left, team: dire, x: 8, type: tank, y: 2}, {index: 1, direction: left, team: dire, x: 12, type: tank, y: 6}, {index: 2, direction: left, team: dire, x: 20, type: tank, y: 6}, {index: 3, direction: left, team: dire, x: 21, type: tank, y: 10}, {index: 4, direction: left, team: dire, x: 28, type: tank, y: 4}]
data: "444444444400000000440000004444000000000044444444440000000044000000444400000000004444440000004444004400000044440033444400444444000000444400440000004444003344440000000000440000440044000000000000000000000000000044000044004400000000000000000000003344004400000000000044004444440000444400334400440000000000004400444444000044440000000000004400444444440033440000005544000000000000440044444444003344000000554444004433440044444400000000004400440000004400443344004444440000000000440044000000440000000000004444004444440044004444440044000000000000444400444444004400444444000000440055440044440044440000000055444400000044005544004444004444000000005544440000444400444400000000000000443300000000000044440044440000000000000044330000000000000044004444003300444444004444004433004400004400444400330044444400444400443300444400000000000033000000000000000044000000440000000000003300000000000000004400000044440044004444444400444444440000440044004444004400444444440044444444000044004400000000000000440000000000000000000000440000000000000044000000000000000000000044004455003344000000440044000000440033444400445500334400000044004400000044003344440044440000000044000000440000004400000000004444000000004400000044000000440000000000"

View File

@@ -0,0 +1,2 @@
points: [{index: -1, direction: right, team: radiant, x: 12, type: eagle, y: 2}, {index: 0, direction: right, team: radiant, x: 6, type: tank, y: 6}, {index: 1, direction: right, team: radiant, x: 10, type: tank, y: 10}, {index: 2, direction: right, team: radiant, x: 14, type: tank, y: 10}, {index: 3, direction: right, team: radiant, x: 18, type: tank, y: 6}, {index: 4, direction: right, team: radiant, x: 20, type: tank, y: 2}, {index: -1, direction: right, team: dire, x: 22, type: eagle, y: 26}, {index: 0, direction: left, team: dire, x: 12, type: tank, y: 26}, {index: 1, direction: left, team: dire, x: 18, type: tank, y: 22}, {index: 2, direction: left, team: dire, x: 24, type: tank, y: 22}, {index: 3, direction: left, team: dire, x: 28, type: tank, y: 18}, {index: 4, direction: left, team: dire, x: 30, type: tank, y: 10}]
data: "000000000033333300000000000000000000000000000000003333330000000000000000000000000000004400330033004400000000003300000044000000440033003300440000000000330000004400000000003333330000000044440000000000000000000000333333000000004444000000000000000000000000000000003300000000004444000000000000000000000000330000000000444400000044000000004400000000004400000044000000004400000000440000000000440000004400000000000033000000000000004444000000000000000000003300000000000000444400000000000000000000000000330000440000000033000000000000000000000033000044000000003300000000000000000000000000444400004400000000000000000000000000000044440000440000000000000000000000334444004444000000000044000000000000000033444400444400000000004400000000004400000044000000000000330000440000000000440000004400000000000033000044000000000000440000000000330000440000000000000033000044000000000033000044000000000000003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044000000003333330000000033000000000000004400000000333333000000003300000000000000000000440033003300440000000000000000000000000044003300330044000000000000000000000000000000333333000000000000000000000000000000000033333300000000000000"

View File

@@ -1,2 +1,3 @@
points: [{index: -1, direction: right, team: radiant, type: eagle, y: 28, x: 0}, {index: 0, direction: right, team: radiant, type: tank, y: 2, x: 2}, {index: 1, direction: right, team: radiant, type: tank, y: 6, x: 2}, {index: 2, direction: right, team: radiant, type: tank, y: 10, x: 2}, {index: 3, direction: right, team: radiant, type: tank, y: 14, x: 2}, {index: 4, direction: right, team: radiant, type: tank, y: 18, x: 2}, {index: -1, direction: right, team: dire, type: eagle, y: 28, x: 38}, {index: 0, direction: left, team: dire, type: tank, y: 2, x: 36}, {index: 1, direction: left, team: dire, type: tank, y: 6, x: 36}, {index: 2, direction: left, team: dire, type: tank, y: 10, x: 36}, {index: 3, direction: left, team: dire, type: tank, y: 14, x: 36}, {index: 4, direction: left, team: dire, type: tank, y: 18, x: 36}]
data: "005500330033003300333300330033003300550000550033003300330033330033003300330055000000000000330033000000003300330000000000000000000033003300000000330033000000000000550033000000330000000033000000330055000055003300000033000000003300000033005500000000330000003300333300330000003300000000000033000000330033330033000000330000000055000000330033003333003300330000005500005500000033003300333300330033000000550000000033003300330033330033003300330000000000003300330033003333003300330033000000005500330000003300333300330000003300550000550033000000330033330033000000330055000000000000330033003333003300330000000000000000000033003300333300330033000000000000550033003300330033330033003300330055000055003300330033003333003300330033005500000000330033003300333300330033003300000000000033003300330033330033003300330000005555553300330033003333003300330033555555555555330033003300333300330033003355555555555533003300330033330033003300335555555555553300330033003333003300330033555555440000330033000000333300000033000000004444000033003300000033330000003300000000440000443300330000003333000000330033440000000044330033000000333300000033003344000000440033003300330033330033003300330044000044003300330033003333003300330033004400"
name: The War Returns
points: [{y: 26, team: radiant, x: 2, direction: right, type: eagle, index: -1}, {y: 14, team: radiant, x: 0, direction: right, type: tank, index: 0}, {y: 18, team: radiant, x: 4, direction: right, type: tank, index: 1}, {y: 20, team: radiant, x: 10, direction: right, type: tank, index: 2}, {y: 24, team: radiant, x: 14, direction: right, type: tank, index: 3}, {y: 28, team: radiant, x: 18, direction: right, type: tank, index: 4}, {y: 2, team: dire, x: 36, direction: right, type: eagle, index: -1}, {y: 0, team: dire, x: 22, direction: left, type: tank, index: 0}, {y: 4, team: dire, x: 24, direction: left, type: tank, index: 1}, {y: 8, team: dire, x: 28, direction: left, type: tank, index: 2}, {y: 10, team: dire, x: 34, direction: left, type: tank, index: 3}, {y: 14, team: dire, x: 38, direction: left, type: tank, index: 4}]
data: "000000000000000044000000000000000000444400000000000000004400000000000000000044440044004444004400440044440044004400000044004400444400440044004444004400440000004400000000000044000000000000440000000000000000000000004400000000000044000000000000004400440000000000440000000000444400000000440044000000000044000000000044440000000000004400444400000000004400000000004400000000440044440000000000440000000000440044000000000000004400440000000044000000004400000000000000440044000000004400000000000044440044000044004400444400440044000000004444004400004400440044440044004400000000004400440000000000000000000000440000000000440044000000000000000000000044000000440000000000000000004400000000000000000044000000000000000000440000000000000000000000440044440044004444000000444400000000000044004444004400444400000044440000000044004400000000000000000044000000004400004400440000000000000000004400000000440000000000004400440044440000000000000044000000000000440044004444000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000004400000044000000440000440044440044004400440000004400000044000044004444004400440044440000000000004400000000000000440000004444000000000000440000000000000044000000"

View File

@@ -1,2 +1,3 @@
data: "000000000000000000000000000000440000000000000000000000000000000000000044000000000044003300005500440000440055000000000000004400330000550044000044005500000000000000000000440000000000000000000055004400000000000044000000000000000000005500440000003300000000330044003300440000000000000000330000000033004400330044000000000000000000440055000000000000000000005500003300000044005500000000000000000000550000330000000000000055000044005500440000004400000000000000005500004400550044000000440000555500003300000000000000000000000000555555550000330000000000000000000000000055550055440000004400330000000000003300445500005544000000440033000000000000330044550055550000440000000044004400550000000055555555000044000000004400440055000000005555000000000000000000000000000044000044000000000000000000000000000000004400004400000044000044000044005500004400000000000000004400004400004400550000440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003300000000550000330055003300005500440000330000000055000033005500330000550044000000440033000000440000000000440000000000000044003300000044000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
points: [{direction: right, team: radiant, x: 0, type: eagle, y: 14, index: -1}, {direction: right, team: radiant, x: 0, type: tank, y: 0, index: 0}, {direction: right, team: radiant, x: 6, type: tank, y: 10, index: 1}, {direction: right, team: radiant, x: 6, type: tank, y: 16, index: 2}, {direction: right, team: radiant, x: 6, type: tank, y: 22, index: 3}, {direction: right, team: radiant, x: 10, type: tank, y: 28, index: 4}, {direction: right, team: dire, x: 38, type: eagle, y: 14, index: -1}, {direction: left, team: dire, x: 38, type: tank, y: 28, index: 0}, {direction: left, team: dire, x: 32, type: tank, y: 18, index: 1}, {direction: left, team: dire, x: 32, type: tank, y: 12, index: 2}, {direction: left, team: dire, x: 32, type: tank, y: 6, index: 3}, {direction: left, team: dire, x: 28, type: tank, y: 0, index: 4}]
name: Marsh Wars
points: [{y: 28, team: radiant, x: 0, direction: right, type: eagle, index: -1}, {y: 0, team: radiant, x: 0, direction: right, type: tank, index: 0}, {y: 4, team: radiant, x: 0, direction: right, type: tank, index: 1}, {y: 8, team: radiant, x: 0, direction: right, type: tank, index: 2}, {y: 12, team: radiant, x: 0, direction: right, type: tank, index: 3}, {y: 16, team: radiant, x: 0, direction: right, type: tank, index: 4}, {y: 28, team: dire, x: 38, direction: right, type: eagle, index: -1}, {y: 0, team: dire, x: 38, direction: left, type: tank, index: 0}, {y: 4, team: dire, x: 38, direction: left, type: tank, index: 1}, {y: 8, team: dire, x: 38, direction: left, type: tank, index: 2}, {y: 12, team: dire, x: 38, direction: left, type: tank, index: 3}, {y: 16, team: dire, x: 38, direction: left, type: tank, index: 4}]
data: "005500330033003300333300330033003300550000550033003300330033330033003300330055000000000000330033000000003300330000000000000000000033003300000000330033000000000000550033000000330000000033000000330055000055003300000033000000003300000033005500000000330000003300333300330000003300000000000033000000330033330033000000330000000055000000330033003333003300330000005500005500000033003300333300330033000000550000000033003300330033330033003300330000000000003300330033003333003300330033000000005500330000003300333300330000003300550000550033000000330033330033000000330055000000000000330033003333003300330000000000000000000033003300333300330033000000000000550033003300330033330033003300330055000055003300330033003333003300330033005500000000330033003300333300330033003300000000000033003300330033330033003300330000005555553300330033003333003300330033555555555555330033003300333300330033003355555555555533003300330033330033003300335555555555553300330033003333003300330033555555440000330033000000333300000033000000004444000033003300000033330000003300000000440000443300330000003333000000330033440000000044330033000000333300000033003344000000440033003300330033330033003300330044000044003300330033003333003300330033004400"

View File

@@ -1,2 +1,3 @@
points: [{index: -1, direction: right, team: radiant, x: 24, type: eagle, y: 26}, {index: 0, direction: right, team: radiant, x: 14, type: tank, y: 26}, {index: 1, direction: right, team: radiant, x: 20, type: tank, y: 20}, {index: 2, direction: right, team: radiant, x: 26, type: tank, y: 20}, {index: 3, direction: right, team: radiant, x: 34, type: tank, y: 24}, {index: 4, direction: right, team: radiant, x: 38, type: tank, y: 22}, {index: -1, direction: right, team: dire, x: 22, type: eagle, y: 2}, {index: 0, direction: left, team: dire, x: 8, type: tank, y: 2}, {index: 1, direction: left, team: dire, x: 12, type: tank, y: 6}, {index: 2, direction: left, team: dire, x: 20, type: tank, y: 6}, {index: 3, direction: left, team: dire, x: 21, type: tank, y: 10}, {index: 4, direction: left, team: dire, x: 28, type: tank, y: 4}]
data: "444444444400000000440000004444000000000044444444440000000044000000444400000000004444440000004444004400000044440033444400444444000000444400440000004444003344440000000000440000440044000000000000000000000000000044000044004400000000000000000000003344004400000000000044004444440000444400334400440000000000004400444444000044440000000000004400444444440033440000005544000000000000440044444444003344000000554444004433440044444400000000004400440000004400443344004444440000000000440044000000440000000000004444004444440044004444440044000000000000444400444444004400444444000000440055440044440044440000000055444400000044005544004444004444000000005544440000444400444400000000000000443300000000000044440044440000000000000044330000000000000044004444003300444444004444004433004400004400444400330044444400444400443300444400000000000033000000000000000044000000440000000000003300000000000000004400000044440044004444444400444444440000440044004444004400444444440044444444000044004400000000000000440000000000000000000000440000000000000044000000000000000000000044004455003344000000440044000000440033444400445500334400000044004400000044003344440044440000000044000000440000004400000000004444000000004400000044000000440000000000"
name: Chaotic Remake
points: [{y: 14, team: radiant, x: 0, direction: right, type: eagle, index: -1}, {y: 2, team: radiant, x: 10, direction: right, type: tank, index: 0}, {y: 6, team: radiant, x: 8, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 10, direction: right, type: tank, index: 2}, {y: 18, team: radiant, x: 8, direction: right, type: tank, index: 3}, {y: 22, team: radiant, x: 4, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 38, direction: right, type: eagle, index: -1}, {y: 0, team: dire, x: 32, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 26, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 28, direction: left, type: tank, index: 2}, {y: 20, team: dire, x: 26, direction: left, type: tank, index: 3}, {y: 26, team: dire, x: 30, direction: left, type: tank, index: 4}]
data: "000000000000000000000000000000440000000000000000000000000000000000000044000000000044003300005500440000440055000000000000004400330000550044000044005500000000000000000000440000000000000000000055004400000000000044000000000000000000005500440000003300000000330044003300440000000000000000330000000033004400330044000000000000005500000055000000000000000000005500000055550000005500000000000000000000550000005500004400000055000044005500440000004400000000440000005500004400550044000000440000005500003300000000000000000000000000550000550000330000000000000000000000000055000055440000004400330000000000003300445500005544000000440033000000000000330044550000550000440000000044004400550000000055000055000044000000004400440055000000005500000044000000000000000000000044000044000000004400000000000000000000004400004400005500000044000044005500004400000000000055550000004400004400550000440000000000005500000000000000000000000000000000000000000000000000000000000000000000000000000000003300000000550000330055003300005500440000330000000055000033005500330000550044000000440033000000440000000000440000000000000044003300000044000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"

View File

@@ -1,2 +1,3 @@
points: [{index: -1, direction: right, team: radiant, x: 12, type: eagle, y: 2}, {index: 0, direction: right, team: radiant, x: 6, type: tank, y: 6}, {index: 1, direction: right, team: radiant, x: 10, type: tank, y: 10}, {index: 2, direction: right, team: radiant, x: 14, type: tank, y: 10}, {index: 3, direction: right, team: radiant, x: 18, type: tank, y: 6}, {index: 4, direction: right, team: radiant, x: 20, type: tank, y: 2}, {index: -1, direction: right, team: dire, x: 22, type: eagle, y: 26}, {index: 0, direction: left, team: dire, x: 12, type: tank, y: 26}, {index: 1, direction: left, team: dire, x: 18, type: tank, y: 22}, {index: 2, direction: left, team: dire, x: 24, type: tank, y: 22}, {index: 3, direction: left, team: dire, x: 28, type: tank, y: 18}, {index: 4, direction: left, team: dire, x: 30, type: tank, y: 10}]
data: "000000000033333300000000000000000000000000000000003333330000000000000000000000000000004400330033004400000000003300000044000000440033003300440000000000330000004400000000003333330000000044440000000000000000000000333333000000004444000000000000000000000000000000003300000000004444000000000000000000000000330000000000444400000044000000004400000000004400000044000000004400000000440000000000440000004400000000000033000000000000004444000000000000000000003300000000000000444400000000000000000000000000330000440000000033000000000000000000000033000044000000003300000000000000000000000000444400004400000000000000000000000000000044440000440000000000000000000000334444004444000000000044000000000000000033444400444400000000004400000000004400000044000000000000330000440000000000440000004400000000000033000044000000000000440000000000330000440000000000000033000044000000000033000044000000000000003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044000000003333330000000033000000000000004400000000333333000000003300000000000000000000440033003300440000000000000000000000000044003300330044000000000000000000000000000000333333000000000000000000000000000000000033333300000000000000"
name: "Secret lab #X"
points: [{y: 26, team: radiant, x: 26, direction: right, type: eagle, index: -1}, {y: 2, team: radiant, x: 36, direction: right, type: tank, index: 0}, {y: 6, team: radiant, x: 22, direction: right, type: tank, index: 1}, {y: 16, team: radiant, x: 22, direction: right, type: tank, index: 2}, {y: 24, team: radiant, x: 32, direction: right, type: tank, index: 3}, {y: 26, team: radiant, x: 20, direction: right, type: tank, index: 4}, {y: 2, team: dire, x: 10, direction: right, type: eagle, index: -1}, {y: 2, team: dire, x: 16, direction: left, type: tank, index: 0}, {y: 4, team: dire, x: 4, direction: left, type: tank, index: 1}, {y: 12, team: dire, x: 14, direction: left, type: tank, index: 2}, {y: 22, team: dire, x: 14, direction: left, type: tank, index: 3}, {y: 26, team: dire, x: 0, direction: left, type: tank, index: 4}]
data: "000000000000004444444444444444444444444400000000000000444444444444444444444444440000004400000044000000000000000000440044000000440000004400000000000000000044004400000044000000440000444444000000000000440000004400000044000044444400000000000044000044000044005500004400000000000000004400004400004400550000440000000000000000440000000000000055000000000044333344000044000000000000005500000000004433334400004400000044000044440044440000000000000000440000004400004444004444000000000000000044440000440000440000330000000000444400004444000044000044000033000000000044440000440000004400000000003300000000004400000044000000440000000000330000000000440000004400004444000000000033000044000044000044440000444400000000003300004400004400004444000000000000000044440044440000440000004400000000000000004444004444000044000000440000443333440000000000550000000000000044000044333344000000000055000000000000004400000000000000004400005500440000440000440000000000000000440000550044000044000044000000000000444444000044000000440000004400000000000044444400004400000044000000440044000000000000000000440000004400000044004400000000000000000044000000440000004444444444444444444444444400000000000000444444444444444444444444440000000000000044"

View File

@@ -1,2 +1,3 @@
points: [{index: -1, direction: right, team: radiant, x: 19, type: eagle, y: 28}, {index: 0, direction: right, team: radiant, x: 0, type: tank, y: 28}, {index: 1, direction: right, team: radiant, x: 10, type: tank, y: 22}, {index: 2, direction: right, team: radiant, x: 19, type: tank, y: 18}, {index: 3, direction: right, team: radiant, x: 28, type: tank, y: 22}, {index: 4, direction: right, team: radiant, x: 38, type: tank, y: 28}, {index: -1, direction: right, team: dire, x: 19, type: eagle, y: 0}, {index: 0, direction: left, team: dire, x: 0, type: tank, y: 0}, {index: 1, direction: left, team: dire, x: 10, type: tank, y: 6}, {index: 2, direction: left, team: dire, x: 19, type: tank, y: 10}, {index: 3, direction: left, team: dire, x: 28, type: tank, y: 6}, {index: 4, direction: left, team: dire, x: 38, type: tank, y: 0}]
data: "000000000000440000000000004400000000000000000000000044000000000000440000000000004400000000000000000440000000000000000044440000000000000000044000000000000000004400000000005555555555555555555500000000000000000000555555555555555555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004400000000000000000000440000000000000000440000000000000000000044000000005555555544333333333553333333334455555555555555554433333333355333333333445555555500000000440000000000000000000044000000000000000044000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055555555555555555555000000000000000000005555555555555555555500000000004400000000000000000440000000000000000044440000000000000000044000000000000000004400000000000044000000000000440000000000000000000000004400000000000044000000000000"
name: Classic open terra
points: [{y: 14, team: radiant, x: 4, direction: right, type: eagle, index: -1}, {y: 2, team: radiant, x: 10, direction: right, type: tank, index: 0}, {y: 6, team: radiant, x: 6, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 8, direction: right, type: tank, index: 2}, {y: 22, team: radiant, x: 6, direction: right, type: tank, index: 3}, {y: 26, team: radiant, x: 10, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 34, direction: right, type: eagle, index: -1}, {y: 2, team: dire, x: 28, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 32, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 30, direction: left, type: tank, index: 2}, {y: 22, team: dire, x: 32, direction: left, type: tank, index: 3}, {y: 26, team: dire, x: 28, direction: left, type: tank, index: 4}]
data: "444444000000000000000000000000000044444444444400000000000000000000000000004444444444000000004400000000000044000000004444444400000000440000000000004400000000444444000000000000000000000000000000000000444400000000000000000000000000000000000044440000004400000000000000000000440000004444000000440000000000000000000044000000440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044440000000000000000000000004444000000004444000000000000000000000000444400000000004400440000000000000000440044000000000000440044000000000000000044004400000000004444000000000000000000000000444400000000444400000000000000000000000044440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044000000440000000000000000000044000000444400000044000000000000000000004400000044440000000000000000000000000000000000004444000000000000000000000000000000000000444444000000004400000000000044000000004444444400000000440000000000004400000000444444444400000000000000000000000000004444444444440000000000000000000000000000444444"

View File

@@ -1,2 +1,3 @@
points: [{index: -1, direction: right, team: radiant, x: 19, type: eagle, y: 28}, {index: 0, direction: right, team: radiant, x: 2, type: tank, y: 22}, {index: 1, direction: right, team: radiant, x: 9, type: tank, y: 20}, {index: 2, direction: right, team: radiant, x: 19, type: tank, y: 24}, {index: 3, direction: right, team: radiant, x: 29, type: tank, y: 20}, {index: 4, direction: right, team: radiant, x: 36, type: tank, y: 22}, {index: -1, direction: right, team: dire, x: 19, type: eagle, y: 0}, {index: 0, direction: left, team: dire, x: 2, type: tank, y: 6}, {index: 1, direction: left, team: dire, x: 9, type: tank, y: 8}, {index: 2, direction: left, team: dire, x: 19, type: tank, y: 4}, {index: 3, direction: left, team: dire, x: 29, type: tank, y: 8}, {index: 4, direction: left, team: dire, x: 36, type: tank, y: 6}]
data: "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005555555544444455555555000000000000000000555555554444445555555500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005500000000000000550000000000000000000000550000000000000055000000000000000000000055000000000000005500000000000000000000005500000000000000550000000000000000000000000044000000440000000000000000000000000000004400000044000000000000000333333333333333445500004433333333333333333333333333333344550000443333333333333333333333333333334400440044333333333333333333333333333333440044004433333333333333333333333333333344000055443333333333333333333333333333334400005544333333333333333000000000000000440000004400000000000000000000000000000044000000440000000000000000000000000055000000000000005500000000000000000000005500000000000000550000000000000000000000550000000000000055000000000000000000000055000000000000005500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005555555544444455555555000000000000000000555555554444445555555500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
name: the Battlefield
points: [{y: 28, team: radiant, x: 19, direction: right, type: eagle, index: -1}, {y: 28, team: radiant, x: 0, direction: right, type: tank, index: 0}, {y: 22, team: radiant, x: 10, direction: right, type: tank, index: 1}, {y: 18, team: radiant, x: 19, direction: right, type: tank, index: 2}, {y: 22, team: radiant, x: 28, direction: right, type: tank, index: 3}, {y: 28, team: radiant, x: 38, direction: right, type: tank, index: 4}, {y: 0, team: dire, x: 19, direction: right, type: eagle, index: -1}, {y: 0, team: dire, x: 0, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 10, direction: left, type: tank, index: 1}, {y: 10, team: dire, x: 19, direction: left, type: tank, index: 2}, {y: 6, team: dire, x: 28, direction: left, type: tank, index: 3}, {y: 0, team: dire, x: 38, direction: left, type: tank, index: 4}]
data: "000000000000440000000000004400000000000000000000000044000000000000440000000000004400000000000000000440000000000000000044440000000000000000044000000000000000004400000000005555555555555555555500000000000000000000555555555555555555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004400000000000000000000440000000000000000440000000000000000000044000000005555555544333333333553333333334455555555555555554433333333355333333333445555555500000000440000000000000000000044000000000000000044000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055555555555555555555000000000000000000005555555555555555555500000000004400000000000000000440000000000000000044440000000000000000044000000000000000004400000000000044000000000000440000000000000000000000004400000000000044000000000000"

View File

@@ -1,2 +1,3 @@
data: "444455555555555555555555555555555555444444445555555555555555555555555555555544440044004444444400444444440044444444004400004400444444440044444444004444444400440000220000000000000000000000000000000022000022000000000000000000000000000000002200004400444444442244444444224444444400440000440044444444224444444422444444440044000011000033550000000000000000553300001100001100003355000000000000000055330000110000110000444444004444444400444444440011000011000044444400444444440044444444001100004400000000000055333355000000000000440000440000000000005533335500000000000044000000442244444400443333440044444422440000000044224444440044333344004444442244000000440000000000005533335500000000000044000044000000000000553333550000000000004400001100444444440044444444004444444400110000110044444444004444444400444444440011000011000033550000000000000000553300001100001100003355000000000000000055330000110000440044444444224444444422444444440044000044004444444422444444442244444444004400002200000000000000000000000000000000220000220000000000000000000000000000000022000044004444444400444444440044444440004400004400444444440044444444004444444000440044445555555555555555555555555555555544444444555555555555555555555555555555554444"
points: [{team: radiant, direction: right, x: 2, type: eagle, y: 14, index: -1}, {team: radiant, direction: right, x: 14, type: tank, y: 2, index: 0}, {team: radiant, direction: right, x: 6, type: tank, y: 8, index: 1}, {team: radiant, direction: right, x: 14, type: tank, y: 14, index: 2}, {team: radiant, direction: right, x: 6, type: tank, y: 20, index: 3}, {team: radiant, direction: right, x: 14, type: tank, y: 26, index: 4}, {team: dire, direction: right, x: 36, type: eagle, y: 14, index: -1}, {team: dire, direction: left, x: 24, type: tank, y: 2, index: 0}, {team: dire, direction: left, x: 32, type: tank, y: 8, index: 1}, {team: dire, direction: left, x: 24, type: tank, y: 14, index: 2}, {team: dire, direction: left, x: 32, type: tank, y: 20, index: 3}, {team: dire, direction: left, x: 24, type: tank, y: 26, index: 4}]
name: the Battlefield
points: [{y: 28, team: radiant, x: 19, direction: right, type: eagle, index: -1}, {y: 22, team: radiant, x: 2, direction: right, type: tank, index: 0}, {y: 24, team: radiant, x: 7, direction: right, type: tank, index: 1}, {y: 24, team: radiant, x: 19, direction: right, type: tank, index: 2}, {y: 24, team: radiant, x: 31, direction: right, type: tank, index: 3}, {y: 22, team: radiant, x: 36, direction: right, type: tank, index: 4}, {y: 0, team: dire, x: 19, direction: right, type: eagle, index: -1}, {y: 6, team: dire, x: 2, direction: left, type: tank, index: 0}, {y: 4, team: dire, x: 7, direction: left, type: tank, index: 1}, {y: 4, team: dire, x: 19, direction: left, type: tank, index: 2}, {y: 4, team: dire, x: 31, direction: left, type: tank, index: 3}, {y: 6, team: dire, x: 36, direction: left, type: tank, index: 4}]
data: "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005555555544444455555555000000000000000000555555554444445555555500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044005500000044000000550044000000000000004400550000004400000055004400000000044000000055000000000000005500000004400004400000005500000000000000550000000440000000000000000044000000440000000000000000000000000000004400000044000000000000000333333333333333440000004433333333333333333333333333333344000000443333333333333333333333333333334455555544333333333333333333333333333333445555554433333333333333333333333333333344000000443333333333333333333333333333334400000044333333333333333000000000000000440000004400000000000000000000000000000044000000440000000000000000044000000055000000000000005500000004400004400000005500000000000000550000000440000000004400550000004400000055004400000000000000440055000000440000005500440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005555555544444455555555000000000000000000555555554444445555555500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"

View File

@@ -0,0 +1,3 @@
name: The DownTown
points: [{y: 14, team: radiant, x: 2, direction: right, type: eagle, index: -1}, {y: 2, team: radiant, x: 14, direction: right, type: tank, index: 0}, {y: 8, team: radiant, x: 6, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 14, direction: right, type: tank, index: 2}, {y: 20, team: radiant, x: 6, direction: right, type: tank, index: 3}, {y: 26, team: radiant, x: 14, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 36, direction: right, type: eagle, index: -1}, {y: 2, team: dire, x: 24, direction: left, type: tank, index: 0}, {y: 8, team: dire, x: 32, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 24, direction: left, type: tank, index: 2}, {y: 20, team: dire, x: 32, direction: left, type: tank, index: 3}, {y: 26, team: dire, x: 24, direction: left, type: tank, index: 4}]
data: "444455555555555555555555555555555555444444445555555555555555555555555555555544440044004444444400444444440044444444004400004400444444440044444444004444444400440000220000000000000000000000000000000022000022000000000000000000000000000000002200004400444444442244444444224444444400440000440044444444224444444422444444440044000011000033550000000000000000553300001100001100003355000000000000000055330000110000110044444444004444444400444444440011000011004444444400444444440044444444001100004400000000000055333355000000000000440000440000000000005533335500000000000044000000442244444400443333440044444422440000000044224444440044333344004444442244000000440000000000005533335500000000000044000044000000000000553333550000000000004400001100444444440044444444004444444400110000110044444444004444444400444444440011000011000033550000000000000000553300001100001100003355000000000000000055330000110000440044444444224444444422444444440044000044004444444422444444442244444444004400002200000000000000000000000000000000220000220000000000000000000000000000000022000044004444444400444444440044444444004400004400444444440044444444004444444400440044445555555555555555555555555555555544444444555555555555555555555555555555554444"

View File

@@ -0,0 +1,3 @@
name: The Batterys
points: [{y: 14, team: radiant, x: 18, direction: right, type: eagle, index: -1}, {y: 4, team: radiant, x: 4, direction: right, type: tank, index: 0}, {y: 10, team: radiant, x: 4, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 2, direction: right, type: tank, index: 2}, {y: 18, team: radiant, x: 4, direction: right, type: tank, index: 3}, {y: 24, team: radiant, x: 4, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 20, direction: right, type: eagle, index: -1}, {y: 4, team: dire, x: 34, direction: left, type: tank, index: 0}, {y: 10, team: dire, x: 34, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 36, direction: left, type: tank, index: 2}, {y: 18, team: dire, x: 34, direction: left, type: tank, index: 3}, {y: 24, team: dire, x: 34, direction: left, type: tank, index: 4}]
data: "444444444444444444444444444444444444444444444444444444444444444444444444444444444400000000000000000000000000000000000044440000000000000000000000000000000000004444000044000000000000000000000000440000444400004400000000000000000000000044000044440000003300000000000000000000330000004444000000330000000000000000000033000000444400000033000000000000000000003300000044440000003300000000000000000000330000004444000044000000004400004400000000440000444400004400000000440000440000000044000044440000000000000000444400000000000000004444000000000000000044440000000000000000444400440000000000000000000000000000440044440044000000000000000000000000000044004444000000000000000044440000000000000000444400000000000000004444000000000000000044440000440000000044000044000000004400004444000044000000004400004400000000440000444400000033000000000000000000003300000044440000003300000000000000000000330000004444000000330000000000000000000033000000444400000033000000000000000000003300000044440000440000000000000000000000004400004444000044000000000000000000000000440000444400000000000000000000000000000000000044440000000000000000000000000000000000004444444444444444444444444444444444444444444444444444444444444444444444444444444444"

View File

@@ -0,0 +1,3 @@
name: Termites
points: [{y: 14, team: radiant, x: 4, direction: right, type: eagle, index: -1}, {y: 2, team: radiant, x: 2, direction: right, type: tank, index: 0}, {y: 6, team: radiant, x: 16, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 12, direction: right, type: tank, index: 2}, {y: 22, team: radiant, x: 16, direction: right, type: tank, index: 3}, {y: 26, team: radiant, x: 2, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 34, direction: right, type: eagle, index: -1}, {y: 2, team: dire, x: 36, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 22, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 26, direction: left, type: tank, index: 2}, {y: 22, team: dire, x: 22, direction: left, type: tank, index: 3}, {y: 26, team: dire, x: 36, direction: left, type: tank, index: 4}]
data: "444444444444444444444444444444444444444444444444444444444444444444444444444444444400444400000000000000000000000044440044440044440000000000000000000000004444004444000000004444440044440044444400000000444400000000444444004444004444440000000044444444440044444400444400444444004444444444444444004444440044440044444400444444444444444400000044444444444400000044444444444444440000004444444444440000004444444444000000004400440000000044004400000000444400000000440044000000004400440000000044440044444444000000444400000044444444004444004444444400000044440000004444444400444400004444440044444444444400444444000044440000444444004444444444440044444400004444004444444400000044440000004444444400444400444444440000004444000000444444440044440000000044004400000000440044000000004444000000004400440000000044004400000000444444444400000044444444444400000044444444444444440000004444444444440000004444444444444444004444440044440044444400444444444444444400444444004444004444440044444444440000000044444400444400444444000000004444000000004444440044440044444400000000444400444400000000000000000000000044440044440044440000000000000000000000004444004444444444444444444444444444444444444444444444444444444444444444444444444444444444"

View File

@@ -0,0 +1,3 @@
name: To hit or not to hit
points: [{y: 14, team: radiant, x: 0, direction: right, type: eagle, index: -1}, {y: 4, team: radiant, x: 12, direction: right, type: tank, index: 0}, {y: 6, team: radiant, x: 0, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 6, direction: right, type: tank, index: 2}, {y: 22, team: radiant, x: 0, direction: right, type: tank, index: 3}, {y: 24, team: radiant, x: 12, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 36, direction: right, type: eagle, index: -1}, {y: 4, team: dire, x: 24, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 36, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 30, direction: left, type: tank, index: 2}, {y: 22, team: dire, x: 36, direction: left, type: tank, index: 3}, {y: 24, team: dire, x: 24, direction: left, type: tank, index: 4}]
data: "554400000000000000550000000000000044333355440000000000000055000000000000004433335544004444004444440044444400444400443333554400444400444444004444440044440044333344440044003300440033004400330044004444444444004400330044003300440033004400444444000000440000000000000000000000440000004400000044000000000000000000000044000000444400440000000000000000000000000044004444440044000000000000000000000000004400444444000000000000000000000000000000000044334400000000000000000000000000000000004433440000000000000000000000000000000000444444000000000000000000000000000000000044440000440000004400000000004400000044000044000044000000440000000000440000004400004444000000000000000000000000000000000044444400000000000000000000000000000000004444440000000000000000000000000000000000443344000000000000000000000000000000000044334400440000000000000000000000000044004444440044000000000000000000000000004400444400000044000000000000000000000044000000440000004400000000000000000000004400000044444400440033004400330044003300440044444444440044003300440033004400330044004444445544004444004444440044444400444400443333554400444400444444004444440044440044333355440000000000000055000000000000004433335544000000000000005500000000000000443333"

View File

@@ -0,0 +1,3 @@
name: The swampy terra
points: [{y: 28, team: radiant, x: 0, direction: right, type: eagle, index: -1}, {y: 4, team: radiant, x: 4, direction: right, type: tank, index: 0}, {y: 8, team: radiant, x: 16, direction: right, type: tank, index: 1}, {y: 16, team: radiant, x: 10, direction: right, type: tank, index: 2}, {y: 22, team: radiant, x: 6, direction: right, type: tank, index: 3}, {y: 26, team: radiant, x: 16, direction: right, type: tank, index: 4}, {y: 0, team: dire, x: 38, direction: right, type: eagle, index: -1}, {y: 2, team: dire, x: 22, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 32, direction: left, type: tank, index: 1}, {y: 12, team: dire, x: 28, direction: left, type: tank, index: 2}, {y: 20, team: dire, x: 22, direction: left, type: tank, index: 3}, {y: 24, team: dire, x: 34, direction: left, type: tank, index: 4}]
data: "000000000000000000000000000000004400550000000000000000000000000000000000440055000000333300330033333300003300330000000055000033330033003333330000330033000000005500000033003300330000003333003333004400000000003300330033000000333300333300440000003300000000003300330000000000000000004400330000000000330033000000000000000000440033003333330000003300333300333300330000003300333333000000330033330033330033000000330000000000333333003300000033003333000033000000000033333300330000003300333300000000330033000000000000003300000000000000000033003300000000000000330000000000000000333300333300333333330033330033330000000033330033330033333333003333003333000000000000000033000000000000003300330000000000000000003300000000000000330033000000003333003300000033003333330000000000330000333300330000003300333333000000000033000000330033330033330033000000333333003300000033003333003333003300000033333300330044000000000000000000330033000000000033004400000000000000000033003300000000003300000044003333003333000000330033003300000000004400333300333300000033003300330000005500000000330033000033333300330033330000550000000033003300003333330033003333000000550044000000000000000000000000000000000055004400000000000000000000000000000000"

View File

@@ -0,0 +1,3 @@
name: "Minotaur's Labirinth"
points: [{y: 28, team: radiant, x: 0, direction: right, type: eagle, index: -1}, {y: 2, team: radiant, x: 12, direction: right, type: tank, index: 0}, {y: 8, team: radiant, x: 0, direction: right, type: tank, index: 1}, {y: 8, team: radiant, x: 18, direction: right, type: tank, index: 2}, {y: 16, team: radiant, x: 0, direction: right, type: tank, index: 3}, {y: 28, team: radiant, x: 12, direction: right, type: tank, index: 4}, {y: 0, team: dire, x: 38, direction: right, type: eagle, index: -1}, {y: 0, team: dire, x: 26, direction: left, type: tank, index: 0}, {y: 12, team: dire, x: 38, direction: left, type: tank, index: 1}, {y: 20, team: dire, x: 20, direction: left, type: tank, index: 2}, {y: 20, team: dire, x: 38, direction: left, type: tank, index: 3}, {y: 26, team: dire, x: 26, direction: left, type: tank, index: 4}]
data: "445544554444444444444444440044444400000044554455444444444444444444004444440000005544554455440000000000000000440000000000554455445544000000000000000044000000000055445544554444004444444444000000440000005544554455444400444444444400000044000000444444444444440044444400000044000044004444444444444444004444440000004400004400440000000000004400000044000000000000000044000000000000440000004400000000000000004444004444440000000000440000440044004444444400444444000000000044000044004400444444440000000000444444000000004444440000000044000000000044444400000000444444000000004400444444000000000000000000004444440044440044444400000000000000000000444444004400000000444444000000004444440000000000440000000044444400000000444444000000000044444444004400440000440000000000444444004444444400440044000044000000000044444400444400000000000000004400000044000000000000440000000000000000440000004400000000000044004400004400000044444400444444555555444400440000440000004444440044444455555544000000440000004444444444004444554444444400000044000000444444444400444455444444440000000000440000000000000000445544555544000000000044000000000000000044554455554400000044444400444444444444444444555544440000004444440044444444444444444455554444"

View File

@@ -0,0 +1,3 @@
name: Battle City
points: [{y: 14, team: radiant, x: 2, direction: right, type: eagle, index: -1}, {y: 0, team: radiant, x: 16, direction: right, type: tank, index: 0}, {y: 6, team: radiant, x: 6, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 8, direction: right, type: tank, index: 2}, {y: 22, team: radiant, x: 6, direction: right, type: tank, index: 3}, {y: 28, team: radiant, x: 16, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 36, direction: right, type: eagle, index: -1}, {y: 0, team: dire, x: 22, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 32, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 30, direction: left, type: tank, index: 2}, {y: 22, team: dire, x: 32, direction: left, type: tank, index: 3}, {y: 28, team: dire, x: 22, direction: left, type: tank, index: 4}]
data: "555555555555000000444400000055555555555555555555555500000044440000005555555555555500000000000000554444550000000000000055550000000000000055444455000000000000005555000055555555005555555500555555550000555500005555555500555555550055555555000055440000005544550000000000005544550000004444000000554455000000000000554455000000440000005555555500555555550055555555000000000000555555550055555555005555555500000000000000000000005544445500000000000000000000000000000000554444550000000000000000004400005555550055555555005555550000440000440000555555005555555500555555000044000000440000445500000000000055440000440000000044000044550000000000005544000044000000440000555555005555555500555555000044000044000055555500555555550055555500004400000000000000000055444455000000000000000000000000000000005544445500000000000000000000005555555500555555550055555555000000000000555555550055555555005555555500000044000000554455000000000000554455000000444400000055445500000000000055445500000044550000555555550055555555005555555500005555000055555555005555555500555555550000555500000000000000554444550000000000000055550000000000000055444455000000000000005555555555555500000044440000005555555555555555555555550000004444000000555555555555"

View File

@@ -0,0 +1,3 @@
name: Try to hide
points: [{y: 14, team: radiant, x: 2, direction: right, type: eagle, index: -1}, {y: 0, team: radiant, x: 0, direction: right, type: tank, index: 0}, {y: 6, team: radiant, x: 8, direction: right, type: tank, index: 1}, {y: 14, team: radiant, x: 6, direction: right, type: tank, index: 2}, {y: 22, team: radiant, x: 8, direction: right, type: tank, index: 3}, {y: 28, team: radiant, x: 0, direction: right, type: tank, index: 4}, {y: 14, team: dire, x: 36, direction: right, type: eagle, index: -1}, {y: 0, team: dire, x: 38, direction: left, type: tank, index: 0}, {y: 6, team: dire, x: 30, direction: left, type: tank, index: 1}, {y: 14, team: dire, x: 32, direction: left, type: tank, index: 2}, {y: 22, team: dire, x: 30, direction: left, type: tank, index: 3}, {y: 28, team: dire, x: 38, direction: left, type: tank, index: 4}]
data: "004444440044444400444400444444004444440000444444004444440044440044444400444444000000000000000000000000000000000000000000000000000000000000000000000000000000000044440044444400444444444444004444440044444444004444440044444444444400444444004444004400440044004400444400440044004400440000440044004400440044440044004400440044000000000000000000000000000000000000000000000000000000000000000000000000000000000000444444444400444444444444004444444444000044444444440044444444444400444444444400004444444400000044000044000000444444440000444444440000004400004400000044444444000000440000004400000000000044000000440000000044000000440000000000004400000044000000444444440000004400004400000044444444000044444444000000440000440000004444444400004444444444004444444444440044444444440000444444444400444444444444004444444444000000000000000000000000000000000000000000000000000000000000000000000000000000000000440044004400440044440044004400440044000044004400440044004444004400440044004400444400444444004444444444440044444400444444440044444400444444444444004444440044440000000000000000000000000000000000000000000000000000000000000000000000000000000000444444004444440044440044444444004444000044444400444444004444004444444400444400"

View File

@@ -2,9 +2,9 @@ package ru.m.tankz.editor.frame;
import haxework.view.ButtonView;
import haxework.view.DataView;
import haxework.view.InputView;
import haxework.view.LabelView;
import haxework.view.VGroupView;
import haxework.provider.Provider;
import ru.m.tankz.bundle.IConfigBundle;
import ru.m.tankz.config.Config;
import ru.m.tankz.editor.FileUtil;
@@ -25,6 +25,7 @@ import ru.m.tankz.util.LevelUtil;
@:view var openButton:ButtonView;
@:view var saveButton:ButtonView;
@:view var fileNameLabel:LabelView;
@:view var levelName:InputView;
@:view var mapView:MapEditView;
@:view var spawnPointList:DataView<SpawnPoint, SpawnPointView>;
@:view var brickList:DataView<BrickConfig, BrickView>;
@@ -86,13 +87,17 @@ import ru.m.tankz.util.LevelUtil;
L.d(TAG, 'OPEN');
FileUtil.browse().then(function(content:FileContent) {
fileNameLabel.text = content.name;
mapView.data = LevelUtil.loads(config, content.content);
var data = LevelUtil.loads(config, content.content);
mapView.data = data;
levelName.text = data.name;
});
case 'saveButton':
L.d(TAG, 'SAVE');
var data = mapView.data;
data.name = levelName.text;
FileUtil.save({
name: fileNameLabel.text,
content: LevelUtil.dumps(config, mapView.data),
content: LevelUtil.dumps(config, data),
});
case _:
}

View File

@@ -22,6 +22,13 @@ views:
+onPress: $code:setGameType('death')
- id: fileNameLabel
$type: haxework.view.LabelView
skinId: text
text: level000.txt
- id: levelName
$type: haxework.view.InputView
skinId: text.box
geometry.size.width: 300
text: ""
# map
- $type: haxework.view.HGroupView
views: