Example #1
0
 /// <summary>
 /// Reads the ItemChance from an IValueReader.
 /// </summary>
 /// <param name="valueReader">IValueReader to read the ItemChance from.</param>
 /// <param name="name">The unique name of the value to read.</param>
 /// <returns>The ItemChance read from the IValueReader.</returns>
 public static ItemChance ReadItemChance(this IValueReader valueReader, string name)
 {
     return(ItemChance.Read(valueReader, name));
 }
Example #2
0
 /// <summary>
 /// Reads the ItemChance from an <see cref="IDataRecord"/>.
 /// </summary>
 /// <param name="r"><see cref="IDataRecord"/> to read the ItemChance from.</param>
 /// <param name="name">The name of the field to read the value from.</param>
 /// <returns>The ItemChance read from the <see cref="IDataRecord"/>.</returns>
 public static ItemChance GetItemChance(this IDataRecord r, string name)
 {
     return(ItemChance.Read(r, name));
 }
Example #3
0
 /// <summary>
 /// Reads the ItemChance from a BitStream.
 /// </summary>
 /// <param name="bitStream">BitStream to read the ItemChance from.</param>
 /// <returns>The ItemChance read from the BitStream.</returns>
 public static ItemChance ReadItemChance(this BitStream bitStream)
 {
     return(ItemChance.Read(bitStream));
 }
Example #4
0
 /// <summary>
 /// Reads the ItemChance from an <see cref="IDataRecord"/>.
 /// </summary>
 /// <param name="r"><see cref="IDataRecord"/> to read the ItemChance from.</param>
 /// <param name="i">The field index to read.</param>
 /// <returns>The ItemChance read from the <see cref="IDataRecord"/>.</returns>
 public static ItemChance GetItemChance(this IDataRecord r, int i)
 {
     return(ItemChance.Read(r, i));
 }