// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "ResComState.generated.h" /** * */ UCLASS() class FORTIS_TAKTIKA_API UResComState : public UObject { GENERATED_BODY() protected: int32 state; public: UResComState() : state(none) {} UResComState(const int32& type) : state(type) {} virtual void operator=(const int32& newState) { state = newState; } const int32& GetInt() const { return state; } const int32& GetValue() const { return GetInt(); } bool operator==(const int32& stateIndex) { return this->state == stateIndex; } bool operator==(const UResComState& stateCompare) { return this->state == stateCompare.state; } // states static const int32 none = 0; static const int32 home = 1; };