diff --git a/server/gameserver/creature.h b/server/gameserver/creature.h index a1287f4..e436d27 100644 --- a/server/gameserver/creature.h +++ b/server/gameserver/creature.h @@ -10,7 +10,7 @@ class Creature : public MoveableEntity public: HumanAbility ability; - + std::function on_move_collision; bool HasBuffEffect(int buff_effect_id); Buff* GetBuffByEffectId(int effect_id); diff --git a/server/gameserver/hero.h b/server/gameserver/hero.h index 0ff2d9c..4ef7881 100644 --- a/server/gameserver/hero.h +++ b/server/gameserver/hero.h @@ -21,7 +21,6 @@ public: bool shot_hold = false; int team_id = 0; a8::Vec2 attack_dir; - std::function on_move_collision; Hero(); virtual ~Hero() override; diff --git a/server/gameserver/human.h b/server/gameserver/human.h index db03ca8..7b3a08b 100644 --- a/server/gameserver/human.h +++ b/server/gameserver/human.h @@ -54,7 +54,6 @@ class Human : public Creature a8::Vec2 attack_dir; std::function on_loading_bullet; - std::function on_move_collision; std::string name; std::string avatar_url;