- item_tooltip_view.gd: 新增 avoid_rect 属性,tooltip 与装备窗口重叠时自动推到左侧 - inventory_ui.gd: 悬停装备时传入窗口矩形作为避让区域 - 包含其他累积的功能开发和测试文件
28 lines
879 B
C++
28 lines
879 B
C++
// .msm —— Metin2 种族/模型描述(文本,ScriptType RaceDataScript)。M2 T1。
|
||
// 照 RaceManager.cpp CRaceData::LoadRaceData。
|
||
#pragma once
|
||
#include <string>
|
||
#include <vector>
|
||
|
||
namespace fmt {
|
||
|
||
struct HairEntry {
|
||
int index = 0;
|
||
std::string model; // gr2(相对 PathName)
|
||
std::string source_skin;
|
||
std::string target_skin;
|
||
};
|
||
|
||
struct Msm {
|
||
std::string base_model_gr2; // BaseModelFileName
|
||
std::string motion_list_file; // MotionListFileName
|
||
std::string hair_path; // HairData.PathName
|
||
std::vector<HairEntry> hairs;
|
||
// 武器 / 时装挂点 / 材质类型按需补(PoC 先到发型 + base)
|
||
};
|
||
|
||
bool parse_msm(const std::string& text, Msm& out, std::string* err);
|
||
bool parse_msm_file(const std::string& path, Msm& out, std::string* err);
|
||
|
||
} // namespace fmt
|