载入中...
搜索中...
未找到
PcgLightingTimePhotoMode.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7namespace eve::daynight {
8
9class DayNight;
10
17public:
21 void setTarget(DayNight* target) noexcept { target_ = target; }
23 void setAuthority(bool enabled);
24
26 PhotoModeFieldAcceptance acceptsPhotoModeField(const PhotoModeAssignment& assignment) const noexcept override;
28 [[nodiscard]] Result<void> applyPhotoModeField(const PhotoModeAssignment& assignment) override;
29
30private:
31 DayNight* target_ = nullptr;
32 bool authority_ = false;
33};
34
35} // namespace eve::daynight
LogicalId target
#define EVENGINE_API_WORLD
Definition Export.h:109
IPhotoModeFieldSink public API.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
DayNight module — a time-of-day cycle that drives the sun, sky and light.
Definition DayNight.h:94
Explicit Lighting-field owner that projects Pcg time settings into DayNight. @lifetime The borrowed D...
void setTarget(DayNight *target) noexcept
Attach a borrowed DayNight target.
PhotoModeFieldAcceptance
Capability implemented by the composition root that routes assignments to domain owners.
bool enabled
One reversible field assignment in a photo-mode transaction.