mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 16:12:23 -07:00
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
#include "CogSamplePlayerController.h"
|
|
|
|
#include "CogDefines.h"
|
|
#include "CogSampleCharacter.h"
|
|
#include "Net/UnrealNetwork.h"
|
|
|
|
#if USE_COG
|
|
#include "CogAbilityReplicator.h"
|
|
#include "CogDebugDefines.h"
|
|
#include "CogDebugReplicator.h"
|
|
#include "CogEngineReplicator.h"
|
|
#endif //USE_COG
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------------------------------
|
|
ACogSamplePlayerController::ACogSamplePlayerController()
|
|
{
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------------------------------
|
|
void ACogSamplePlayerController::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
#if USE_COG
|
|
ACogDebugReplicator::Create(this);
|
|
ACogAbilityReplicator::Create(this);
|
|
ACogEngineReplicator::Create(this);
|
|
#endif //USE_COG
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------------------------------
|
|
void ACogSamplePlayerController::AcknowledgePossession(APawn* P)
|
|
{
|
|
Super::AcknowledgePossession(P);
|
|
|
|
if (ACogSampleCharacter* PossessedCharacter = Cast<ACogSampleCharacter>(P))
|
|
{
|
|
PossessedCharacter->OnAcknowledgePossession(this);
|
|
}
|
|
} |