Add project files.

This commit is contained in:
Milxnor
2023-03-04 15:06:07 -05:00
commit 039731eb68
200 changed files with 32320 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#pragma once
#include "BuildingActor.h"
#include "PlayerState.h"
class ABuildingSMActor : public ABuildingActor
{
public:
bool IsPlayerPlaced()
{
return true; // FOR NOW
}
void SetPlayerPlaced(bool NewValue)
{
}
bool IsDestroyed()
{
return false; // FOR NOW
}
APlayerState*& GetEditingPlayer()
{
static auto EditingPlayerOffset = GetOffset("EditingPlayer");
return Get<APlayerState*>(EditingPlayerOffset);
}
int& GetCurrentBuildingLevel()
{
static auto CurrentBuildingLevelOffset = GetOffset("CurrentBuildingLevel");
return Get<int>(CurrentBuildingLevelOffset);
}
};