UnrealFightingFramework/Source/UnrealFightingEngine/IFESystemInterface.h

35 lines
891 B
C
Raw Normal View History

2023-06-03 22:38:35 +00:00
// Unreal Fighting Engine by Kevin Poretti
#pragma once
#include "CoreMinimal.h"
#include "UObject/Interface.h"
2023-06-05 20:17:36 +00:00
#include "IFESystemInterface.generated.h"
// This class does not need to be modified.
UINTERFACE(MinimalAPI)
class UFESystemInterface : public UInterface
{
GENERATED_BODY()
};
/**
* This interface defines functions that need to be implemented for any objects that are "gameplay affecting".
*
* This ensures all gameplay effecting objects can be assumed to have certain properties that enable serialization, networking and
* some form of determinism.
*/
class UNREALFIGHTINGENGINE_API IFESystemInterface
{
GENERATED_BODY()
public:
/**
* Function to be called at a fixed interval/frame rate rather than using Unreal's variable Tick function
*
* @param OneFrame the time that elapses during one fixed tick
*/
2023-06-03 22:38:35 +00:00
virtual void FixedTick(float OneFrame) = 0;
};