载入中...
搜索中...
未找到
eve::npc_ai::INavigationProvider类 参考abstract

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()

virtual eve::npc_ai::INavigationProvider::~INavigationProvider ( )
virtualdefault

Releases INavigationProvider resources.

成员函数说明

◆ abandon()

virtual void eve::npc_ai::INavigationProvider::abandon ( NavigationTicket  ticket)
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()

virtual Result< NavigationTicket > eve::npc_ai::INavigationProvider::begin ( const NavigationRequest &  request)
pure virtual

Starts an owning backend request and returns its generation ticket.

◆ poll()

virtual Result< NavigationProgress > eve::npc_ai::INavigationProvider::poll ( NavigationTicket  ticket,
std::uint64_t  simulationTick 
)
pure virtual

Polls one ticket without blocking the simulation thread.


该类的文档由以下文件生成: