Example #1
0
        /// <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);
        }
Example #2
0
 public int GetHashCode(RawENCMapRow obj) => (int)obj.Token;
Example #3
0
 public bool Equals(RawENCMapRow x, RawENCMapRow y) => x.Token == y.Token;
Example #4
0
 public int GetHashCode(RawENCMapRow obj)
 {
     return((int)obj.Token);
 }
Example #5
0
 public bool Equals(RawENCMapRow x, RawENCMapRow y)
 {
     return(x.Token == y.Token);
 }
Example #6
0
 static uint ReadENCMapColumnMethod(ref RawENCMapRow row, int index) => row[index];