推
This commit is contained in:
41
source_game/Global/Script/TownConfig.h
Normal file
41
source_game/Global/Script/TownConfig.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
namespace GlobalTownScript
|
||||
{
|
||||
struct AreaConfig
|
||||
{
|
||||
/**地图路径 */
|
||||
std::string MapPath;
|
||||
/**地图类型 */
|
||||
std::string MapType;
|
||||
/**生成坐标X */
|
||||
int GenerateXPos = 0;
|
||||
/**生成坐标Y */
|
||||
int GenerateYPos = 0;
|
||||
};
|
||||
|
||||
/**城镇配置 */
|
||||
struct TownConfig
|
||||
{
|
||||
/**城镇名称 */
|
||||
std::string TownName;
|
||||
/**进入城镇时的标题Img */
|
||||
std::string Entering_Title;
|
||||
/**进入城镇时的过场Img */
|
||||
std::string Entering_Cutscene;
|
||||
/**需要的任务进入条件 */
|
||||
int NeedQuestID = -1;
|
||||
/**需要的等级进入条件 */
|
||||
int NeedLevel = -1;
|
||||
/**区域 */
|
||||
std::map<int, AreaConfig> AreaLst;
|
||||
};
|
||||
|
||||
// 读取城镇列表
|
||||
std::map<int, std::string> InitTownLst();
|
||||
|
||||
// 读取城镇配置
|
||||
TownConfig *GetTownConfig(std::string TownPath);
|
||||
}
|
||||
Reference in New Issue
Block a user