diff --git a/server/gameserver/hero.cc b/server/gameserver/hero.cc index 249be5ea..16916af5 100644 --- a/server/gameserver/hero.cc +++ b/server/gameserver/hero.cc @@ -401,3 +401,13 @@ void Hero::DropItems(Obstacle* obstacle) room->ScatterDrop(obstacle->GetPos().ToGlmVec3(), drop_id); } } + +void Hero::Active() +{ + +} + +void Hero::Deactive() +{ + +} diff --git a/server/gameserver/hero.h b/server/gameserver/hero.h index 28fab48e..213876ab 100644 --- a/server/gameserver/hero.h +++ b/server/gameserver/hero.h @@ -41,6 +41,8 @@ public: virtual void OnBattleStart(Room* room) override; void Destory(); void BeKill(int killer_id, const std::string& killer_name, int weapon_id); + void Active(); + void Deactive(); protected: virtual void UpdateMove() override; diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 225ab7b5..b37bdeb8 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -625,6 +625,9 @@ void Human::OnGridListChange(std::set& old_grids, if (IsPlayer() && on_grid_chg) { on_grid_chg(this); } + if (HasObserver()) { + + } } void Human::SyncAroundPlayers(const char* file, int line, const char* func)