| 656 | namespace |
| 657 | { |
| 658 | FString ExtractActorId(AActor* A) |
| 659 | { |
| 660 | if (!A) |
| 661 | return FString(); |
| 662 | if (AMjArticulation* Mj = Cast<AMjArticulation>(A)) |
| 663 | { |
| 664 | if (!Mj->ActorId.IsEmpty()) |
| 665 | return Mj->ActorId; |
| 666 | } |
| 667 | for (const FName& Tag : A->Tags) |
| 668 | { |
| 669 | FString S = Tag.ToString(); |
| 670 | if (S.StartsWith(kActorIdTagPrefix)) |
| 671 | { |
| 672 | return S.RightChop(FCString::Strlen(kActorIdTagPrefix)); |
| 673 | } |
| 674 | } |
| 675 | return FString(); |
| 676 | } |
| 677 | |
| 678 | bool ShouldListActor(AActor* A) |
| 679 | { |
no test coverage detected