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