| 65 | // ---- Attribute-from-Node helpers ---- |
| 66 | |
| 67 | bool MjXmlUtils::ReadAttrFloat(const FXmlNode* Node, const TCHAR* Attr, float& Out, bool& bOverride) |
| 68 | { |
| 69 | FString Str = Node->GetAttribute(Attr); |
| 70 | if (Str.IsEmpty()) |
| 71 | return false; |
| 72 | bOverride = true; |
| 73 | Out = FCString::Atof(*Str); |
| 74 | return true; |
| 75 | } |
| 76 | |
| 77 | bool MjXmlUtils::ReadAttrDouble(const FXmlNode* Node, const TCHAR* Attr, double& Out, bool& bOverride) |
| 78 | { |