mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
[Quest API] Add DoAnim Overloads to Perl/Lua. (#2627)
# Perl - Add `$mob->DoAnim(animation_id, animation_speed, ackreq)`. - Add `$mob->DoAnim(animation_id, animation_speed, ackreq, filter)`. - Add `quest::doanim(animation_id, animation_speed)`. - Add `quest::doanim(animation_id, animation_speed, ackreq)`. - Add `quest::doanim(animation_id, animation_speed, ackreq, filter)`. # Lua - Add `eq.do_anim(animation_id)`. - Add `eq.do_anim(animation_id, animation_speed)`. - Add `eq.do_anim(animation_id, animation_speed, ackreq)`. - Add `eq.do_anim(animation_id, animation_speed, ackreq, filter)`. # Notes - Adds overloads and cleans up spots where `animation_speed` was named `type` erroneously.
This commit is contained in:
+16
-4
@@ -257,14 +257,24 @@ void Perl_Mob_SetHP(Mob* self, int64_t hp) // @categories Stats and Attributes
|
||||
self->SetHP(hp);
|
||||
}
|
||||
|
||||
void Perl_Mob_DoAnim(Mob* self, int anim_num) // @categories Script Utility
|
||||
void Perl_Mob_DoAnim(Mob* self, int animation_id) // @categories Script Utility
|
||||
{
|
||||
self->DoAnim(anim_num);
|
||||
self->DoAnim(animation_id);
|
||||
}
|
||||
|
||||
void Perl_Mob_DoAnim(Mob* self, int anim_num, int type) // @categories Script Utility
|
||||
void Perl_Mob_DoAnim(Mob* self, int animation_id, int animation_speed) // @categories Script Utility
|
||||
{
|
||||
self->DoAnim(anim_num, type);
|
||||
self->DoAnim(animation_id, animation_speed);
|
||||
}
|
||||
|
||||
void Perl_Mob_DoAnim(Mob* self, int animation_id, int animation_speed, bool ackreq) // @categories Script Utility
|
||||
{
|
||||
self->DoAnim(animation_id, animation_speed, ackreq);
|
||||
}
|
||||
|
||||
void Perl_Mob_DoAnim(Mob* self, int animation_id, int animation_speed, bool ackreq, int filter) // @categories Script Utility
|
||||
{
|
||||
self->DoAnim(animation_id, animation_speed, ackreq, static_cast<eqFilterType>(filter));
|
||||
}
|
||||
|
||||
void Perl_Mob_ChangeSize(Mob* self, float in_size) // @categories Script Utility
|
||||
@@ -2881,6 +2891,8 @@ void perl_register_mob()
|
||||
package.add("DivineAura", &Perl_Mob_DivineAura);
|
||||
package.add("DoAnim", (void(*)(Mob*, int))&Perl_Mob_DoAnim);
|
||||
package.add("DoAnim", (void(*)(Mob*, int, int))&Perl_Mob_DoAnim);
|
||||
package.add("DoAnim", (void(*)(Mob*, int, int, bool))&Perl_Mob_DoAnim);
|
||||
package.add("DoAnim", (void(*)(Mob*, int, int, bool, int))&Perl_Mob_DoAnim);
|
||||
package.add("DoArcheryAttackDmg", &Perl_Mob_DoArcheryAttackDmg);
|
||||
package.add("DoKnockback", &Perl_Mob_DoKnockback);
|
||||
package.add("DoMeleeSkillAttackDmg", &Perl_Mob_DoMeleeSkillAttackDmg);
|
||||
|
||||
Reference in New Issue
Block a user