Exemplo n.º 1
0
        public Player(Character player, bool initialize = true) : base(PlayerData.End)
        {
            data = player;

            Guid = new PlayerGuid
            {
                CreationBits = player.Guid,
                RealmId = (ushort)player.RealmId
            };

            PlayerData = new PlayerData();

            Position = new Vector3
            {
                X = player.X,
                Y = player.Y,
                Z = player.Z
            };

            Facing = player.O;
            Map = (short)player.Map;

            if (initialize)
                InitializeDescriptors();
        }
Exemplo n.º 2
0
 public override void Read()
 {
     Guid = Packet.ReadGuid<PlayerGuid>();
 }