示例#1
0
 /** 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);
     }
 }
示例#2
0
 public virtual void WriteItem(gitem_t item)
 {
     if (item == null)
     {
         Output.Write(-1);
     }
     else
     {
         Output.Write(item.index);
     }
 }