载入中...
搜索中...
未找到
eve::vehicle::IVehicleDriver类 参考abstract
驾驶者:把某乘客的控制转成载具输入。 更多...
#include <VehicleDriver.h>
Public 成员函数 | |
| virtual | ~IVehicleDriver ()=default |
| Releases IVehicleDriver resources. | |
| virtual const char * | name () const =0 |
| 稳定名字("player" 等)。 | |
| virtual bool | sample (VehicleEntity &v, int occupantId, VehicleInput &out)=0 |
| 采样 occupantId 乘客的控制;返回是否有效(有效则填充 out)。 | |
详细描述
驾驶者:把某乘客的控制转成载具输入。
在文件 VehicleDriver.h 第 29 行定义.
构造及析构函数说明
◆ ~IVehicleDriver()
|
virtualdefault |
Releases IVehicleDriver resources.
成员函数说明
◆ name()
|
pure virtual |
稳定名字("player" 等)。
- 返回
- Borrowed non-null pointer to immutable provider-owned/static text. @ownership The driver implementation owns the storage; callers must not free it. @lifetime Valid while the driver implementation is registered; copy the text if retaining it. @thread Query on the registry/vehicle thread unless the implementation documents a broader guarantee. @reentrancy This accessor must not invoke callbacks or mutate the registry.
◆ sample()
|
pure virtual |
采样 occupantId 乘客的控制;返回是否有效(有效则填充 out)。
该类的文档由以下文件生成:
- src/modules/vehicle/VehicleDriver.h