Structs§
- Loaded
- A
Resourceavailable duringSaveStage::PostLoadwhich contains a mapping of previously saved entities to new loaded entities. - Save
- A
Componentwhich indicates that itsEntityshould be saved. - Save
Plugin - A
Pluginwhich adds theSaveStageand any required systems for saving and loading theWorld. - Unload
- A
Componentwhich indicates that itsEntityand all of itsChildrenshould be despawned before load.
Enums§
Traits§
- From
Loaded - Trait used to read and update entity references from
Loaded. - Load
World - Trait used to load a
Worldfrom a file. - Register
Loaded - Extension trait used to register components which implement
FromLoadedwith anApp. - Save
World - Trait used to save a
Worldto a file.
Functions§
- load
- A
Systemwhich handles a loadRequestand starts the load process. - load_
world - Loads a previously saved
DynamicSceneinto the givenWorld. - loaded
- A
Systemwhich callsFromLoaded::from_loadedon all instances of aComponentwhich implementsFromLoaded. - save
- A
Systemwhich handles a saveRequest. - save_
world - Saves the
entitieswithin the givenWorldand returns it as a serializableDynamicScene. - should_
load - A
RunCriteriawhich returnsShouldRun::Yesif there is a loadRequestpresent;ShouldRun::Nootherwise. - should_
save - A
RunCriteriawhich returnsShouldRun::Yesif there is a saveRequestpresent;ShouldRun::Nootherwise.