/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* Thomas Ruschak
* Ken Stevens, 1995
* Steve McClure, 1998-2000
+ * Ron Koenderink, 2005-2008
+ * Markus Armbruster, 2005-2008
*/
#ifndef NAT_H
*/
struct realmstr {
/* initial part must match struct empobj */
- short ef_type;
- short r_uid; /* realm table index */
- unsigned r_seqno;
+ signed ef_type: 8;
+ unsigned r_seqno: 12;
+ unsigned r_generation: 12;
+ int r_uid; /* realm table index */
time_t r_timestamp; /* Last time this realm was touched */
natid r_cnum; /* country number */
/* end of part matching struct empobj */
struct natstr {
/* initial part must match struct empobj */
- short ef_type;
- short nat_uid; /* equals nat_cnum */
- unsigned nat_seqno;
+ signed ef_type: 8;
+ unsigned nat_seqno: 12;
+ unsigned nat_generation: 12;
+ int nat_uid; /* equals nat_cnum */
time_t nat_timestamp;
natid nat_cnum; /* our country number */
/* end of part matching struct empobj */