Narrow asynchronous pathfinding and locomotion provider contract. @thread Calls are simulation-thread-affine unless an implementation documents stronger guarantees. @reentrancy Implementations must not call back into NpcAiWorld or NavigationTaskService. 更多...
#include <Navigation.h>
Public 成员函数 | |
| virtual | ~INavigationProvider ()=default |
| Releases INavigationProvider resources. | |
| virtual Result< NavigationTicket > | begin (const NavigationRequest &request)=0 |
| Starts an owning backend request and returns its generation ticket. | |
| virtual Result< NavigationProgress > | poll (NavigationTicket ticket, std::uint64_t simulationTick)=0 |
| Polls one ticket without blocking the simulation thread. | |
| virtual void | abandon (NavigationTicket ticket) noexcept=0 |
| Unconditionally abandons local/backend work during task teardown. | |
详细描述
Narrow asynchronous pathfinding and locomotion provider contract. @thread Calls are simulation-thread-affine unless an implementation documents stronger guarantees. @reentrancy Implementations must not call back into NpcAiWorld or NavigationTaskService.
在文件 Navigation.h 第 50 行定义.
构造及析构函数说明
◆ ~INavigationProvider()
|
virtualdefault |
Releases INavigationProvider resources.
成员函数说明
◆ abandon()
|
pure virtualnoexcept |
Unconditionally abandons local/backend work during task teardown.
- 备注
- This is a noexcept lifecycle primitive rather than a fallible gameplay operation; after return the provider must never publish another result for the ticket.
◆ begin()
|
pure virtual |
Starts an owning backend request and returns its generation ticket.
◆ poll()
|
pure virtual |
Polls one ticket without blocking the simulation thread.
该类的文档由以下文件生成:
- src/modules/npc_ai/Navigation.h