Ejemplo n.º 1
0
    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));
        }
    }
Ejemplo n.º 2
0
 public PlayerActionEvent(string name, GameProtos.common.Move data) : base(name)
 {
     moveData = data;
 }