mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 06:57:28 +00:00
15954413ae
* rename rebuild to quickbuild * fix includes
17 lines
439 B
C++
17 lines
439 B
C++
#include "ImaginationShrineServer.h"
|
|
#include "QuickBuildComponent.h"
|
|
|
|
void ImaginationShrineServer::OnUse(Entity* self, Entity* user) {
|
|
// If the rebuild component is complete, use the shrine
|
|
auto* quickBuildComponent = self->GetComponent<QuickBuildComponent>();
|
|
|
|
if (quickBuildComponent == nullptr) {
|
|
return;
|
|
}
|
|
|
|
if (quickBuildComponent->GetState() == eQuickBuildState::COMPLETED) {
|
|
// Use the shrine
|
|
BaseUse(self, user);
|
|
}
|
|
}
|