Component Universe - DevRubicate/Devil-Fresh GitHub Wiki

Description

The universe component is the anchor for which various parts of the game such as entities and tiles can interact with each other. The component provides an empty endless 2d plane, other components and entities have to fill it with stuff.

The universe component is also responsible for providing the "update" event to all it's child entities.

Events

addEntity (entity:Entity)

removeEntity (entity:Entity)

setMap (map:Map)

update ()