module FelECS

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 of Components. You can use array methods directly on this class to access Entities.

Odr

Sets the priority of a list of Systems or Scenes for you in the order you pass them to this class.

Scn

Creates and manages Scenes. Scenes are collections of Systems, and execute all the Systems 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 all Systems in the Scenes in the Stage 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 access Systems.

VERSION

The version of the Gem

Public Class Methods

call() click to toggle source

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