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

Function LoadBool

source/emulator/src/Config.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void LoadBool(bool& dst, const Scripts::ScriptVar& cfg, const String& key)
58{
59 auto var = cfg.At(key);
60 if (!var.IsNil())
61 {
62 dst = var.ToBool();
63 }
64}
65
66template <class T>
67void LoadEnum(T& dst, const Scripts::ScriptVar& cfg, const String& key)

Callers 1

LoadFunction · 0.85

Calls 3

AtMethod · 0.80
IsNilMethod · 0.80
ToBoolMethod · 0.45

Tested by

no test coverage detected