MCPcopy Create free account
hub / github.com/InoriRus/Kyty / LoadEnum

Function LoadEnum

source/emulator/src/Config.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66template <class T>
67void LoadEnum(T& dst, const Scripts::ScriptVar& cfg, const String& key)
68{
69 auto var = cfg.At(key);
70 if (!var.IsNil())
71 {
72 dst = Core::EnumValue(var.ToString(), dst);
73 }
74}
75
76void LoadStr(String& dst, const Scripts::ScriptVar& cfg, const String& key)
77{

Callers 1

LoadFunction · 0.85

Calls 4

EnumValueFunction · 0.85
AtMethod · 0.80
IsNilMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected