--------------------------------------------------------------------------------------------------------------------------
| 5 | |
| 6 | //-------------------------------------------------------------------------------------------------------------------------- |
| 7 | int32 UCogSampleFunctionLibrary_Team::GetTeam(const AActor* Actor) |
| 8 | { |
| 9 | if (Actor == nullptr) |
| 10 | { |
| 11 | return 0; |
| 12 | } |
| 13 | |
| 14 | const ICogSampleTeamInterface* TeamActor = Cast<ICogSampleTeamInterface>(Actor); |
| 15 | if (TeamActor == nullptr) |
| 16 | { |
| 17 | return 0; |
| 18 | } |
| 19 | |
| 20 | const int32 Team = TeamActor->GetTeam(); |
| 21 | return Team; |
| 22 | } |
| 23 | |
| 24 | //-------------------------------------------------------------------------------------------------------------------------- |
| 25 | void UCogSampleFunctionLibrary_Team::SetTeam(AActor* Actor, int32 Value) |