This commit is contained in:
aozhiwei 2023-05-26 20:27:24 +08:00
parent 3d0e7cc1bd
commit c4d77c2ca0
3 changed files with 15 additions and 0 deletions

View File

@ -401,3 +401,13 @@ void Hero::DropItems(Obstacle* obstacle)
room->ScatterDrop(obstacle->GetPos().ToGlmVec3(), drop_id);
}
}
void Hero::Active()
{
}
void Hero::Deactive()
{
}

View File

@ -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;

View File

@ -625,6 +625,9 @@ void Human::OnGridListChange(std::set<GridCell*>& old_grids,
if (IsPlayer() && on_grid_chg) {
on_grid_chg(this);
}
if (HasObserver()) {
}
}
void Human::SyncAroundPlayers(const char* file, int line, const char* func)