mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-26 13:13:50 +00:00
fix: silence all -Wunused-parameter warnings in entity_controller
Suppress 9 unused parameter warnings in IObjectTypeHandler interface methods and their overrides by commenting out parameter names: - Base class: onCreate/onValuesUpdate/onMovementUpdate default empty implementations (parameters intentionally unused in base) - ItemTypeHandler::onCreate: entity param forwarded only to onCreateItem which doesn't need it - CorpseTypeHandler::onCreate: entity param not needed for corpse spawn Build now produces zero warnings (excluding third-party stb headers).
This commit is contained in:
parent
32bb0becc8
commit
11561184e6
2 changed files with 6 additions and 6 deletions
|
|
@ -236,10 +236,10 @@ private:
|
|||
// Allows extending object-type handling without modifying handler dispatch.
|
||||
struct IObjectTypeHandler {
|
||||
virtual ~IObjectTypeHandler() = default;
|
||||
virtual void onCreate(const UpdateBlock& block, std::shared_ptr<Entity>& entity,
|
||||
bool& newItemCreated) {}
|
||||
virtual void onValuesUpdate(const UpdateBlock& block, std::shared_ptr<Entity>& entity) {}
|
||||
virtual void onMovementUpdate(const UpdateBlock& block, std::shared_ptr<Entity>& entity) {}
|
||||
virtual void onCreate(const UpdateBlock& /*block*/, std::shared_ptr<Entity>& /*entity*/,
|
||||
bool& /*newItemCreated*/) {}
|
||||
virtual void onValuesUpdate(const UpdateBlock& /*block*/, std::shared_ptr<Entity>& /*entity*/) {}
|
||||
virtual void onMovementUpdate(const UpdateBlock& /*block*/, std::shared_ptr<Entity>& /*entity*/) {}
|
||||
};
|
||||
struct UnitTypeHandler;
|
||||
struct PlayerTypeHandler;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue