X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=roguelike.h;h=0d0ce86ab385b91f8237397f099131681a995817;hb=70219003e949b884ceaf1215bfc13f5814aacdbe;hp=45abf778a1e7425a2e2ca69092d219773bd2faef;hpb=fa3b43c4b7a23503bbcf689e374e4eb7be108208;p=plomrogue
diff --git a/roguelike.h b/roguelike.h
index 45abf77..0d0ce86 100644
--- a/roguelike.h
+++ b/roguelike.h
@@ -1,7 +1,8 @@
struct World {
struct KeyBinding * keybindings;
struct KeysWinData * keyswindata;
- uint16_t turn;
+ uint32_t seed;
+ uint32_t turn;
char * log;
struct Map * map;
struct Monster * monster;
@@ -23,8 +24,12 @@ struct Monster {
uint16_t x; };
uint16_t rrand(char, uint32_t);
-uint32_t load_seed();
-void save_seed(uint32_t);
+uint16_t read_uint16_bigendian(FILE * file);
+void write_uint16_bigendian(uint16_t x, FILE * file);
+uint32_t read_uint32_bigendian(FILE * file);
+void write_uint32_bigendian(uint32_t x, FILE * file);
+void load_game(struct World *);
+void save_game(struct World *);
void toggle_window (struct WinMeta *, struct Win *);
void growshrink_active_window (struct WinMeta *, char);
struct Map init_map ();