* Build value based on a TSet */
| 398 | * Build value based on a TSet |
| 399 | */ |
| 400 | void FLuaDebugValue::BuildFromTSet(FScriptSetHelper &SetHelper) |
| 401 | { |
| 402 | FString ElementExtendedTypeText; |
| 403 | FString ElementTypeText = SetHelper.ElementProp->GetCPPType(&ElementExtendedTypeText); |
| 404 | ReadableValue = FString::Printf(TEXT("TSet<%s%s> Num=%d"), *ElementTypeText, *ElementExtendedTypeText, SetHelper.Num()); |
| 405 | int32 i = -1, j = 1, Size = SetHelper.Num(); |
| 406 | while (Size > 0) |
| 407 | { |
| 408 | if (SetHelper.IsValidIndex(++i)) |
| 409 | { |
| 410 | FLuaDebugValue *Key = AddKey(); |
| 411 | if (Key) |
| 412 | { |
| 413 | Key->ReadableValue = FString::Printf(TEXT("[%d]"), j++); |
| 414 | } |
| 415 | FLuaDebugValue *Value = AddValue(); |
| 416 | if (Value) |
| 417 | { |
| 418 | Value->BuildFromUProperty(SetHelper.ElementProp, SetHelper.GetElementPtr(i)); |
| 419 | } |
| 420 | --Size; |
| 421 | } |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * Build value based on a FProperty |
nothing calls this directly
no test coverage detected