Beispiel #1
0
            public void Opt(string key, FloatParameter v)
            {
                if (!HasKey(key))
                {
                    return;
                }

                var node = c_[key];

                var o = node as JSONClass;

                if (o == null)
                {
                    v.Value = node.AsFloat;
                }
                else
                {
                    v.Value = o["value"].AsFloat;

                    if (o.HasKey("parameter"))
                    {
                        v.Name = o["parameter"];
                        v.Register();
                    }
                }
            }