public void Opt(string key, BoolParameter v) { if (!HasKey(key)) { return; } var node = c_[key]; var o = node as JSONClass; if (o == null) { v.Value = node.AsBool; } else { v.Value = o["value"].AsBool; if (o.HasKey("parameter")) { v.Name = o["parameter"]; v.Register(); } } }