Writes an item reference.
(QuakeFile f, GameItem item)
| 1373 | * Writes an item reference. |
| 1374 | */ |
| 1375 | public static void writeItem(QuakeFile f, GameItem item) throws IOException { |
| 1376 | if (item == null) |
| 1377 | f.writeInt(-1); |
| 1378 | else |
| 1379 | f.writeInt(item.index); |
| 1380 | } |
| 1381 | |
| 1382 | /** |
| 1383 | * Reads the item index and returns the game item. |