function rename

This commit is contained in:
jadebenn 2023-12-13 01:06:58 -06:00
parent 775e4fee9e
commit 2a4cfe3447
3 changed files with 4 additions and 4 deletions

View File

@ -896,12 +896,12 @@ void PetComponent::OnInteract() {
switch (GetInteractType()) { switch (GetInteractType()) {
case PetInteractType::bouncer: case PetInteractType::bouncer:
if (GetIsReadyToInteract()) LOG_DEBUG("Add the HandleInteractBouncer()!"); if (IsReadyToInteract()) LOG_DEBUG("Add the HandleInteractBouncer()!");
else SetupInteractBouncer(); else SetupInteractBouncer();
break; break;
case PetInteractType::treasure: case PetInteractType::treasure:
if (GetIsReadyToInteract()) HandleInteractTreasureDig(); if (IsReadyToInteract()) HandleInteractTreasureDig();
else SetupInteractTreasureDig(); else SetupInteractTreasureDig();
break; break;

View File

@ -272,7 +272,7 @@ public:
/** /**
* @return is pet ready to interact with an object * @return is pet ready to interact with an object
*/ */
bool GetIsReadyToInteract() { return m_ReadyToInteract; }; bool IsReadyToInteract() { return m_ReadyToInteract; };
/** /**
* Set up the pet bouncer interaction * Set up the pet bouncer interaction

View File

@ -108,7 +108,7 @@ void PetDigServer::OnUse(Entity* self, Entity* user) {
auto* petComponent = PetComponent::GetActivePet(user->GetObjectID()); auto* petComponent = PetComponent::GetActivePet(user->GetObjectID());
if (!petComponent) return; if (!petComponent) return;
if(petComponent->GetIsReadyToInteract()) { // TODO: Add handling of the "first time" dig message if(petComponent->IsReadyToInteract()) { // TODO: Add handling of the "first time" dig message
auto* destroyableComponent = user->GetComponent<DestroyableComponent>(); auto* destroyableComponent = user->GetComponent<DestroyableComponent>();
if (!destroyableComponent) return; if (!destroyableComponent) return;