| 10 | //-------------------------------------------------------------------------------------------------------------------------- |
| 11 | UCLASS(config=Game) |
| 12 | class ACogSampleBasicActor : public AActor |
| 13 | , public ICogSampleProgressionLevelInterface |
| 14 | , public ICogSampleSpawnableInterface |
| 15 | , public ICogSampleTeamInterface |
| 16 | { |
| 17 | GENERATED_BODY() |
| 18 | |
| 19 | public: |
| 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 | |
| 43 | protected: |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected