/// <summary> /// Retrieves a reference to a codebook stored in the runtime asset. /// </summary> /// <param name="index">The codebook index to retrieve the reference for.</param> /// <returns>Codebook reference that corresponds to the index passed as argument.</returns> public ref CodeBook GetCodeBook(CodeBookIndex index) { Assert.IsTrue(index < numCodeBooks); return(ref codeBooks[index]); }
/// <summary> /// Determines whether two codebook indices are equal. /// </summary> /// <param name="codeBookIndex">The index to compare against the current index.</param> /// <returns>True if the specified index is equal to the current index; otherwise, false.</returns> public bool Equals(CodeBookIndex codeBookIndex) { return(value == codeBookIndex.value); }