| 55 | static void CastV42S(FString *a, double b, double b1, double b2, double b3) { a->Format("(%.5f, %.5f, %.5f, %.5f)", b, b1, b2, b3); } |
| 56 | static void CastP2S(FString *a, void *b) { if (b == nullptr) *a = "null"; else a->Format("%p", b); } |
| 57 | static int CastS2I(FString *b) { return (int)b->ToLong(); } |
| 58 | static double CastS2F(FString *b) { return b->ToDouble(); } |
| 59 | static int CastS2N(FString *b) { return b->Len() == 0 ? NAME_None : FName(*b).GetIndex(); } |
| 60 | static void CastN2S(FString *a, int b) { FName name = FName(ENamedName(b)); *a = name.IsValidName() ? name.GetChars() : ""; } |