[server] build fix
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package ru.m.tankz.control;
|
||||
|
||||
import ru.m.tankz.game.Player;
|
||||
import ru.m.tankz.Type;
|
||||
|
||||
|
||||
class NoneControlFactory implements IControlFactory {
|
||||
|
||||
public function new() {}
|
||||
|
||||
public function build(player:Player):Control {
|
||||
public function build(id:PlayerId, type:ControlType):Control {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ru.m.tankz.server.game;
|
||||
|
||||
import ru.m.tankz.game.GameState;
|
||||
import ru.m.tankz.network.NetworkGame;
|
||||
import ru.m.tankz.preset.ClassicGame;
|
||||
import ru.m.tankz.game.GameSave;
|
||||
import ru.m.tankz.proto.pack.StartGameResponse;
|
||||
import ru.m.tankz.proto.pack.LeaveGameResponse;
|
||||
import ru.m.tankz.proto.pack.JoinGameResponse;
|
||||
@@ -116,7 +116,7 @@ class GameManager {
|
||||
public function start() {
|
||||
gameInfo.setState(GameStateProto.STARTED);
|
||||
game = new NetworkGame(ClassicGame.TYPE);
|
||||
game.start(new GameSave({type: ClassicGame.TYPE, presetId: ClassicGame.PLAYER1, level: 0}));
|
||||
game.start(new GameState(ClassicGame.TYPE,ClassicGame.PLAYER1));
|
||||
timer = new NekoTimer(30);
|
||||
timer.run = update;
|
||||
broadcast(new Response().setStartGame(new StartGameResponse().setGame(gameInfo)));
|
||||
|
||||
Reference in New Issue
Block a user