Example #1
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("modifier", Modifier);
            o.Add("enabled", enabled_);

            return(o);
        }
Example #2
0
        public void ToJSON(J.Object o)
        {
            if (storable_ != null)
            {
                o.Add("storable", storable_.storeId);
            }

            o.Add("parameter", parameter_);
        }
Example #3
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("steps", steps_);
            o.Add("progression", StepProgression);

            return(o);
        }
Example #4
0
        public virtual J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("name", parent_.UserDefinedName);
            o.Add("sync", parent_.ModifierSync);

            return(o);
        }
Example #5
0
        public override J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("duration", Duration);
            o.Add("delay", Delay);

            return(o);
        }
Example #6
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("enabled", enabled_);
            o.Add("target", target_);

            return(o);
        }
Example #7
0
            public static J.Node ToJSON(Vector3 v)
            {
                var o = new J.Object();

                o.Add("x", v.x);
                o.Add("y", v.y);
                o.Add("z", v.z);

                return(o);
            }
Example #8
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("easing", easing_);
            o.Add("minimum", Minimum);
            o.Add("maximum", Maximum);

            return(o);
        }
Example #9
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("resetValuesOnFreeze", resetValuesOnFreeze_);
            o.Add("resetCountersOnThaw", resetCountersOnThaw_);
            o.Add("overlapTime", overlapTime_);

            return(o);
        }
Example #10
0
        public override J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("initial", initial_);
            o.Add("range", range_);
            o.Add("interval", interval_);

            return(o);
        }
Example #11
0
            public void Add(string key, Color c)
            {
                var o = new J.Object();

                o.Add("r", c.r);
                o.Add("g", c.g);
                o.Add("b", c.b);
                o.Add("a", c.a);

                c_?.Add(key, o.Impl);
            }
Example #12
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("controllerName", controllerName_);
            o.Add("atomName", atomName_);
            o.Add("rbName", rbName_);
            o.Add("position", position_);
            o.Add("rotation", rotation_);

            return(o);
        }
Example #13
0
            public void Add(string key, IntParameter b)
            {
                var o = new J.Object();

                o.Add("value", b.InternalValue);

                if (b.Registered)
                {
                    o.Add("parameter", b.Name);
                }

                c_?.Add(key, o.Impl);
            }
Example #14
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            if (morph_ != null)
            {
                o.Add("uid", morph_.uid);
            }

            o.Add("movement", Movement);
            o.Add("enabled", enabled_);

            return(o);
        }
Example #15
0
        public override J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("time", Time);

            return(o);
        }
Example #16
0
        public override J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("modifier", modifierIndex_);

            return(o);
        }
Example #17
0
File: Step.cs Project: via5/Synergy
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("enabled", enabled_);
            o.Add("paused", paused_);
            o.Add("name", name_);
            o.Add("duration", Duration);
            o.Add("repeat", Repeat);
            o.Add("delay", Delay);
            o.Add("halfMove", halfMove_);
            o.Add("modifiers", modifiers_);

            return(o);
        }
Example #18
0
        public override J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("easing", easing_);
            o.Add("minimum", min_);
            o.Add("maximum", max_);
            o.Add("timeUp", timeUp_);
            o.Add("timeDown", timeDown_);
            o.Add("hold", hold_);
            o.Add("rampUp", rampUp_);
            o.Add("rampDown", rampDown_);

            return(o);
        }
Example #19
0
        public J.Node ToJSON()
        {
            var o = new J.Object();

            o.Add("halfwayDuration", HalfwayDuration);
            o.Add("endForwardsDuration", EndForwardsDuration);
            o.Add("endBackwardsDuration", EndBackwardsDuration);
            o.Add("halfway", Halfway);
            o.Add("endForwards", EndForwards);
            o.Add("endBackwards", EndBackwards);
            o.Add("sameDelay", sameDelay_);

            return(o);
        }