Read-only completion receipt, safe to retain after world destruction. @ownership Shares only receipt storage; does not retain a world or body. World owns status transitions. @thread Query on the simulation owner thread, serialized with world mutation; no callbacks. 更多...
#include <ForceReceipt.h>
Public 成员函数 | |
| ForceStepStatus | status () const noexcept |
| Current completion status; a moved-from receipt is Cancelled. | |
| SimulationStep | step () const noexcept |
| Requested tick and duration; a moved-from receipt returns the zero step. | |
友元 | |
| class | ForceBatch |
详细描述
Read-only completion receipt, safe to retain after world destruction. @ownership Shares only receipt storage; does not retain a world or body. World owns status transitions. @thread Query on the simulation owner thread, serialized with world mutation; no callbacks.
Applied proves the requested world step succeeded, not that subsequently destroyed targets survived. Pending survives backend failure. Destroy or successful restore cancels pending receipts. Receipts are transient and are not serialized. Discarding a receipt does not cancel submitted forces.
在文件 ForceReceipt.h 第 17 行定义.
成员函数说明
◆ status()
|
noexcept |
Current completion status; a moved-from receipt is Cancelled.
在文件 ForceReceipt.cpp 第 7 行定义.
◆ step()
|
noexcept |
Requested tick and duration; a moved-from receipt returns the zero step.
在文件 ForceReceipt.cpp 第 8 行定义.
友元及相关函数文档
◆ ForceBatch
|
friend |
在文件 ForceReceipt.h 第 25 行定义.
该类的文档由以下文件生成:
- src/modules/physics/forces/ForceReceipt.h
- src/modules/physics/forces/ForceReceipt.cpp