Skip to main content

DefaultGameStateTransitionRules.ixx File

Default transition rules for the game state machine. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacemechanics

High-level gameplay systems and components for game logic. More...

namespacegamestate

Game state management for the helios engine. More...

namespacerules

Transition rules for the game state machine. More...

Classes Index

classDefaultGameStateTransitionRules

Provides the default set of game state transition rules. More...

Description

Default transition rules for the game state machine.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file DefaultGameStateTransitionRules.ixx
3 * @brief Default transition rules for the game state machine.
4 */
5module;
6
7#include <span>
8
9export module helios.engine.mechanics.gamestate.rules.DefaultGameStateTransitionRules;
10
11
12import helios.engine.state.Bindings;
13
14import helios.engine.mechanics.gamestate.types;
15
16import helios.engine.state.types.StateTransitionRule;
17import helios.engine.state.types.StateTransitionId;
18
19
21
23 using namespace helios::engine::state::types;
24
25 /**
26 * @brief Provides the default set of game state transition rules.
27 */
29
30 static constexpr StateTransitionRule<GameState> rules_[] = {
31
36 ),
37
42 ),
43
48 ),
49
54 ),
55
60 ),
61
63
67 ),
68
70
74 ),
75
76
81 ),
82
87 ),
88
93 ),
94
99 )
100
101 };
102
103 public:
104
105 /**
106 * @brief Returns the default transition rules.
107 *
108 * @return A span of the predefined transition rules.
109 */
110 [[nodiscard]] static std::span<const StateTransitionRule<GameState>> rules() {
111 return rules_;
112 }
113
114 };
115
116
117}
118

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.