MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / ACogSampleBasicActor

Class ACogSampleBasicActor

Source/CogSample/CogSampleBasicActor.h:12–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10//--------------------------------------------------------------------------------------------------------------------------
11UCLASS(config=Game)
12class ACogSampleBasicActor : public AActor
13 , public ICogSampleProgressionLevelInterface
14 , public ICogSampleSpawnableInterface
15 , public ICogSampleTeamInterface
16{
17 GENERATED_BODY()
18
19public:
20
21 ACogSampleBasicActor(const FObjectInitializer& ObjectInitializer);
22
23 virtual void BeginPlay();
24
25 UFUNCTION(BlueprintPure)
26 virtual int32 GetTeam() const override { return Team; }
27
28 UFUNCTION(BlueprintCallable)
29 virtual void SetTeam(int32 Value) override;
30
31 UFUNCTION(BlueprintPure)
32 virtual int32 GetProgressionLevel() const override { return ProgressionLevel; }
33
34 UFUNCTION(BlueprintCallable)
35 virtual void SetProgressionLevel(int32 Value) override;
36
37 UFUNCTION(BlueprintPure)
38 virtual AActor* GetCreator() const override { return Creator.Get(); }
39
40 UFUNCTION(BlueprintCallable)
41 virtual void SetCreator(AActor* Value) override;
42
43protected:
44
45 UPROPERTY(Replicated, EditAnywhere, BlueprintReadOnly, Category = Team, meta = (AllowPrivateAccess, ExposeOnSpawn))
46 int32 Team = 0;
47
48 UPROPERTY(Replicated, EditAnywhere, BlueprintReadOnly, Category = Team, meta = (AllowPrivateAccess, ExposeOnSpawn))
49 int32 ProgressionLevel = 0;
50
51 UPROPERTY(Replicated, EditAnywhere, BlueprintReadOnly, Category = Team, meta = (AllowPrivateAccess, ExposeOnSpawn))
52 TWeakObjectPtr<AActor> Creator = nullptr;
53};
54

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected