载入中...
搜索中...
未找到
掉落表:按概率或权重随机掉落物品到背包。 更多...
#include "common/Export.h"#include "common/Result.h"#include <cstdint>#include <random>#include <string>#include <vector>类 | |
| struct | eve::rpg::LootEntry |
| 掉落表里的一条掉落。 更多... | |
| struct | eve::rpg::LootTableDefinition |
| 掉落表定义。 更多... | |
| struct | eve::rpg::LootRollRequest |
| Optional modifiers for a single loot roll. 更多... | |
| class | eve::rpg::LootSystem |
| 掉落系统:进程级掉落表 + 随机 roll 入包。 @thread 在 Bag 与注册表的 owning simulation thread 执行,不支持并发修改。 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::inventory |
| 运行时容器:固定格数的背包 / 箱子 / 商店栏等。 行为由 InventorySystem 提供;本类暴露便于脚本绑定的薄封装方法。 | |
| namespace | eve::rpg |
| RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。 | |
枚举 | |
| enum class | eve::rpg::LootSelectMode { eve::rpg::Independent , eve::rpg::Weighted } |
| How a loot table chooses among its entries. 更多... | |
详细描述
掉落表:按概率或权重随机掉落物品到背包。
掉落表是进程级定义(JSON/C++ 注册)。roll 用注入的随机数流判定, 命中则按 [minQty, maxQty] 随机数量整批加入 inventory::Bag。引擎不解释掉落语义。
在文件 LootSystem.h 中定义.