LEAP Documentation 40220
Documentation for the LEAP project
TeamInterface.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/Interface.h"
7#include "TeamInterface.generated.h"
8
9UENUM(Blueprintable)
10enum class ETeamRole : uint8
11{
12 NONE = 0,
13 Ally = 1,
14 Enemy = 2,
15 Squadmate = 3
16};
17
18UINTERFACE(BlueprintType, meta = (CannotImplementInterfaceInBlueprint))
19class UTeamInterface : public UInterface
20{
21 GENERATED_UINTERFACE_BODY()
22};
23
24
25class PROJECTX_API ITeamInterface
26{
27 GENERATED_IINTERFACE_BODY()
28
29public:
30 UFUNCTION(BlueprintCallable)
31 virtual int32 GetTeam() const { return UINT8_MAX; }
32 UFUNCTION(BlueprintCallable)
33 virtual int32 SetTeam(int32 NewTeam) { return NewTeam; }
34 static bool IsValidTeam(const ITeamInterface* const TeamInferface);
35};
ETeamRole
Definition: TeamInterface.h:11
Definition: TeamInterface.h:26
Definition: TeamInterface.h:20