module FECS
The FelECS
namespace where all its functionality resides under.
:nocov: Keeps the version of the Gem
Constants
- Cmp
Creates component managers and allows accessing them them under the {FelECS::Components} namespace as Constants. You can use array methods directly on this class to access Component Managers.
To see how component managers are used please look at the {FelECS::ComponentManager} documentation.
- Ent
Creates and manages
Entities
.Entities
are just collections ofComponents
. You can use array methods directly on this class to accessEntities
.- Odr
Sets the priority of a list of
Systems
orScenes
for you in the order you pass them to this class.- Scn
Creates and manages
Scenes
.Scenes
are collections ofSystems
, and execute all theSystems
when called upon. Any scenes you create are accessable under the {FelECS::Scenes} namespace as Constants.- Stg
Stores
Scenes
you add to it which you want to execute on each frame. When called upon will execute allSystems
in theScenes
in theStage
and will execute them according to their priority order.- Sys
Creates and manages
Systems
.Systems
are the logic of the game and do not contain any data within them. Any systems you create are accessable under the {FelECS::Systems} namespace as Constants. You can use array methods directly on this class to accessSystems
.- VERSION
The version of the Gem
Public Class Methods
An alias for {FelECS::Stage.call}. It executes a single frame in the game.
# File lib/felecs.rb, line 18 def call FelECS::Stage.call end