载入中...
搜索中...
未找到
PcgLightingAmbientPhotoMode.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6#include "daynight/DayNight.h"
7
8namespace eve::daynight {
9
16public:
20 void setTarget(DayNight *target) noexcept;
22 void setAuthority(bool enabled);
24 PhotoModeFieldAcceptance acceptsPhotoModeField(
25 const PhotoModeAssignment &assignment) const noexcept override;
27 [[nodiscard]] Result<void> applyPhotoModeField(
28 const PhotoModeAssignment &assignment) override;
29
30private:
31 DayNight *target_ = nullptr;
32 PcgAmbientLightState baseline_;
34 bool authority_ = false;
35};
36
37} // 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 owner for Pcg ambient colors and global light multiplier. @lifetime The borrowed Da...
PhotoModeFieldAcceptance
Capability implemented by the composition root that routes assignments to domain owners.
bool enabled
One reversible field assignment in a photo-mode transaction.
Pcg ambient-gradient colors and global direct-light multiplier.
Definition DayNight.h:61