Files
dl_old/dl/system/dl_engine.h
T
2025-09-20 17:51:25 +08:00

46 lines
789 B
C++

/**
* @file dl_engine.h
* @brief dl引擎组件
*
*
* @version 1.0
* @author lveyou
* @date 23-07-31
*/
#pragma once
#include <string>
namespace dl
{
//! 引擎配置
class Engine
{
public:
//! 选择性初始化组件
struct Param
{
bool _setConsoleUtf8 = true;
bool _showInfo = true;
bool _useTime = true;
bool _useFreetype = true;
bool _useNet = true;
bool _useAction = true;
bool _usePhysics = true;
bool _useAudio = true;
bool _useScene = true;
bool _useHttp = true;
bool _useLanguage = true;
bool _useMidi = true;
bool _useAngelScript = true;
bool _useLua = true;
std::string _projectName = "project"; // 项目
};
static void Init();
static void Release();
static Param& GetParamRef() { return _param; }
private:
static Param _param;
};
}