Skip to content

Eklips.Save

ZeeAy edited this page Dec 1, 2024 · 1 revision

This is the class that handles your save file. The savefile is located in %userprofile%/Eklips Engine/<Name of your game>.

  • Eklips.Save.Get(key, default)

    Returns the value of the key path. If key path is not found, It returns default instead.

    key = A string that is path to the key (example: "path/to/key"), The keypath is translated into (example: Savefile["path"]["to"]["key"]) (REQUIRED)
    default = An object (string, integer, float, boolean, etc..) that is turned into the output if the key is not found. (Optional, Default = 0)
    
  • Eklips.Save.Set(val, out)

    Set a key path (val) into out.

    val = The key path to be modified (REQUIRED)
    out = An object (string, integer, float, boolean, etc..) that modifies the keypaths (val) value. Confusing i know. (REQUIRED)
    
  • Eklips.Save.Reset()

    Reset the savefile back to original settings (/default_save.json)

Clone this wiki locally