MCPcopy Create free account
hub / github.com/amethyst/rustrogueliketutorial / spawn_entity

Function spawn_entity

chapter-41-camera/src/spawner.rs:94–118  ·  view source on GitHub ↗

Spawns a named entity (name in tuple.1) at the location in (tuple.0)

(ecs: &mut World, spawn : &(&usize, &String))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

spawn_entitiesMethod · 0.50

Calls 14

goblinFunction · 0.70
orcFunction · 0.70
health_potionFunction · 0.70
fireball_scrollFunction · 0.70
confusion_scrollFunction · 0.70
magic_missile_scrollFunction · 0.70
daggerFunction · 0.70
shieldFunction · 0.70
longswordFunction · 0.70
tower_shieldFunction · 0.70
rationsFunction · 0.70
magic_mapping_scrollFunction · 0.70

Tested by

no test coverage detected