Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "CoreMinimal.h"
- #include "GameFramework/PlayerController.h"
- #include "PongGameplayController.generated.h"
- /**
- *
- */
- UCLASS()
- class PONGONLINE_API APongGameplayController : public APlayerController
- {
- GENERATED_BODY()
- UPROPERTY(ReplicatedUsing=OnRep_ViewTarget, EditDefaultsOnly)
- AActor* ViewTarget;
- UFUNCTION()
- void OnRep_ViewTarget();
- protected:
- void BeginPlay() override;
- public:
- APongGameplayController(const FObjectInitializer& ObjectInitializer);
- //Method used to set up the required network scaffolding
- void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement