internal Field(BinaryDataReader reader) { Hash = reader.ReadUInt32(); Bitmask = reader.ReadUInt32(); Offset = reader.ReadUInt16(); Shift = reader.ReadSByte(); Type = (FieldType)reader.ReadByte(); Name = BCSVHashHelper.GetHashName(Hash); }
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; }