1 #ifndef BUILDING_BUILDING_STATE_H 2 #define BUILDING_BUILDING_STATE_H 3 4 #include "building/building.h" 5 #include "core/buffer.h" 6 7 #define BUILDING_STATE_ORIGINAL_BUFFER_SIZE 128 8 #define BUILDING_STATE_TOURISM_BUFFER_SIZE 134 9 #define BUILDING_STATE_VARIANTS_AND_UPGRADES 136 10 #define BUILDING_STATE_STRIKES 137 11 #define BUILDING_STATE_CURRENT_BUFFER_SIZE 137 12 13 14 void building_state_save_to_buffer(buffer *buf, const building *b); 15 16 void building_state_load_from_buffer(buffer *buf, building *b, int building_buf_size, int save_version); 17 18 #endif // BUILDING_BUILDING_STATE_H 19