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