载入中...
搜索中...
未找到
RTSMission.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
9#include "rts/RTSTypes.h"
10
11#include <cstddef>
12#include <string_view>
13
14namespace eve::rts {
15
21public:
26 [[nodiscard]] static Result<void> addTrigger(Match& match, MissionTrigger trigger);
31 [[nodiscard]] static Result<void> addMonitor(Match& match, MissionRegionMonitor monitor);
36 [[nodiscard]] static Result<void> addTimer(Match& match, MissionTimer timer);
38 [[nodiscard]] static Result<void> setVariable(Match& match, std::string id, double value);
40 [[nodiscard]] static Result<double> variable(Match& match, std::string_view id) noexcept;
42 [[nodiscard]] static Result<void> setTriggerEnabled(Match& match, std::string_view id, bool enabled);
44 [[nodiscard]] static Result<void> setMonitorEnabled(Match& match, std::string_view id, bool enabled);
46 [[nodiscard]] static Result<void> controlTimer(Match& match, std::string_view id, bool running, bool reset);
51 [[nodiscard]] static Result<void> pushEvent(Match& match, MissionPendingEvent event);
57 [[nodiscard]] static Result<std::size_t> step(Match& match, const SimulationStep& step);
59 [[nodiscard]] static Result<void> clearActionLog(Match& match) noexcept;
60
62 [[nodiscard]] static Result<MissionTrigger> parseTriggerJson(std::string_view json);
64 [[nodiscard]] static Result<MissionRegionMonitor> parseMonitorJson(std::string_view json);
65};
66
67} // namespace eve::rts
#define EVENGINE_API_DOMAINS
Definition Export.h:110
Object::Ptr value
RTS domain roots and composition-only components.
float step
Definition TreeMesh.cpp:451
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Independent match composition root; factions may participate in different matches.
Definition RTSTypes.h:1476
Campaign orchestration boundary attached to one Match.
Definition RTSMission.h:20
bool enabled
One deterministic fixed-step emitted by SimulationClock.
Definition Time.h:158
Queued campaign event waiting to wake triggers.
Definition RTSTypes.h:1455
Axis-aligned world region that emits enter/exit events for live subjects.
Definition RTSTypes.h:1426
Match-owned countdown that emits TimerElapsed when it reaches zero.
Definition RTSTypes.h:1440
Authorable trigger: OR of events, AND of variable conditions, then actions.
Definition RTSTypes.h:1414