/** Writes an item reference. */ public static void Write(this BinaryWriter binaryWriter, gitem_t item) { if (item == null) { binaryWriter.Write(-1); } else { binaryWriter.Write(item.index); } }
public virtual void WriteItem(gitem_t item) { if (item == null) { Output.Write(-1); } else { Output.Write(item.index); } }