This commit is contained in:
2026-02-08 16:20:50 +08:00
parent 0ae47e5d6a
commit 8b88904ef7
72 changed files with 5963 additions and 2038 deletions

View File

@@ -9,12 +9,14 @@ class GameMapLayer : public Actor
private:
// 可行区域信息
std::vector<SDL_Rect> FeasibleAreaInfoList;
// 移动区域信息
std::vector<SDL_Rect> MoveAreaInfoList;
public:
// 重载Render以实现绘制可行区域
// 重载OnRender以实现绘制可行区域
void Render() override;
// 添加调试可行区域信息
void AddDebugFeasibleAreaInfo(Vec2 pos, VecSize size);
void AddDebugFeasibleAreaInfo(Vec2 pos, VecSize size, int Type);
public:
void AddObject(RefPtr<Actor> obj); // 添加对象