示例#1
0
        public override void Load(NbtReader reader, INbtContainerNode parent)
        {
            base.Load(reader, parent);
            int len = reader.ReadInt32();

            Value = new int[len];
            for (int i = 0; i < len; i++)
            {
                Value[i] = reader.ReadInt32();
            }
        }
示例#2
0
 public override void Load(NbtReader reader, INbtContainerNode parent)
 {
     base.Load(reader, parent);
     dataLength   = reader.ReadInt32();
     dataLocation = reader.BaseStream.Position;
     this.reader  = reader;
 }
示例#3
0
文件: NbtList.cs 项目: Ebunix/CS-NBT
        public override void Load(NbtReader reader, INbtContainerNode parent)
        {
            base.Load(reader, parent);
            var listType = reader.ReadType();
            int length   = reader.ReadInt32();

            for (int i = 0; i < length; i++)
            {
                INbtNode node = NodeFactory.CreateNode(listType);
                node.Load(reader, this);
                Children.Add(node);
            }
        }
示例#4
0
文件: NbtInt.cs 项目: Ebunix/CS-NBT
 public override void Load(NbtReader reader, INbtContainerNode parent)
 {
     base.Load(reader, parent);
     Value = reader.ReadInt32();
 }