Advertisement
Guest User

Untitled

a guest
Jun 28th, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "GameFramework/PlayerController.h"
  7. #include "PongGameplayController.generated.h"
  8.  
  9. /**
  10.  *
  11.  */
  12. UCLASS()
  13. class PONGONLINE_API APongGameplayController : public APlayerController
  14. {
  15.     GENERATED_BODY()
  16.  
  17.     UPROPERTY(ReplicatedUsing=OnRep_ViewTarget, EditDefaultsOnly)
  18.     AActor* ViewTarget;
  19.  
  20.     UFUNCTION()
  21.     void OnRep_ViewTarget();
  22.  
  23. protected:
  24.     void BeginPlay() override; 
  25.  
  26. public:
  27.     APongGameplayController(const FObjectInitializer& ObjectInitializer);
  28.  
  29.     //Method used to set up the required network scaffolding
  30.     void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
  31.    
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement