/// <summary> /// Reads a raw <c>ENCMap</c> row or returns false if the row doesn't exist /// </summary> /// <param name="rid">Row ID</param> /// <param name="row">Row data</param> /// <returns></returns> public bool TryReadENCMapRow(uint rid, out RawENCMapRow row) { var table = ENCMapTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawENCMapRow(reader.Unsafe_ReadUInt32()); return(true); }
public int GetHashCode(RawENCMapRow obj) => (int)obj.Token;
public bool Equals(RawENCMapRow x, RawENCMapRow y) => x.Token == y.Token;
public int GetHashCode(RawENCMapRow obj) { return((int)obj.Token); }
public bool Equals(RawENCMapRow x, RawENCMapRow y) { return(x.Token == y.Token); }
static uint ReadENCMapColumnMethod(ref RawENCMapRow row, int index) => row[index];