public FormId <Record> Item; // The ID of the item public CNTOField(UnityBinaryReader r, int dataSize, GameFormatId format) { if (format == GameFormatId.TES3) { ItemCount = r.ReadLEUInt32(); Item = new FormId <Record>(r.ReadASCIIString(32, ASCIIFormat.ZeroPadded)); return; } Item = new FormId <Record>(r.ReadLEUInt32()); ItemCount = r.ReadLEUInt32(); }
public void AddName(string name) { Value = Value.AddName(name); }
public FMID2Field(UnityBinaryReader r, int dataSize) { Value1 = new FormId <TRecord>(r.ReadLEUInt32()); Value2 = new FormId <TRecord>(r.ReadLEUInt32()); }
public FMIDField(UnityBinaryReader r, int dataSize) { Value = dataSize == 4 ? new FormId <TRecord>(r.ReadLEUInt32()) : new FormId <TRecord>(r.ReadASCIIString(dataSize, ASCIIFormat.ZeroPadded)); }