void OnPlayerMove(GameEngine.Event evt) { GameProtos.common.Move move = (evt as PlayerActionEvent).moveData; int myID = proxyMgr.GetProxy <AccountProxy>().ID; if (myID != move.Id && players.ContainsKey(move.Id)) { players[move.Id].SyncPosition(new Vector3(move.X, move.Y, move.Z)); } }
public PlayerActionEvent(string name, GameProtos.common.Move data) : base(name) { moveData = data; }