载入中...
搜索中...
未找到
ClassSystem.h
浏览该文件的文档.
1#pragma once
2
11#include <string>
12
13#include "common/Export.h"
14
15namespace eve::rpg {
16
17class RPGActor;
18
24public:
29 static bool setClass(RPGActor *actor, const std::string &classId);
31 static std::string getClassId(RPGActor *actor);
33 static bool hasClass(RPGActor *actor, const std::string &classId);
34
39 static int checkLevelSkills(RPGActor *actor);
40
42 static int getLearnCount(RPGActor *actor);
44 static std::string getLearnSkillIdAt(RPGActor *actor, int index);
46 static int getLearnLevelAt(RPGActor *actor, int index);
47};
48
49} // namespace eve::rpg
#define EVENGINE_API_PLATFORM
Definition Export.h:107
std::uint32_t classId
uint32_t index
职业系统。 @thread 调用线程应与 RPGActor 的 ECS 线程一致。
Definition ClassSystem.h:23
属性 / 状态 / 技能三表合一的 ECS 实体。
Definition RPGActor.h:34
RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。