1
This commit is contained in:
parent
a52e40665a
commit
f1f422f11a
@ -89,6 +89,17 @@ static bool LoadNormalHeroAnimi(const std::string key,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool LoadOtherHeroAnimi(const std::string key,
|
||||||
|
std::shared_ptr<a8::XObject> anim_xobj,
|
||||||
|
mt::HeroShotAnimation& anim)
|
||||||
|
{
|
||||||
|
std::string id_str;
|
||||||
|
a8::ReplaceString(id_str, key, "other");
|
||||||
|
int id = a8::XValue(id_str);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
namespace mt
|
namespace mt
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -316,8 +327,13 @@ namespace mt
|
|||||||
mt::Hero* mut_hero_meta = (mt::Hero*)hero_meta;
|
mt::Hero* mut_hero_meta = (mt::Hero*)hero_meta;
|
||||||
{
|
{
|
||||||
mt::HeroShotAnimation anim;
|
mt::HeroShotAnimation anim;
|
||||||
LoadNormalHeroAnimi(key2, anim_xobj, anim);
|
if (key2.find("other") == std::string::npos) {
|
||||||
mut_hero_meta->shot_animations[anim.id] = anim;
|
LoadNormalHeroAnimi(key2, anim_xobj, anim);
|
||||||
|
mut_hero_meta->shot_animations[anim.id] = anim;
|
||||||
|
} else {
|
||||||
|
LoadOtherHeroAnimi(key2, anim_xobj, anim);
|
||||||
|
mut_hero_meta->other_shot_animations[anim.id] = anim;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user