component.tagscomponent
Component that allows to tag an entity.
- struct TagsComponent;
Component that allows to tag an entity.
Tagged entities can be accessed by the engine allowing for special logic; e.g. a player ship.
- alias Tag;
Convenience alias (a tag is just a fixed-size char array).
- bool hasTag(string tagStr);
Determine if this tagComponent contains specified tag.
tagStr = String form of the tag. Must have at most 4 characters. If it has less than 4 characters, the others are assumed to be '\0'.
- void addTag(const Tag tag);
Add a new tag to the component.
- this(ref Node yaml);
Load from a YAML node. Throws YAMLException on error.