载入中...
搜索中...
未找到
Adapter that copies sensing PerceptionFact into npc_ai PerceptionMemory. 更多...
#include "npc_ai/NpcAi.h"#include "sensing/Sensing.h"#include <cmath>#include <cstdint>#include <span>#include <sstream>#include <string>#include <string_view>#include <vector>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::npc_ai |
函数 | |
| PerceptionMemory | eve::npc_ai::perceptionMemoryFrom (const eve::sensing::PerceptionFact &fact, std::uint64_t observedTick, std::uint64_t forgetAfterTicks, std::string_view sense="sensing.query") |
| Builds one PerceptionMemory from a neutral sensing fact. | |
| std::vector< PerceptionMemory > | eve::npc_ai::perceptionMemoriesFrom (std::span< const eve::sensing::PerceptionFact > facts, std::uint64_t observedTick, std::uint64_t forgetAfterTicks, std::string_view sense="sensing.query") |
| Projects a sequence of sensing facts into npc_ai perception memories. | |
详细描述
Adapter that copies sensing PerceptionFact into npc_ai PerceptionMemory.
Sensing never depends on npc_ai. Gameplay / AI owners call these helpers after a SensingWorld query to write adapter-owned memory. Threat / primary selection stay outside both modules.
在文件 SensingPerception.h 中定义.