View Source ECSx.Component (ECSx v0.1.0)

A Component labels an entity as possessing a particular aspect, and holds the data needed to model that aspect. Under the hood, we use ETS to store the Components in memory for quick retrieval via aspect and entity ID.

Link to this section Summary

Link to this section Functions

Link to this function

add(aspect, attrs, fields)

View Source
Link to this function

exists?(aspect, entity_id)

View Source
Link to this function

get_many(aspect, entity_id, fields)

View Source
Link to this function

get_one(aspect, entity_id, fields)

View Source
Link to this function

get_value(aspect, entity_id, selected_field, fields)

View Source
Link to this function

get_values(aspect, entity_id, selected_field, fields)

View Source
Link to this function

remove(aspect, entity_id)

View Source