feat(npc): 添加NPC数据加载、动画和对象功能
实现NPC系统的核心功能,包括: 1. 新增NpcDataLoader用于加载NPC索引和配置数据 2. 添加NpcAnimation处理NPC动画显示 3. 创建NpcObject实现NPC交互和显示逻辑 4. 在GameMapTestScene中集成测试NPC功能
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "camera/GameCameraController.h"
|
||||
#include "character/CharacterObject.h"
|
||||
#include "map/GameMap.h"
|
||||
#include "npc/NpcObject.h"
|
||||
#include "scene/GameDebugUIScene.h"
|
||||
#include <frostbite2D/scene/scene.h>
|
||||
|
||||
@@ -20,6 +21,7 @@ public:
|
||||
private:
|
||||
GameCameraController cameraController_;
|
||||
RefPtr<CharacterObject> character_;
|
||||
RefPtr<NpcObject> npc_;
|
||||
RefPtr<GameDebugUIScene> debugScene_;
|
||||
bool initialized_ = false;
|
||||
RefPtr<GameMap> map_;
|
||||
|
||||
Reference in New Issue
Block a user