The compiler is driving me nuts…I am trying to fix this error for hours now
#pragma once
#include "GameFramework/PlayerState.h"
#include "KaoriPlayerState.generated.h"
/**
*
*/
UCLASS()
class AKaoriPlayerState : public APlayerState
{
GENERATED_UCLASS_BODY()
protected:
AKaoriTeam *Team;
public:
UFUNCTION()
void SetTeam(AKaoriTeam *NewTeam);
UFUNCTION()
AKaoriTeam* GetTeam();
};
1> \KaoriPlayerState.h(18): error C2143: syntax error : missing ‘;’ before ‘’
1> \KaoriPlayerState.h(18): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1> \KaoriPlayerState.h(23): error C2061: syntax error : identifier ‘AKaoriTeam’
1> \KaoriPlayerState.h(26): error C2143: syntax error : missing ‘;’ before '’
Also if I include the header for the AKaoriTeam class the buildtool crashes
19>Error : Failed to generate code for KaoriEditor - error code: -1073741571