component.tagssystem - ICE 0.1 API documentation

ICE 0.1 API documentation

# component.tagssystem

System that allows the engine to asynchronically access entities based on tags.

class TagsSystem: component.system.System;

  System that allows the engine to asynchronically access entities based on tags.

  this(EntitySystem entitySystem);

    Construct a TagsSystem working on entities from specified EntitySystem.

  void update();

    Call registered delegates providing IDs of tagged entities.

  void callOnTag(string tag, void delegate(const(EntityID)) toCall);

    Calls the specified function when specified tag is detected.

    Calls the function for every entity with specified tag, every frame it exists.

    Parameters:

    string tag | Tag to look for.
    void delegate(const(EntityID)) toCall | Function to call. ID of the tagged entity is passed.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.