Implement playable Mac client and rendering validation

This commit is contained in:
shen
2026-09-11 14:58:22 +08:00
parent 1ab68bd06e
commit 374d4165d8
233 changed files with 6546 additions and 284 deletions
+26
View File
@@ -5,6 +5,32 @@
#include <string>
int main() {
{
fmt::Msa effects;
std::string error;
if (!fmt::parse_msa(R"(MotionFileName "test.gr2"
Group MotionEventData
{
Group Event00
{
MotionEventType 1
StartingTime 0.25
EffectFileName "d:/ymir work/pc/test.mse"
AttachingBoneName "equip_right_hand"
AttachingEnable 1
FollowingEnable 1
IndependentFlag 1
EffectPosition 10 20 30
}
}
)", effects, &error) || effects.events.size() != 1 ||
!effects.events[0].attaching || !effects.events[0].following ||
!effects.events[0].independent || effects.events[0].attaching_bone != "equip_right_hand" ||
effects.events[0].position[2] != 30) {
std::fprintf(stderr, "effect attachment metadata lost\n");
return 1;
}
}
const std::string text = R"(
ScriptType MotionData
MotionFileName "d:/ymir work/pc/test.gr2"