Beispiel #1
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;
 }
Beispiel #2
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);
 }
Beispiel #3
0
 public Field(string name, FieldType type, ushort offset, uint mask, sbyte shift = 0)
 {
     Name    = name;
     Hash    = BCSVHashHelper.CalculateV2(name);
     Type    = type;
     Offset  = offset;
     Bitmask = mask;
     Shift   = shift;
 }