game_save(filename)

From ENIGMA

Jump to: navigation, search

Description

Saves the entire game state and all objects and variables to the given file.

Note: It is only to make it simple for beginners to add saving and loading to their game but since it dumps the entire game state and all variables it can be rather inefficient.

Parameters

Parameter Data Type Description
filename string the file name to save the game state to

Return Values

void: This function does not return anything.

Example Call

// demonstrates saving the entire game state
game_save("mygame.sav");
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox