| 271 | } |
| 272 | |
| 273 | FString GetUE(const TArray<const UField*> AllTypes) |
| 274 | { |
| 275 | FString Content = "UE = {"; |
| 276 | |
| 277 | for (const auto Type : AllTypes) |
| 278 | { |
| 279 | if (!Type->IsNative()) |
| 280 | continue; |
| 281 | |
| 282 | const auto Name = GetTypeName(Type); |
| 283 | Content += FString::Printf(TEXT("\r\n ---@type %s\r\n"), *Name); |
| 284 | Content += FString::Printf(TEXT(" %s = nil,\r\n"), *Name); |
| 285 | } |
| 286 | |
| 287 | Content += "}\r\n"; |
| 288 | return Content; |
| 289 | } |
| 290 | |
| 291 | FString GetTypeName(const UObject* Field) |
| 292 | { |
no test coverage detected