summaryrefslogtreecommitdiff
path: root/src/simulation/SaveLoader.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-26 01:13:33 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-26 01:13:33 (GMT)
commit9e1be78bc21d1fb76a19ce12ef36193aea6e2b93 (patch)
tree081b67d551bb44fecbf6deb99b6c44ea9789614c /src/simulation/SaveLoader.h
parentb2d3257ae944a3ea3b57dc8ee4171b1b2f85483e (diff)
downloadpowder-9e1be78bc21d1fb76a19ce12ef36193aea6e2b93.zip
powder-9e1be78bc21d1fb76a19ce12ef36193aea6e2b93.tar.gz
I've got to a point where I can no longer be bothered to think of a proper commit comment
Diffstat (limited to 'src/simulation/SaveLoader.h')
-rw-r--r--src/simulation/SaveLoader.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/simulation/SaveLoader.h b/src/simulation/SaveLoader.h
new file mode 100644
index 0000000..e517a2b
--- /dev/null
+++ b/src/simulation/SaveLoader.h
@@ -0,0 +1,23 @@
+/*
+ * SaveLoader.h
+ *
+ * Created on: Jan 26, 2012
+ * Author: Simon
+ */
+
+#ifndef SAVELOADER_H_
+#define SAVELOADER_H_
+
+#include "Simulation.h"
+
+class SaveLoader {
+public:
+ static int LoadSave(unsigned char * data, int dataLength, Simulation * sim);
+ static unsigned char * BuildSave(int & dataLength, Simulation * sim);
+ static int OPSLoadSave(unsigned char * data, int dataLength, Simulation * sim);
+ static unsigned char * OPSBuildSave(int & dataLength, Simulation * sim);
+ static int PSVLoadSave(unsigned char * data, int dataLength, Simulation * sim);
+ static unsigned char * PSVBuildSave(int & dataLength, Simulation * sim);
+};
+
+#endif /* SAVELOADER_H_ */