MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetInt

Function GetInt

Source/Engine/Serialization/JsonTools.h:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108
109 FORCE_INLINE static int32 GetInt(const Value& node, const char* name, const int32 defaultValue)
110 {
111 auto member = node.FindMember(name);
112 return member != node.MemberEnd() && member->value.IsInt() ? member->value.GetInt() : defaultValue;
113 }
114
115 template<class T>
116 FORCE_INLINE static T GetEnum(const Value& node, const char* name, const T defaultValue)

Callers 5

loadAssetMethod · 0.50
loadSceneMethod · 0.50
UpdateInternalMethod · 0.50
DeserializeMethod · 0.50
LoadProjectMethod · 0.50

Calls 3

FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetIntMethod · 0.80

Tested by

no test coverage detected