ffffffuuuuuuuuuu
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "ResComPlayerStateManager.h"
|
||||
|
||||
void AResComPlayerStateManager::SetState(const TEnumAsByte<Enum_PlayerState> newState)
|
||||
{
|
||||
if (stateManager.SetState(newState))
|
||||
OnState(newState);
|
||||
}
|
||||
|
||||
void AResComPlayerStateManager::ClearAllStatesBesideLast()
|
||||
{
|
||||
stateManager.ClearAllStatesBesideLast();
|
||||
}
|
||||
|
||||
void AResComPlayerStateManager::SetPreviousState()
|
||||
{
|
||||
if (stateManager.SetPrevState())
|
||||
OnState(stateManager.GetState());
|
||||
}
|
||||
|
||||
const FString AResComPlayerStateManager::GetStateHistoryAsString() const
|
||||
{
|
||||
FString string;
|
||||
FString arrow("->");
|
||||
auto history = stateManager.GetHistory();
|
||||
for (auto item : history)
|
||||
string += arrow + (*UEnum::GetDisplayValueAsText(item).ToString());
|
||||
return string;
|
||||
}
|
||||
|
||||
const TEnumAsByte<Enum_PlayerState> AResComPlayerStateManager::GetState() const
|
||||
{
|
||||
return stateManager.GetState();
|
||||
}
|
||||
Reference in New Issue
Block a user