载入中...
搜索中...
未找到
WorldInteraction.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
10#include "common/Result.h"
11
12#include <string>
13
14namespace eve::inventory {
15class Bag;
16}
17
18namespace eve::rpg {
19
20class GameState;
21class Tracker;
22
25 std::string mapId;
26 std::string objectId;
27 std::string requiredQuestId;
28 std::string itemId;
29 int itemQuantity = 0;
30 std::string attributeId;
31 double attributeAmount = 0.0;
32 std::string notifyTopic;
33 std::string notifyTarget;
34 int notifyAmount = 0;
35};
36
39public:
53 [[nodiscard]] static eve::Result<int> collectLoot(GameState &gameState, Tracker &tracker,
54 inventory::Bag &bag,
56};
57
58} // namespace eve::rpg
#define EVENGINE_API_PLATFORM
Definition Export.h:107
const GltfImportRequest & request
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
格子型物品容器(脚本可直接操作)。
Definition Bag.h:21
一份游戏状态(开关/变量/独立变量)。
Definition GameState.h:25
一份任务进度 + 本实例事件队列。
Definition Tracker.h:26
Product transaction boundary for persistent world-object rewards.
运行时容器:固定格数的背包 / 箱子 / 商店栏等。 行为由 InventorySystem 提供;本类暴露便于脚本绑定的薄封装方法。
RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。
Complete data needed to settle one persistent loot object.