mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 04:37:16 +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:
1 parent
b1c4e7c23f
commit
1d06a4117a
7 files changed
+74
-21
No files matched your search
+8
-8
@@ -243,24 +243,24 @@ void Lua_Mob::SetHP(int64 hp) {
|
||||
self->SetHP(hp);
|
||||
}
|
||||
|
||||
void Lua_Mob::DoAnim(int anim_num) {
|
||||
void Lua_Mob::DoAnim(int animation_id) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->DoAnim(anim_num);
|
||||
self->DoAnim(animation_id);
|
||||
}
|
||||
|
||||
void Lua_Mob::DoAnim(int anim_num, int type) {
|
||||
void Lua_Mob::DoAnim(int animation_id, int animation_speed) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->DoAnim(anim_num, type);
|
||||
self->DoAnim(animation_id, animation_speed);
|
||||
}
|
||||
|
||||
void Lua_Mob::DoAnim(int anim_num, int type, bool ackreq) {
|
||||
void Lua_Mob::DoAnim(int animation_id, int animation_speed, bool ackreq) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->DoAnim(anim_num, type, ackreq);
|
||||
self->DoAnim(animation_id, animation_speed, ackreq);
|
||||
}
|
||||
|
||||
void Lua_Mob::DoAnim(int anim_num, int type, bool ackreq, int filter) {
|
||||
void Lua_Mob::DoAnim(int animation_id, int animation_speed, bool ackreq, int filter) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->DoAnim(anim_num, type, ackreq, static_cast<eqFilterType>(filter));
|
||||
self->DoAnim(animation_id, animation_speed, ackreq, static_cast<eqFilterType>(filter));
|
||||
}
|
||||
|
||||
void Lua_Mob::ChangeSize(double in_size) {
|
||||
|
||||
Reference in new issue
Block a user