Added Script files for Avant Gardens Buff Station

This commit is contained in:
EmosewaMC 2022-01-20 03:20:39 -08:00
parent 2a5f3b8072
commit 15831e8d6c
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#include "AgSurvivalBuffStation.h"
#include "SkillComponent.h"
#include "dLogger.h"
void AgSurvivalBuffStation::OnStartup(Entity* self) {
Game::logger->Log("AgSurvivalBuffStation", "Spawning survival buff station!\n");
}
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
auto skillComponent = self->GetComponent<SkillComponent>();
if (skillComponent == nullptr) return;
skillComponent->CalculateBehavior(201, 1784, self->GetObjectID());
}

View File

@ -0,0 +1,9 @@
#pragma once
#include "CppScripts.h"
class AgSurvivalBuffStation : public CppScripts::Script
{
public:
void OnStartup(Entity* self) override;
void OnRebuildComplete(Entity* self, Entity* target) override;
};