From 9712b2f462e20d5548d91af417c50caff921962a Mon Sep 17 00:00:00 2001 From: Nitwel Date: Sat, 9 Dec 2023 18:42:14 +0100 Subject: [PATCH] add readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 67c6e1b..65eb6e5 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,10 @@ Thus I've decided to use a custom event system that is similar to the one used i | `ui_focus_skip` | Focus checking on this element will be skipped | | `ui_focus_stop` | The focus will not be reset. Useful for keyboard | +### Saving and Loading + +In order for an entity to be saved, it has to implement the `_save` function returning a dictionary of the data that should be saved. +When loading, first the saved node gets instantiated, then either the `_load` function is called with the saved data, or when no `_load` function is implemented, the saved data directly applied to the node. ### Functions