예제 #1
0
        public void Deserialize(BinaryReader reader)
        {
            Id = Extensions.ReadGuid(reader);
            Name = reader.ReadString();
            Class = (CharacterClass)reader.ReadByte();

            var position = new Position();
            position.Deserialize(reader);
        }
예제 #2
0
        protected override void Deserialize(BinaryReader reader)
        {
            CharacterId = Extensions.ReadGuid(reader);

            var position = new Position();
            position.Deserialize(reader);
            Position = position;
        }