added basic support for game engine snapshots for Mirror Magic game engine
[rocksndiamonds.git] / src / game_mm / mm_init.c
index eec9ee1e31135b98fe9156b2f555ea7d27e09062..9d945a3894f616daefb879a49868555fffbd44c4 100644 (file)
 
 #include "main_mm.h"
 
+
+struct EngineSnapshotInfo_MM engine_snapshot_mm;
+
+
 unsigned int InitEngineRandom_MM(int seed)
 {
   return InitEngineRandom(seed);
 }
+
+
+/* ------------------------------------------------------------------------- */
+/* Mirror Magic game engine snapshot handling functions                      */
+/* ------------------------------------------------------------------------- */
+
+void SaveEngineSnapshotValues_MM(ListNode **buffers)
+{
+  engine_snapshot_mm.game_mm = game_mm;
+}
+
+void LoadEngineSnapshotValues_MM()
+{
+  /* stored engine snapshot buffers already restored at this point */
+
+  game_mm = engine_snapshot_mm.game_mm;
+
+  RedrawPlayfield_MM(TRUE);
+}