Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public void AddName(string name)
 {
     Value = Value.AddName(name);
 }
Esempio n. 3
0
 public FMID2Field(UnityBinaryReader r, int dataSize)
 {
     Value1 = new FormId <TRecord>(r.ReadLEUInt32());
     Value2 = new FormId <TRecord>(r.ReadLEUInt32());
 }
Esempio n. 4
0
 public FMIDField(UnityBinaryReader r, int dataSize)
 {
     Value = dataSize == 4 ?
             new FormId <TRecord>(r.ReadLEUInt32()) :
             new FormId <TRecord>(r.ReadASCIIString(dataSize, ASCIIFormat.ZeroPadded));
 }