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(); } }
public override void Load(NbtReader reader, INbtContainerNode parent) { base.Load(reader, parent); dataLength = reader.ReadInt32(); dataLocation = reader.BaseStream.Position; this.reader = reader; }
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); } }
public override void Load(NbtReader reader, INbtContainerNode parent) { base.Load(reader, parent); Value = reader.ReadInt32(); }