Exemplo n.º 1
0
    public void UpdatePlayer(S.PlayerUpdate p)
    {
        MapObject    ob;
        PlayerObject player;

        if (ObjectList.TryGetValue(p.ObjectID, out ob))
        {
            player        = (PlayerObject)ob;
            player.Armour = p.Armour;
            player.Weapon = p.Weapon;
        }
    }
Exemplo n.º 2
0
        private void PlayerUpdate(S.PlayerUpdate p)
        {
            for (int i = MapControl.Objects.Count - 1; i >= 0; i--)
            {
                if (MapControl.Objects[i].ObjectID != p.ObjectID)
                {
                    continue;
                }

                PlayerObject player = MapControl.Objects[i] as PlayerObject;
                if (player != null)
                {
                    player.Update(p);
                }
                return;
            }
        }
Exemplo n.º 3
0
 public static void UpdatePlayer(S.PlayerUpdate p)
 {
     gameManager.UpdatePlayer(p);
 }