summaryrefslogtreecommitdiffhomepage
path: root/felflame.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-07-07 17:49:00 -0400
committerrealtradam <[email protected]>2021-07-07 17:49:00 -0400
commit09fc5ef46b911f9d7e31cdedd240e7afc4c11c92 (patch)
tree65d0ac1ffaf269cded9c5df681dee8d9dc7f0d73 /felflame.rb
parent4758c32fbd5cba714341f9735a994fd244664ff7 (diff)
downloadFelECS-09fc5ef46b911f9d7e31cdedd240e7afc4c11c92.tar.gz
FelECS-09fc5ef46b911f9d7e31cdedd240e7afc4c11c92.zip
completed functionality
Diffstat (limited to 'felflame.rb')
-rw-r--r--felflame.rb47
1 files changed, 31 insertions, 16 deletions
diff --git a/felflame.rb b/felflame.rb
index 005cfcb..7ed7897 100644
--- a/felflame.rb
+++ b/felflame.rb
@@ -1,26 +1,41 @@
-require_relative './entity_manager.rb'
-require_relative './component_manager.rb'
-require_relative './system_manager.rb'
-require_relative './scene_manager.rb'
-require_relative './stage_manager.rb'
+require_relative './entity_manager'
+require_relative './component_manager'
+require_relative './system_manager'
+require_relative './scene_manager'
+require_relative './stage_manager'
+# The FelFlame namespace where all its functionality resides under.
class FelFlame
- # Creates and manages Entities. Allows accessing Entities using their {FelFlame::Entities#id ID}
- #
- # TODO: Improve Entity overview
+ class <<self
+ # :nocov:
+
+ # An alias for {FelFlame::Stage.call}. It executes a single frame in the game.
+ def call
+ FelFlame::Stage.call
+ end
+ # :nocov:
+ end
+
+ # Creates and manages Entities. Allows accessing Entities using their {FelFlame::Entities#id ID}. Entities are just collections of Components.
class Entities; end
# Creates component managers and allows accessing them them under the {FelFlame::Components} namespace as Constants
#
- # To see how component managers are used please look at the {FelFlame::Helper::ComponentManagerTemplate} documentation.
- #
- # TODO: Improve Component overview
+ # To see how component managers are used please look at the {FelFlame::ComponentManager} documentation.
class Components; end
- # Creates an manages Systems.
+ # Creates an manages Systems. Systems are the logic of the game and do not contain any data within them.
#
- # TODO: Improve System overview
+ # TODO: Improve Systems overview
class Systems; end
+
+ # Creates and manages Scenes. Scenes are collections of Systems, and execute all the Systems when called upon.
+ #
+ # TODO: Improve Scenes overview
+ class Scenes; end
+
+ # Stores Scenes 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.
+ class Stage; end
end
# An alias for {FelFlame}
@@ -36,7 +51,7 @@ FF::Cmp = FelFlame::Components
FF::Sys = FelFlame::Systems
# An alias for {FelFlame::Scenes}
-#FF::Sce = FelFlame::Scenes
-#
+FF::Sce = FelFlame::Scenes
+
# An alias for {FelFlame::Stage}
-#FF::Stg = FelFlame::Stage
+FF::Stg = FelFlame::Stage