Skip to content

Commit 0ac924b

Browse files
author
GDevelop documentation CI
committed
Automatic update of the reference pages [skip ci]
1 parent 187f663 commit 0ac924b

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

docs/gdevelop5/all-features/expressions-reference.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,18 @@ Allow your game to authenticate players. [Read more explanations about it.](/gde
14211421
---
14221422

14231423

1424+
## Save State (experimental)
1425+
1426+
Allows to save and load the full state of a game. [Read more explanations about it.](/gdevelop5/all-features/save-state)
1427+
1428+
| Expression | Description | |
1429+
|-----|-----|-----|
1430+
| `SaveState::TimeSinceLastLoad()` | Return Time since the last load, in seconds. Returns -1 if no load happened, and a positive number otherwise.. ||
1431+
| `SaveState::TimeSinceLastSave()` | Return Time since the last save, in seconds. Returns -1 if no save happened, and a positive number otherwise.. ||
1432+
1433+
---
1434+
1435+
14241436

14251437
## Spine (experimental)
14261438

docs/gdevelop5/all-features/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Note that GDevelop can also be extended with extensions: take a look at [the lis
6868
* [2D Physics Engine](/gdevelop5/behaviors/physics2) ([reference](/gdevelop5/all-features/physics2/reference))
6969
* [3D physics engine](/gdevelop5/behaviors/physics3d) ([reference](/gdevelop5/all-features/physics3d/reference))
7070
* [Player Authentication](/gdevelop5/all-features/player-authentication) ([reference](/gdevelop5/all-features/player-authentication/reference))
71+
* [Save State (experimental)](/gdevelop5/all-features/save-state) ([reference](/gdevelop5/all-features/save-state/reference))
7172
* [Screenshot](/gdevelop5/all-features/screenshot) ([reference](/gdevelop5/all-features/screenshot/reference))
7273
* [Spatial sound](/gdevelop5/all-features/spatial-sound/reference)
7374
* [Spine (experimental)](/gdevelop5/objects/spine) ([reference](/gdevelop5/all-features/spine-object/reference))
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Save State (experimental) Reference
2+
3+
Allows to save and load the full state of a game. [Read more explanations about it.](/gdevelop5/all-features/save-state)
4+
5+
## Actions
6+
7+
**Load game from device storage**
8+
Load game from device storage save snapshot.
9+
10+
**Load game from variable**
11+
Load game from a variable save snapshot.
12+
13+
**Save game to device storage**
14+
Takes a snapshot of the game and save it to device storage.
15+
16+
**Save game to a variable**
17+
Takes a snapshot of the game and save it to a variable.
18+
19+
## Conditions
20+
21+
**Load just failed**
22+
the load just failed
23+
24+
**Load just succeeded**
25+
the load just succeeded
26+
27+
**Save just failed**
28+
the save just failed
29+
30+
**Save just succeeded**
31+
the save just succeeded
32+
33+
**Time since last load**
34+
Compare Time since the last load, in seconds. Returns -1 if no load happened, and a positive number otherwise..
35+
36+
**Time since last save**
37+
Compare Time since the last save, in seconds. Returns -1 if no save happened, and a positive number otherwise..
38+
39+
## Expressions
40+
41+
| Expression | Description | |
42+
|-----|-----|-----|
43+
| `SaveState::TimeSinceLastLoad()` | Return Time since the last load, in seconds. Returns -1 if no load happened, and a positive number otherwise.. ||
44+
| `SaveState::TimeSinceLastSave()` | Return Time since the last save, in seconds. Returns -1 if no save happened, and a positive number otherwise.. ||
45+
46+
47+
48+
---
49+
50+
The Save State (experimental) extension is always installed in all GDevelop projects: there is no need to add it from the Project Manager.
51+
52+
*This page is an auto-generated reference page about the **Save State (experimental)** feature of [GDevelop, the open-source, cross-platform game engine designed for everyone](https://gdevelop.io/).* Learn more about [all GDevelop features here](/gdevelop5/all-features).

0 commit comments

Comments
 (0)