mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Add project files.
This commit is contained in:
35
Project Reboot 3.0/BuildingSMActor.h
Normal file
35
Project Reboot 3.0/BuildingSMActor.h
Normal 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);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user