UpdateContext.ixx File
Context struct passed to components during per-frame updates. More...
Included Headers
#include <span>
#include <helios.engine.runtime.messaging.event.GameLoopEventBus>
#include <helios.rendering.ViewportSnapshot>
#include <helios.input.InputSnapshot>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | runtime |
|
Runtime infrastructure for game execution and lifecycle orchestration. More... | |
| namespace | messaging |
|
Communication infrastructure for commands and events. More... | |
| namespace | command |
|
Command pattern implementation for deferred action execution. More... | |
| namespace | world |
|
World state management and per-frame update context. More... | |
Classes Index
| struct | UpdateContext |
|
Context passed to systems and components during per-frame updates. More... | |
Description
Context struct passed to components during per-frame updates.
File Listing
The file content with the documentation metadata removed is:
17export namespace helios::engine::runtime::messaging::command {
18 class CommandBuffer;
22export namespace helios::engine::runtime::world {
26 class GameWorld;
59 struct UpdateContext {
75 const helios::input::InputSnapshot& inputSnapshot_;
80 helios::engine::runtime::messaging::command::CommandBuffer& commandBuffer_;
85 helios::engine::runtime::world::GameWorld& gameWorld_;
125 const helios::engine::runtime::messaging::event::GameLoopEventBus::ReadSource frameEventSource_;
150 const float deltaTime,
151 helios::engine::runtime::messaging::event::GameLoopEventBus& phaseEventBus,
152 helios::engine::runtime::messaging::event::GameLoopEventBus& passEventBus,
153 helios::engine::runtime::messaging::event::GameLoopEventBus& frameEventBus,
154 const helios::input::InputSnapshot& inputSnapshot,
155 std::span<const helios::rendering::ViewportSnapshot> viewportSnapshots
156 ) : commandBuffer_(commandBuffer), gameWorld_(gameWorld),
157 deltaTime_(deltaTime),
158 totalTime_(totalTime_ + deltaTime),
165 inputSnapshot_(inputSnapshot),
166 viewportSnapshots_(viewportSnapshots)
176 [[nodiscard]] std::span<const helios::rendering::ViewportSnapshot> viewportSnapshots() const noexcept {
204 [[nodiscard]] const helios::input::InputSnapshot& inputSnapshot() const noexcept {
213 [[nodiscard]] helios::engine::runtime::messaging::command::CommandBuffer& commandBuffer() const noexcept {
222 [[nodiscard]] helios::engine::runtime::world::GameWorld& gameWorld() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.