载入中...
搜索中...
未找到
SceneVisibilityProvider.cpp
浏览该文件的文档.
13const Value& member(const Value& v, const char* name) { return v.getIf<Value::Object>()->at(name); }
21 if (!graphics) return rejected(DiagnosticCode::Unsupported, "Visibility graphics provider detached");
54 if (!node.id.starts_with(prefix) || split <= prefix.size() || !mesh || !mesh->geometryGeneration()) {
69 if (invalid) return rejected(DiagnosticCode::Conflict, "Projection links or geometry cannot be proven");
72 return rejected(DiagnosticCode::Conflict, "Visibility requires the complete visible native projection");
83 return rejected(DiagnosticCode::Conflict, "Visibility draw is not the native object's projection");
90 Result<Value> measure(const std::string& host, const Value& request, const Value& proof) override {
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Definition Graphics.h:134
static Result< SceneVisibilityQuery > prepare(const Value &request)
Validate schema v1/v2 and copy the bounded request without drawing.
Definition SceneVisibility.cpp:79
std::variant< std::monostate, std::int64_t, double, std::string, bool > Value
Definition Database.h:27
Result< T > rejected(RuleId rule, std::string message, eve::DiagnosticCode code=eve::DiagnosticCode::PreconditionViolation)
Construct a Rejected result for invalid editing input or preconditions.
Definition EditingResult.h:143
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
void detachSceneVisibilityProvider(Graphics *graphics) noexcept
Revoke the matching provider before Graphics destruction.
Definition SceneVisibilityProvider.cpp:109
void registerSceneVisibilityProvider(Graphics *graphics)
Bind and register the owner-thread native visibility provider during Graphics startup.
Definition SceneVisibilityProvider.cpp:105
@ Unsupported
@ StaleHandle
@ Conflict