DefaultRuleProcessor Class
Default implementation of RuleProcessor. More...
Declaration
Base class
| class | RuleProcessor |
|
Abstract interface for processing spawn rules into spawn plans. More... | |
Public Member Functions Index
| SpawnPlan | processRule (const world::GameWorld &gameWorld, const UpdateContext &updateContext, const SpawnContext &spawnContext, const SpawnProfileId spawnProfileId, SpawnRule &spawnRule, SpawnRuleState &spawnRuleState) noexcept override |
|
Processes a spawn rule using standard evaluation logic. More... | |
Description
Default implementation of RuleProcessor.
DefaultRuleProcessor provides the standard rule processing logic:
1. Retrieves the SpawnProfile from the SpawnManager 2. Gets a pool snapshot from the GameObjectPoolManager 3. Updates the rule state with the current delta time 4. Evaluates the rule and returns the resulting SpawnPlan
This processor is used by both DefaultSpawnScheduler and CyclicSpawnScheduler.
- See Also
- See Also
- See Also
Definition at line 48 of file DefaultRuleProcessor.ixx.
Public Member Functions
processRule()
| inline noexcept virtual |
Processes a spawn rule using standard evaluation logic.
Retrieves pool state, updates the rule's timer/state, and evaluates the rule to produce a spawn plan.
- Parameters
-
gameWorld The game world where the rule is processed.
updateContext Current frame context.
spawnContext Context for the spawn operation.
spawnProfileId Profile ID to look up spawn configuration.
spawnRule The rule to evaluate.
spawnRuleState Mutable state tracking timers and counts.
- Returns
SpawnPlan indicating how many entities to spawn.
Definition at line 67 of file DefaultRuleProcessor.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.