From f7a468abe9e0c87d799ae28ee4fee824ee346f2b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 18 Mar 2021 11:23:28 +0800 Subject: [PATCH] 1 --- server/gameserver/creature.h | 2 +- server/gameserver/hero.h | 1 - server/gameserver/human.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) 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;