예제 #1
0
        public static TagBase ReadNamedTag(NBTBinaryReader br)
        {
            byte type = br.ReadByte();

            if (type == 0)
            {
                return(new TagEnd());
            }
            else
            {
                string  n   = br.ReadString();
                TagBase nbt = CreateNewTag((TagType)type, n);
                nbt.ReadBinary(br);
                return(nbt);
            }
        }
예제 #2
0
 internal override void ReadBinary(NBTBinaryReader br)
 {
     _value = br.ReadString();
 }