![]() |
ImagoEngine
A C++ 2D game engine built on a sparse-set ECS, with scenes, scheduled systems, events, and action-based input
|
| NImago | |
| NECS | |
| CBond | A Bond permanently reorders every pool within it so that every Entity that has all of the components in the Bond sits at the front of every pool, in the same index at each. Bonds should be used for iterative systems that will execute every frame in every situation (Rendering, Physics, ect.) becuase the time save from no longer checking whether or not each Entity has every component starts to become significant for these systems |
| CBondHandle | Lightweight view over a Bond. This is returned by value from Nexus::Bond<Components...>() and does not deal with the structural changes relevant for bonds but just provieds an iterorator like SurveyHandle does |
| CIterator | |
| CCommandBuffer | Queues structural changes to apply all at once when there is no iteration going on |
| CEntityManager | Creates, destroys, and validates Entity handles |
| CNexus | Nexus is the brain of the ECS world. It is the object the user will use to interact with everything ECS related within systems |
| CSparseSet | SparseSet concrete class templated to a component type, acts as Imago ECS's component pool |
| CSparseSetBase | Type-erased interface for SparseSet<T> |
| CSurveyHandle | The Survey takes Components as templated arguments and acts as an iterator over all entities with all component types |
| CIterator | |
| NEngine | |
| CBroadcaster | Broadcaster acts as ImagoEngine's event system. It lets systems communicate without knowing about eachother |
| CEngineControl | The user's only way to talk to the Game from inside a system or Scene load/unload |
| CGame | The owner of the engine. Creates the window and every persistent engine object, filling in SceneContext with those objects before passing it down to the Scenes |
| CGameConfig | Everything the Game needs to start. Default values for now but will later be filled by a YAML config file |
| CInputHandler | Owned by Game. Handles registering actions and adding raw inputs to them. It updates InputState based off of window events. Systems never see this class, instead they see the InputState it owns. An action has inputs that the user decides but all logic within states should be based off of whether or not the action has been executed, not the input. Mutiple inputs can drive a single action |
| CKeySource | A keybaord key that drives an action. Reads as 0 or 1. (pressed or not pressed) |
| CMouseButtonSource | A mouse button that drives an action. Reads as 0 or 1. (pressed or not pressed) |
| CGamepadButtonSource | A gamepad button that drives an action. Reads as 0 or 1. (pressed or not pressed) |
| CGamepadAxisSource | A gamepad axis motion that drives an action. Reads as a strength rescaled to a dead zone and scaled to a magnitude between 0-1 |
| CInputState | What systems query for input (ctx.input->began("jump")). This is only for querying. The InputHandler writes it |
| CScene | Abstract Base Class for every Scene. Users inherit from this class and override on_load() and optionally on_unload() in order to create their entites, registers systems, and subscribe to events |
| CSceneContext | Gives systems access to the persistent engine objects they could need |
| CSceneManager | The manager is the only object that creates, switches, and updates Scenes |
| CSystemScheduler |