DecayKnowledgebase
functiongenerated

World.with_tag

Every switched-on object with a tag, as a list: for enemy in World.with_tag("enemy") { ... }. Looks through the whole game, so call it once per frame, not in a loop.

Signature

World.with_tag(tag: String) -> List<Entity>

Member of World

Source
docs/generated/decay-api.json
Schema
v1
Engine version
0.1.0
Source commit
909aca81368b