rui API¶
rui.rui module¶
-
class
rui.rui.Entity(tag='')[source]¶ Bases:
objectInstances of Entity are unique IDs that hold Components. (optionally) tag is a string that refers to the entity
-
class
rui.rui.World(delta=1)[source]¶ Bases:
objectA World holds all entities, groups, and systems
-
add_entities(*entities)[source]¶ Add multiple entities to world All members of entities are of type Entity
-
add_system(system)[source]¶ Add system to the world. All systems will be processed on World.process() system is of type System
-
create_entity(tag='')[source]¶ Creates Entity (optionally) tag is a string that is the tag of the Entity.
-
get_entities_by_components(*components)[source]¶ Get entity by list of components All members of components must be of type Component
-