feat: 添加任务系统并实现异步资源加载功能
添加任务系统(TaskSystem)支持多线程任务处理和主线程回调 扩展Actor类添加更新监听器功能 新增GameWorld和GameTown场景类 添加多种混合模式(BlendMode)支持 实现异步资源加载界面和流程
This commit is contained in:
18
Game/include/Actor/GameWorld.h
Normal file
18
Game/include/Actor/GameWorld.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#include <frostbite2D/scene/scene.h>
|
||||
#include <map>
|
||||
#include "GameTown.h"
|
||||
|
||||
namespace frostbite2D {
|
||||
class GameWorld : public Scene {
|
||||
private:
|
||||
/**城镇Map */
|
||||
std::map<int, RefPtr<GameTown>> m_TownMap;
|
||||
|
||||
|
||||
public:
|
||||
GameWorld();
|
||||
~GameWorld();
|
||||
};
|
||||
|
||||
} // namespace frostbite2D
|
||||
Reference in New Issue
Block a user