Exemplo n.º 1
0
 internal Field(BinaryDataReader reader)
 {
     Hash    = reader.ReadUInt32();
     Bitmask = reader.ReadUInt32();
     Offset  = reader.ReadUInt16();
     Shift   = reader.ReadSByte();
     Type    = (FieldType)reader.ReadByte();
     Name    = BCSVHashHelper.GetHashName(Hash);
 }
Exemplo n.º 2
0
 public Field(uint hash, FieldType type, ushort offset, uint mask, sbyte shift = 0)
 {
     Name    = BCSVHashHelper.GetHashName(hash);
     Hash    = hash;
     Type    = type;
     Offset  = offset;
     Bitmask = mask;
     Shift   = shift;
 }