Beispiel #1
0
        public static Single[] Deserialize_vrm_blendShapeMaster_blendShapeGroups__materialValues__targetValue(ListTreeNode <JsonValue> parsed)
        {
            var value = new Single[parsed.GetArrayCount()];
            int i     = 0;

            foreach (var x in parsed.ArrayItems())
            {
                value[i++] = x.GetSingle();
            }
            return(value);
        }
Beispiel #2
0
        public static Int32[] Deserialize_vrm_secondaryAnimation_boneGroups__colliderGroups(ListTreeNode <JsonValue> parsed)
        {
            var value = new Int32[parsed.GetArrayCount()];
            int i     = 0;

            foreach (var x in parsed.ArrayItems())
            {
                value[i++] = x.GetInt32();
            }
            return(value);
        }
Beispiel #3
0
        public static Single[] Deserialize_vrm_materialProperties__vectorProperties_DICT(ListTreeNode <JsonValue> parsed)
        {
            var value = new Single[parsed.GetArrayCount()];
            int i     = 0;

            foreach (var x in parsed.ArrayItems())
            {
                value[i++] = x.GetSingle();
            }
            return(value);
        }
Beispiel #4
0
        public static Single[] Deserialize_vrm_firstPerson_lookAtVerticalUp_curve(ListTreeNode <JsonValue> parsed)
        {
            var value = new Single[parsed.GetArrayCount()];
            int i     = 0;

            foreach (var x in parsed.ArrayItems())
            {
                value[i++] = x.GetSingle();
            }
            return(value);
        }
Beispiel #5
0
        public static float[] Deserialize_OutlineFactor(ListTreeNode <JsonValue> parsed)
        {
            var value = new float[parsed.GetArrayCount()];
            int i     = 0;

            foreach (var x in parsed.ArrayItems())
            {
                value[i++] = x.GetSingle();
            }
            return(value);
        }
Beispiel #6
0
        public static int[] Deserialize_Colliders(ListTreeNode <JsonValue> parsed)
        {
            var value = new int[parsed.GetArrayCount()];
            int i     = 0;

            foreach (var x in parsed.ArrayItems())
            {
                value[i++] = x.GetInt32();
            }
            return(value);
        }
Beispiel #7
0
        public static bool[] Deserialize_FreezeAxes(ListTreeNode <JsonValue> parsed)
        {
            var value = new bool[parsed.GetArrayCount()];
            int i     = 0;

            foreach (var x in parsed.ArrayItems())
            {
                value[i++] = x.GetBoolean();
            }
            return(value);
        }
Beispiel #8
0
        public void Dispatch(ListTreeNode <MsgPackValue> parsed)
        {
            if (!parsed.IsArray())
            {
                return;
            }

            if (parsed.GetArrayCount() != 3)
            {
                return;
            }

            if (parsed[0].GetInt32() != MsgPackFormatter.NOTIFY_TYPE)
            {
                return;
            }

            Notify(parsed[1].GetUtf8String(), parsed[2]);
        }
Beispiel #9
0
        TreeNode Traverse(TreeNodeCollection parent, string key, ListTreeNode <JsonValue> node)
        {
            if (node.IsArray())
            {
                var current = new TreeNode($"{key}({node.GetArrayCount()})");
                parent.Add(current);
                m_nodeMap.Add(current, node);

                int i = 0;
                foreach (var x in node.ArrayItems())
                {
                    Traverse(current.Nodes, (i++).ToString(), x);
                }

                return(current);
            }
            else if (node.IsMap())
            {
                var current = new TreeNode(key);
                parent.Add(current);
                m_nodeMap.Add(current, node);

                foreach (var kv in node.ObjectItems())
                {
                    Traverse(current.Nodes, kv.Key.GetString(), kv.Value);
                }

                return(current);
            }
            else
            {
                var current = new TreeNode($"{key}: {node.ToString()}");
                parent.Add(current);
                m_nodeMap.Add(current, node);

                return(current);
            }
        }