Complete overhaul of code structure and relevant files (#639)

This commit is contained in:
Daniël van Noord
2021-03-14 00:41:14 +01:00
committed by GitHub
parent bb34bce9a5
commit 1bffb58782
163 changed files with 7369 additions and 10882 deletions

14
src/InitSaveLoad/save.js Normal file
View File

@@ -0,0 +1,14 @@
import { CMOptions } from '../Config/VariablesAndData';
import { VersionMajor, VersionMinor } from '../Data/Moddata';
/**
* This creates a save function to the CM object. Per Game code/comments:
* "use this to store persistent data associated with your mod
* return 'a string to be saved';"
*/
export default function save() {
return JSON.stringify({
settings: CMOptions,
version: `${VersionMajor}.${VersionMinor}`,
});
}