feat(game): add TableUtil
This commit is contained in:
@@ -81,6 +81,10 @@ class Render extends SpriteView implements IRender {
|
||||
onStart(event.start.state);
|
||||
} else if (event.hasChange()) {
|
||||
var part:PartView = parts[event.change.partId];
|
||||
// TODO:
|
||||
if (part == null) {
|
||||
return;
|
||||
}
|
||||
part.playerId = event.change.playerId;
|
||||
part.position = event.change.position;
|
||||
switch event.change.location {
|
||||
|
||||
@@ -5,8 +5,8 @@ import hw.view.frame.FrameSwitcher;
|
||||
import hw.view.frame.FrameView;
|
||||
import hw.view.popup.ConfirmView;
|
||||
import promhx.Promise;
|
||||
import ru.m.puzzlez.image.Game;
|
||||
import ru.m.puzzlez.image.IGame;
|
||||
import ru.m.puzzlez.game.Game;
|
||||
import ru.m.puzzlez.game.IGame;
|
||||
import ru.m.puzzlez.proto.event.GameAction;
|
||||
import ru.m.puzzlez.proto.event.GameEvent;
|
||||
import ru.m.puzzlez.proto.event.gameaction.Action;
|
||||
|
||||
@@ -5,7 +5,7 @@ import hw.view.data.DataView;
|
||||
import hw.view.form.ToggleButtonView;
|
||||
import hw.view.frame.FrameSwitcher;
|
||||
import hw.view.frame.FrameView;
|
||||
import ru.m.puzzlez.image.GameUtil;
|
||||
import ru.m.puzzlez.game.GameUtil;
|
||||
import ru.m.puzzlez.proto.game.ImageId;
|
||||
import ru.m.puzzlez.view.common.PresetView;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package ru.m.puzzlez.view.common;
|
||||
import hw.view.theme.StyleId;
|
||||
import hw.view.form.LabelView;
|
||||
import hw.view.group.GroupView;
|
||||
import ru.m.puzzlez.image.GameUtil;
|
||||
import ru.m.puzzlez.game.GameUtil;
|
||||
import ru.m.puzzlez.proto.game.GameState;
|
||||
|
||||
@:template class GameStateView extends GroupView {
|
||||
|
||||
Reference in New Issue
Block a user