 8eb0440f1e
			
		
	
	
		8eb0440f1e
		
	
	
	
	
		
			
			## Objective Implement absolute minimum viable product for the changes proposed in bevyengine/rfcs#53. ## Solution - Remove public mutative access to `Parent` (Children is already publicly read-only). This includes public construction methods like `Copy`, `Clone`, and `Default`. - Remove `PreviousParent` - Remove `parent_update_system` - Update all hierarchy related commands to immediately update both `Parent` and `Children` references. ## Remaining TODOs - [ ] Update documentation for both `Parent` and `Children`. Discourage using `EntityCommands::remove` - [x] Add `HierarchyEvent` to notify listeners of hierarchy updates. This is meant to replace listening on `PreviousParent` ## Followup - These changes should be best moved to the hooks mentioned in #3742. - Backing storage for both might be best moved to indexes mentioned in the same relations.
		
			
				
	
	
		
			6 lines
		
	
	
		
			79 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			79 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| mod children;
 | |
| mod parent;
 | |
| 
 | |
| pub use children::Children;
 | |
| pub use parent::Parent;
 |