SchedulerConfig.ixx File
Fluent configuration for adding spawn rules to a scheduler. More...
Included Headers
#include <memory>
#include <helios.engine.runtime.spawn.policy.conditions>
#include <helios.engine.runtime.spawn.policy.amount>
#include <helios.engine.runtime.spawn.policy.SpawnConditionAll>
#include <helios.engine.runtime.spawn.policy.SpawnCondition>
#include <helios.engine.runtime.spawn.policy.SpawnRule>
#include <helios.engine.runtime.spawn.types.SpawnRuleId>
#include <helios.engine.runtime.spawn.types.SpawnProfileId>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | builder |
|
Fluent builder pattern for constructing GameObjects. More... | |
| namespace | spawnSystem |
| namespace | builders |
| namespace | configs |
Classes Index
| class | SchedulerConfig |
|
Fluent configuration for a single spawn rule. More... | |
Description
Fluent configuration for adding spawn rules to a scheduler.
File Listing
The file content with the documentation metadata removed is:
20export namespace helios::engine::builder::spawnSystem::builders::configs {
28 class SchedulerConfig {
33 helios::engine::runtime::spawn::types::SpawnProfileId profileId_;
48 std::unique_ptr<const helios::engine::runtime::spawn::policy::amount::SpawnAmountProvider> amountProvider_;
61 ) : profileId_(profileId), ruleId_(ruleId), condition_(nullptr), amountProvider_(nullptr) {}
70 SchedulerConfig& timerCondition(const float intervalSeconds) {
85 SchedulerConfig& timerWithAvailabilityCondition(const float intervalSeconds) {
88 std::make_unique<helios::engine::runtime::spawn::policy::conditions::TimerSpawnCondition>(intervalSeconds),
89 std::make_unique<helios::engine::runtime::spawn::policy::conditions::RequestedAmountIsAvailableCondition>()
115 SchedulerConfig& fixedAmount(const size_t count) {
129 std::unique_ptr<const helios::engine::runtime::spawn::policy::amount::SpawnAmountProvider> customProvider
140 [[nodiscard]] helios::engine::runtime::spawn::types::SpawnProfileId profileId() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.