| 46 | |
| 47 | template <class T> |
| 48 | void LoadInt(T& dst, const Scripts::ScriptVar& cfg, const String& key) |
| 49 | { |
| 50 | auto var = cfg.At(key); |
| 51 | if (!var.IsNil()) |
| 52 | { |
| 53 | dst = static_cast<T>(var.ToInteger()); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | void LoadBool(bool& dst, const Scripts::ScriptVar& cfg, const String& key) |
| 58 | { |