Write
Write(portside(from, on, 0) ? W_GUNR : W_GUNL,
Write(W_PCREW, on, pc, 0, 0, 0);
Write(W_HULL, on, hull, 0, 0, 0);
Write(W_CREW, on, crew[0], crew[1], crew[2], 0);
Write(W_RIGG, on, rigg[0], rigg[1], rigg[2], rigg[3]);
Write(W_TA, on, 0, 0, 0, 0);
Write(W_UNGRAP, from, to->file->index, all, 0, 0);
Write(W_UNGRAP, to, from->file->index, all, 0, 0);
Write(W_UNFOUL, from, to->file->index, all, 0, 0);
Write(W_UNFOUL, to, from->file->index, all, 0, 0);
Write(W_STRUCK, ship, 1, 0, 0, 0);
Write(W_POINTS, from, points, 0, 0, 0);
Write(W_SINK, ship, 1, 0, 0, 0);
Write(W_EXPLODE, ship, 1, 0, 0, 0);
Write(W_POINTS, fromcap,
Write(W_CAPTURED, from, to->file->index, 0, 0, 0);
Write(W_POINTS, to, topoints, 0, 0, 0);
Write(W_TURN, SHIP(0), turn, 0, 0, 0);
Write(W_WIND, SHIP(0), winddir, windspeed, 0, 0);
Write(W_POINTS, sp->file->captured, sp->file->captured->file->points - 2 * sp->specs->pts, 0, 0, 0);
Write(W_CAPTURED, sp, -1, 0, 0, 0);
Write(sink == 1 ? W_SINK : W_EXPLODE, sp, 2, 0, 0, 0);
Write(W_DIR, sp, 0, 0, 0, 0);
Write(W_FOUL, sp, l, 0, 0, 0);
Write(W_FOUL, sq, n, 0, 0, 0);
Write(W_ROW, sp, sp->file->row, 0, 0, 0);
Write(W_COL, sp, sp->file->col, 0, 0, 0);
Write(W_DIR, sp, sp->file->dir, 0, 0, 0);
Write(W_DRIFT, sp, sp->file->drift, 0, 0, 0);
Write(isdefense ? W_DBP : W_OBP, from,
Write(W_FS, sp, full, 0, 0, 0);
Write(W_GRAP, from, to->file->index, 0, 0, 0);
Write(W_GRAP, to, from->file->index, 0, 0, 0);
Write(W_CREW, from, crewfrom[0], crewfrom[1], crewfrom[2], 0);
Write(W_PCREW, from, pcfrom, 0, 0, 0);
void Write(int, struct ship *, long, long, long, long);
Write(isdefense ? W_DBP : W_OBP, ship, n, 0, 0, 0);
Write(W_END, ms, 0, 0, 0, 0);
Write(W_GRAP, ms, sp->file->index, 0, 0, 0);
Write(W_GRAP, sp, player, 0, 0, 0);
Write(W_FS, ms, 1, 0, 0, 0);
Write(W_FS, ms, 0, 0, 0, 0);
Write(W_FS, ms, 0, 0, 0, 0);
Write(W_FS, ms, 0, 0, 0, 0);
Write(isdefense ? W_DBP : W_OBP, ms,
Write(W_RIG4, ms, ptr->rig4, 0, 0, 0);
Write(W_RIG3, ms, ptr->rig3, 0, 0, 0);
Write(W_RIG2, ms, ptr->rig2, 0, 0, 0);
Write(W_RIG1, ms, ptr->rig1, 0, 0, 0);
Write(W_HULL, ms, ptr->hull, 0, 0, 0);
Write(W_GUNL, ms, ptr->gunL,
Write(W_GUNR, ms, ptr->gunR,
Write(W_DDEAD, SHIP(0), 0, 0, 0, 0);
Write(W_ALIVE, SHIP(0), 0, 0, 0, 0);
Write(W_FS, ms, 0, 0, 0, 0);
Write(W_FS, ms, 2, 0, 0, 0);
Write(W_BEGIN, ms, 0, 0, 0, 0);
#define WRITE_STRING(str) (Write(str, sizeof(char), strlen(str) + 1) == strlen(str) + 1)
((value) % 2 != 0 && Write(&zero, sizeof(char), 1) != 1)
if (Write(buf, 12, 1) != 1
|| Write(namelist, sizeof(char), namelen) != namelen) {
if (Write(buf, sizeof(char), boolmax) != boolmax) {
if (Write(buf, numlen, nummax) != nummax) {
if (Write(buf, SIZEOF_SHORT, strmax) != strmax) {
if (Write(buf, 10, 1) != 1) {
&& Write(tp->Booleans + BOOLCOUNT, sizeof(char),
if (Write(buf, numlen, tp->ext_Numbers) != tp->ext_Numbers) {
if (Write(buf, SIZEOF_SHORT, strmax) != strmax) {
serio->Write(serio, &sz, &buf);
EFI_FILE_WRITE Write;
EFI_DEVICE_IO Write;
EFI_SERIAL_WRITE Write;