[common] add PlayerControl presets

This commit is contained in:
2019-05-30 15:24:26 +03:00
parent c7946ef1da
commit abf944418e
26 changed files with 264 additions and 92 deletions

View File

@@ -117,7 +117,7 @@ enum Brush {
var playerId = new PlayerId(point.team, point.index < 0 ? 0 : point.index);
var player = config.getPlayer(playerId);
var tankSpawn = player.tanks[0];
var tank = builder.buildTank(point, playerId, tankSpawn.type, true);
var tank = builder.buildTank(point, playerId, tankSpawn.type, 0, true);
pointEntities[pointKey(point)] = tank;
gameEventSignal.emit(EventUtil.buildTankSpawn(tank));
}