Program Listing for File ZagalaSpecExamplesCounter.h#
↰ Return to documentation for file (ZagalaSpecExamples/Public/Counter/SUT/ZagalaSpecExamplesCounter.h)
// Copyright (c) 2026, Zagala Game Solutions. All rights reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "ZagalaSpecExamplesCounter.generated.h"
DECLARE_LOG_CATEGORY_EXTERN(LogZagalaSpecExamplesCounter, Log, All);
UCLASS()
class ZAGALASPECEXAMPLES_API UZagalaSpecExamplesCounter : public UObject
{
GENERATED_BODY()
public:
UZagalaSpecExamplesCounter(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
bool Increment(int32 Amount);
void Reset();
int32 GetValue() const;
bool GetLastOperationSucceeded() const;
private:
int32 Value;
bool bLastOperationSucceeded;
};