MCPcopy Create free account
hub / github.com/TanTanDev/runity / PrefabEntityTracker

Class PrefabEntityTracker

rust/shared/src/components/prefab.rs:27–27  ·  view source on GitHub ↗

could be a HashSet, but I'm using the bool as a form of reducing iteration load by flagging entities see, sync_despawn_prefabs u32: is entity id, bool: flag if entity exists

Source from the content-addressed store, hash-verified

25// by flagging entities see, sync_despawn_prefabs
26// u32: is entity id, bool: flag if entity exists
27pub struct PrefabEntityTracker(pub HashMap<u64, bool>);
28
29// tell unity to spawn the prefabs of newly created entities
30pub fn sync_spawned_entitites_without_transform(

Callers 1

setup_bevy_worldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected