Expand description
Β§DungeonRS
io
This crate handles persisting and loading data to and from the disk.
ModulesΒ§
- document π
- The
Document
structs are used for writing and loading [data::Project
] entities to and from storage. This module is intentionally not made public, since these structs have no use beyond persistence and should not be used outside this scope. - load_
project π - Contains the
LoadProjectEvent
and itβs handler systems. - plugin π
- Contains the
IOPlugin
that registers the required systems and data in the bevyApp
. - save_
project π - Contains the events for saving projects and their handling systems.
StructsΒ§
- IOPlugin
- Sets up listening for events to persist or load data from the disk.
- Load
Project Event - Emitting this event will cause the software to attempt loading a project file at the given
input
. - Save
Project Complete Event - This event indicates that the work of a
SaveProjectEvent
has completed. - Save
Project Event - When this event is sent, the associated
project
will be fetched and saved. As a reaction to this event, a system will build a [bevy::prelude::Query
] that attempts to fetch all [data::Project
]βs [data::Level
]s (and their descendant [data::Layer
]s along all their descendants) and then (attempts) to persist them to disk.