public static void Write(TradeAge.Server.Entity.Character.SimplePlayer obj, PacketWriter pw) { pw.WriteUTF8Null(obj.Name); Vector2WriteProxy.Write(obj.Postion, pw); Vector2WriteProxy.Write(obj.Direction, pw); pw.Write(obj.Id); pw.Write(obj.AccountId); pw.Write((byte)obj.Sex); }
public static void Write(TradeAge.Server.Entity.Character.SceneSprite obj, PacketWriter pw) { pw.Write(obj.Id); pw.Write((byte)obj.SpriteType); pw.WriteUTF8Null(obj.Name); Vector2WriteProxy.Write(obj.Postion, pw); Vector2WriteProxy.Write(obj.Direction, pw); }