dl
dl::ModManager类 参考

模组管理器 更多...

#include <dl_mod.h>

Public 成员函数

void LoadMod (std::string_view path)
 加载模组
 
void LoadModAll (std::string_view path)
 
void CallLuaScript (std::string_view path_name)
 调用每个模组的lua脚本
 
std::string GetPathCurrentMod ()
 返回当前上下文的mod根路径
 
const std::vector< Mod > & GetAll ()
 

详细描述

模组管理器

在文件 dl_mod.h50 行定义.

成员函数说明

◆ CallLuaScript()

void dl::ModManager::CallLuaScript ( std::string_view path_name)

调用每个模组的lua脚本

◆ GetAll()

const std::vector< Mod > & dl::ModManager::GetAll ( )
inline

在文件 dl_mod.h75 行定义.

◆ GetPathCurrentMod()

std::string dl::ModManager::GetPathCurrentMod ( )
inline

返回当前上下文的mod根路径

在文件 dl_mod.h70 行定义.

◆ LoadMod()

void dl::ModManager::LoadMod ( std::string_view path)

加载模组

参数
[in]path路径
注解
无效会创建空Mod

◆ LoadModAll()

void dl::ModManager::LoadModAll ( std::string_view path)

该类的文档由以下文件生成: