Files
mtgodot-poc/formats/msm.h
T
shenandshen c93894313a fix: 装备属性面板避让逻辑 + 多项功能更新
- item_tooltip_view.gd: 新增 avoid_rect 属性,tooltip 与装备窗口重叠时自动推到左侧
- inventory_ui.gd: 悬停装备时传入窗口矩形作为避让区域
- 包含其他累积的功能开发和测试文件
2026-09-21 16:38:59 -07:00

28 lines
879 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// .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