Implement playable Mac client and rendering validation
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user