Skip to main content

apply_edits

Function apply_edits 

Source
pub fn apply_edits(world: &mut GameWorld, state: &mut EditorState)
Expand description

Applies queued property edits back into ECS components.

All component edits go through one path: the inspector ships a JSON patch and we look up the component’s from_json from the inventory registration. The single special case is Name, which lives in the inspector header (not as a component card) and so has its own variant.