Exemplo n.º 1
0
        public static void Serialize(JsonFormatter f, glTF_Effekseer value)
        {
            f.BeginMap();


            if (value.effects != null && value.effects.Count >= 1)
            {
                f.Key("effects");
                Serialize_vci_effects(f, value.effects);
            }

            f.EndMap();
        }
        public static void Serialize(JsonFormatter f, glTF_VCAST_vci_location_bounds value)
        {
            f.BeginMap();


            if (value.LocationBounds != null)
            {
                f.Key("LocationBounds");
                Serialize_vci_LocationBounds(f, value.LocationBounds);
            }

            f.EndMap();
        }
Exemplo n.º 3
0
        public static void Serialize_vci_effects__body(JsonFormatter f, glTF_Effekseer_body value)
        {
            f.BeginMap();


            if (value.bufferView >= 0)
            {
                f.Key("bufferView");
                f.Value(value.bufferView);
            }

            f.EndMap();
        }
        public static void Serialize(JsonFormatter f, glTF_VCAST_vci_joints value)
        {
            f.BeginMap();


            if (value.joints != null && value.joints.Count >= 1)
            {
                f.Key("joints");
                Serialize_vci_joints(f, value.joints);
            }

            f.EndMap();
        }
        public static void Serialize(JsonFormatter f, glTF_VCAST_vci_text value)
        {
            f.BeginMap();


            if (value.text != null)
            {
                f.Key("text");
                Serialize_vci_text(f, value.text);
            }

            f.EndMap();
        }
Exemplo n.º 6
0
        public static void Serialize_vci_effects_ITEM(JsonFormatter f, glTF_Effekseer_effect value)
        {
            f.BeginMap();


            if (true)
            {
                f.Key("nodeIndex");
                f.Value(value.nodeIndex);
            }

            if (!string.IsNullOrEmpty(value.nodeName))
            {
                f.Key("nodeName");
                f.Value(value.nodeName);
            }

            if (!string.IsNullOrEmpty(value.effectName))
            {
                f.Key("effectName");
                f.Value(value.effectName);
            }

            if (value.body != null)
            {
                f.Key("body");
                Serialize_vci_effects__body(f, value.body);
            }

            if (true)
            {
                f.Key("scale");
                f.Value(value.scale);
            }

            if (value.images != null && value.images.Count >= 1)
            {
                f.Key("images");
                Serialize_vci_effects__images(f, value.images);
            }

            if (value.models != null && value.models.Count >= 1)
            {
                f.Key("models");
                Serialize_vci_effects__models(f, value.models);
            }

            f.EndMap();
        }
Exemplo n.º 7
0
        public static void Serialize_vrm_humanoid_humanBones_ITEM(JsonFormatter f, glTF_VRM_HumanoidBone value)
        {
            f.BeginMap();


            if (!string.IsNullOrEmpty(value.bone))
            {
                f.Key("bone");
                f.Value(value.bone);
            }

            if (value.node >= 0)
            {
                f.Key("node");
                f.Value(value.node);
            }

            if (true)
            {
                f.Key("useDefaultValues");
                f.Value(value.useDefaultValues);
            }

            if (value.min != null && value.min != Vector3.zero)
            {
                f.Key("min");
                Serialize_vrm_humanoid_humanBones__min(f, value.min);
            }

            if (value.max != null && value.min != Vector3.zero)
            {
                f.Key("max");
                Serialize_vrm_humanoid_humanBones__max(f, value.max);
            }

            if (value.center != null && value.min != Vector3.zero)
            {
                f.Key("center");
                Serialize_vrm_humanoid_humanBones__center(f, value.center);
            }

            if (value.axisLength > 0)
            {
                f.Key("axisLength");
                f.Value(value.axisLength);
            }

            f.EndMap();
        }
Exemplo n.º 8
0
public static void Serialize_Position(JsonFormatter f, PositionConstraint value)
{
    f.BeginMap();


    if(value.Extensions!=null){
        f.Key("extensions");                
        value.Extensions.Serialize(f);
    }

    if(value.Extras!=null){
        f.Key("extras");                
        value.Extras.Serialize(f);
    }

    if(!string.IsNullOrEmpty(value.Name)){
        f.Key("name");                
        f.Value(value.Name);
    }

    if(value.Source.HasValue){
        f.Key("source");                
        f.Value(value.Source.GetValueOrDefault());
    }

    if(true){
        f.Key("sourceSpace");                
        f.Value(value.SourceSpace.ToString());
    }

    if(true){
        f.Key("destinationSpace");                
        f.Value(value.DestinationSpace.ToString());
    }

    if(value.FreezeAxes!=null&&value.FreezeAxes.Count()>=3){
        f.Key("freezeAxes");                
        Serialize_FreezeAxes(f, value.FreezeAxes);
    }

    if(value.Weight.HasValue){
        f.Key("weight");                
        f.Value(value.Weight.GetValueOrDefault());
    }

    f.EndMap();
}
Exemplo n.º 9
0
        public static void Serialize(JsonFormatter f, glTF_VCAST_vci_embedded_script value)
        {
            f.BeginMap();


            if (value.scripts != null && value.scripts.Count >= 1)
            {
                f.Key("scripts");
                Serialize_vci_scripts(f, value.scripts);
            }

            if (true)
            {
                f.Key("entryPoint");
                f.Value(value.entryPoint);
            }

            f.EndMap();
        }
Exemplo n.º 10
0
        public static void Serialize(JsonFormatter f, VRMC_vrm value)
        {
            f.BeginMap();


            if (!string.IsNullOrEmpty(value.SpecVersion))
            {
                f.Key("specVersion");
                f.Value(value.SpecVersion);
            }

            if (value.Meta != null)
            {
                f.Key("meta");
                Serialize_Meta(f, value.Meta);
            }

            if (value.Humanoid != null)
            {
                f.Key("humanoid");
                Serialize_Humanoid(f, value.Humanoid);
            }

            if (value.FirstPerson != null)
            {
                f.Key("firstPerson");
                Serialize_FirstPerson(f, value.FirstPerson);
            }

            if (value.LookAt != null)
            {
                f.Key("lookAt");
                Serialize_LookAt(f, value.LookAt);
            }

            if (value.Expressions != null && value.Expressions.Count() >= 0)
            {
                f.Key("expressions");
                Serialize_Expressions(f, value.Expressions);
            }

            f.EndMap();
        }
Exemplo n.º 11
0
        public static void __lookAt_Serialize_RangeMapVerticalUp(JsonFormatter f, LookAtRangeMap value)
        {
            f.BeginMap();


            if (value.InputMaxValue.HasValue)
            {
                f.Key("inputMaxValue");
                f.Value(value.InputMaxValue.GetValueOrDefault());
            }

            if (value.OutputScale.HasValue)
            {
                f.Key("outputScale");
                f.Value(value.OutputScale.GetValueOrDefault());
            }

            f.EndMap();
        }
Exemplo n.º 12
0
        public static void Serialize_LookAt(JsonFormatter f, LookAt value)
        {
            f.BeginMap();


            if (value.OffsetFromHeadBone != null && value.OffsetFromHeadBone.Count() >= 0)
            {
                f.Key("offsetFromHeadBone");
                __lookAt_Serialize_OffsetFromHeadBone(f, value.OffsetFromHeadBone);
            }

            if (true)
            {
                f.Key("type");
                f.Value(value.Type.ToString());
            }

            if (value.RangeMapHorizontalInner != null)
            {
                f.Key("rangeMapHorizontalInner");
                __lookAt_Serialize_RangeMapHorizontalInner(f, value.RangeMapHorizontalInner);
            }

            if (value.RangeMapHorizontalOuter != null)
            {
                f.Key("rangeMapHorizontalOuter");
                __lookAt_Serialize_RangeMapHorizontalOuter(f, value.RangeMapHorizontalOuter);
            }

            if (value.RangeMapVerticalDown != null)
            {
                f.Key("rangeMapVerticalDown");
                __lookAt_Serialize_RangeMapVerticalDown(f, value.RangeMapVerticalDown);
            }

            if (value.RangeMapVerticalUp != null)
            {
                f.Key("rangeMapVerticalUp");
                __lookAt_Serialize_RangeMapVerticalUp(f, value.RangeMapVerticalUp);
            }

            f.EndMap();
        }
Exemplo n.º 13
0
        public static void __firstPerson_Serialize_MeshAnnotations_ITEM(JsonFormatter f, MeshAnnotation value)
        {
            f.BeginMap();


            if (value.Node.HasValue)
            {
                f.Key("node");
                f.Value(value.Node.GetValueOrDefault());
            }

            if (true)
            {
                f.Key("type");
                f.Value(value.Type.ToString());
            }

            f.EndMap();
        }
Exemplo n.º 14
0
        public static void Serialize_vrm_secondaryAnimation_colliderGroups_ITEM(JsonFormatter f, glTF_VRM_SecondaryAnimationColliderGroup value)
        {
            f.BeginMap();


            if (value.node >= 0)
            {
                f.Key("node");
                f.Value(value.node);
            }

            if (value.colliders != null && value.colliders.Count >= 0)
            {
                f.Key("colliders");
                Serialize_vrm_secondaryAnimation_colliderGroups__colliders(f, value.colliders);
            }

            f.EndMap();
        }
Exemplo n.º 15
0
        public static void Serialize(JsonFormatter f, VRMC_springBone value)
        {
            f.BeginMap();


            if (value.Extensions != null)
            {
                f.Key("extensions");
                (value.Extensions as glTFExtension).Serialize(f);
            }

            if (value.Extras != null)
            {
                f.Key("extras");
                (value.Extras as glTFExtension).Serialize(f);
            }

            if (!string.IsNullOrEmpty(value.SpecVersion))
            {
                f.Key("specVersion");
                f.Value(value.SpecVersion);
            }

            if (value.Colliders != null && value.Colliders.Count() >= 1)
            {
                f.Key("colliders");
                Serialize_Colliders(f, value.Colliders);
            }

            if (value.ColliderGroups != null && value.ColliderGroups.Count() >= 1)
            {
                f.Key("colliderGroups");
                Serialize_ColliderGroups(f, value.ColliderGroups);
            }

            if (value.Springs != null && value.Springs.Count() >= 1)
            {
                f.Key("springs");
                Serialize_Springs(f, value.Springs);
            }

            f.EndMap();
        }
Exemplo n.º 16
0
        public static void Serialize_vci_locationLighting_skyboxCubemap_texture(JsonFormatter f, glTFCubemapFaceTextureSet value)
        {
            f.BeginMap();


            if (value.cubemapPositiveX != null)
            {
                f.Key("cubemapPositiveX");
                Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapPositiveX(f, value.cubemapPositiveX);
            }

            if (value.cubemapNegativeX != null)
            {
                f.Key("cubemapNegativeX");
                Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapNegativeX(f, value.cubemapNegativeX);
            }

            if (value.cubemapPositiveY != null)
            {
                f.Key("cubemapPositiveY");
                Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapPositiveY(f, value.cubemapPositiveY);
            }

            if (value.cubemapNegativeY != null)
            {
                f.Key("cubemapNegativeY");
                Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapNegativeY(f, value.cubemapNegativeY);
            }

            if (value.cubemapPositiveZ != null)
            {
                f.Key("cubemapPositiveZ");
                Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapPositiveZ(f, value.cubemapPositiveZ);
            }

            if (value.cubemapNegativeZ != null)
            {
                f.Key("cubemapNegativeZ");
                Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapNegativeZ(f, value.cubemapNegativeZ);
            }

            f.EndMap();
        }
Exemplo n.º 17
0
        public static void Serialize_vrm_firstPerson_meshAnnotations_ITEM(JsonFormatter f, glTF_VRM_MeshAnnotation value)
        {
            f.BeginMap();


            if (value.mesh >= 0)
            {
                f.Key("mesh");
                f.Value(value.mesh);
            }

            if (!string.IsNullOrEmpty(value.firstPersonFlag))
            {
                f.Key("firstPersonFlag");
                f.Value(value.firstPersonFlag);
            }

            f.EndMap();
        }
Exemplo n.º 18
0
        public static void Serialize_Shapes_ITEM(JsonFormatter f, ColliderShape value)
        {
            f.BeginMap();


            if (value.Sphere != null)
            {
                f.Key("sphere");
                Serialize_Sphere(f, value.Sphere);
            }

            if (value.Capsule != null)
            {
                f.Key("capsule");
                Serialize_Capsule(f, value.Capsule);
            }

            f.EndMap();
        }
Exemplo n.º 19
0
        public static void Serialize_vci_audioSources_ITEM(JsonFormatter f, glTF_VCAST_vci_audio_source value)
        {
            f.BeginMap();


            if (true)
            {
                f.Key("audio");
                f.Value(value.audio);
            }

            if (true)
            {
                f.Key("spatialBlend");
                f.Value(value.spatialBlend);
            }

            f.EndMap();
        }
Exemplo n.º 20
0
        public static void Serialize(JsonFormatter f, VRMC_springBone value)
        {
            f.BeginMap();


            if (value.Settings != null && value.Settings.Count() >= 0)
            {
                f.Key("settings");
                Serialize_Settings(f, value.Settings);
            }

            if (value.Springs != null && value.Springs.Count() >= 0)
            {
                f.Key("springs");
                Serialize_Springs(f, value.Springs);
            }

            f.EndMap();
        }
Exemplo n.º 21
0
        public static void Serialize_Springs_ITEM(JsonFormatter f, Spring value)
        {
            f.BeginMap();


            if (value.Extensions != null)
            {
                f.Key("extensions");
                (value.Extensions as glTFExtension).Serialize(f);
            }

            if (value.Extras != null)
            {
                f.Key("extras");
                (value.Extras as glTFExtension).Serialize(f);
            }

            if (!string.IsNullOrEmpty(value.Name))
            {
                f.Key("name");
                f.Value(value.Name);
            }

            if (value.Joints != null && value.Joints.Count() >= 1)
            {
                f.Key("joints");
                __springs_ITEM_Serialize_Joints(f, value.Joints);
            }

            if (value.ColliderGroups != null && value.ColliderGroups.Count() >= 1)
            {
                f.Key("colliderGroups");
                __springs_ITEM_Serialize_ColliderGroups(f, value.ColliderGroups);
            }

            if (value.Center.HasValue)
            {
                f.Key("center");
                f.Value(value.Center.GetValueOrDefault());
            }

            f.EndMap();
        }
        public static void Serialize_vci_LocationBounds(JsonFormatter f, glTF_VCAST_vci_LocationBounds value)
        {
            f.BeginMap();


            if (value.bounds_center != null)
            {
                f.Key("bounds_center");
                Serialize_vci_LocationBounds_bounds_center(f, value.bounds_center);
            }

            if (value.bounds_size != null)
            {
                f.Key("bounds_size");
                Serialize_vci_LocationBounds_bounds_size(f, value.bounds_size);
            }

            f.EndMap();
        }
Exemplo n.º 23
0
        public static void __colliders_ITEM__shape_Serialize_Sphere(JsonFormatter f, ColliderShapeSphere value)
        {
            f.BeginMap();


            if (value.Offset != null && value.Offset.Count() >= 3)
            {
                f.Key("offset");
                __colliders_ITEM__shape__sphere_Serialize_Offset(f, value.Offset);
            }

            if (value.Radius.HasValue)
            {
                f.Key("radius");
                f.Value(value.Radius.GetValueOrDefault());
            }

            f.EndMap();
        }
        public static void Serialize_vci_playerSpawnPoint(JsonFormatter f, glTF_VCAST_vci_PlayerSpawnPoint value)
        {
            f.BeginMap();


            if (true)
            {
                f.Key("order");
                f.Value(value.order);
            }

            if (true)
            {
                f.Key("radius");
                f.Value(value.radius);
            }

            f.EndMap();
        }
Exemplo n.º 25
0
        public static void __constraint_Serialize_Roll(JsonFormatter f, RollConstraint value)
        {
            f.BeginMap();


            if (value.Extensions != null)
            {
                f.Key("extensions");
                (value.Extensions as glTFExtension).Serialize(f);
            }

            if (value.Extras != null)
            {
                f.Key("extras");
                (value.Extras as glTFExtension).Serialize(f);
            }

            if (!string.IsNullOrEmpty(value.Name))
            {
                f.Key("name");
                f.Value(value.Name);
            }

            if (value.Source.HasValue)
            {
                f.Key("source");
                f.Value(value.Source.GetValueOrDefault());
            }

            if (true)
            {
                f.Key("rollAxis");
                f.Value(value.RollAxis.ToString());
            }

            if (value.Weight.HasValue)
            {
                f.Key("weight");
                f.Value(value.Weight.GetValueOrDefault());
            }

            f.EndMap();
        }
        public static void Serialize_vci_joints__spring(JsonFormatter f, Spring value)
        {
            f.BeginMap();


            if (true)
            {
                f.Key("spring");
                f.Value(value.spring);
            }

            if (true)
            {
                f.Key("damper");
                f.Value(value.damper);
            }

            if (true)
            {
                f.Key("minDistance");
                f.Value(value.minDistance);
            }

            if (true)
            {
                f.Key("maxDistance");
                f.Value(value.maxDistance);
            }

            if (true)
            {
                f.Key("tolerance");
                f.Value(value.tolerance);
            }

            if (true)
            {
                f.Key("targetPosition");
                f.Value(value.targetPosition);
            }

            f.EndMap();
        }
Exemplo n.º 27
0
        public static void Serialize_vrm_secondaryAnimation(JsonFormatter f, glTF_VRM_SecondaryAnimation value)
        {
            f.BeginMap();


            if (value.boneGroups != null && value.boneGroups.Count >= 0)
            {
                f.Key("boneGroups");
                Serialize_vrm_secondaryAnimation_boneGroups(f, value.boneGroups);
            }

            if (value.colliderGroups != null && value.colliderGroups.Count >= 0)
            {
                f.Key("colliderGroups");
                Serialize_vrm_secondaryAnimation_colliderGroups(f, value.colliderGroups);
            }

            f.EndMap();
        }
        public static void Serialize_vci_reflectionProbe_cubemap_mipmapTextures_ITEM(JsonFormatter f, glTFCubemapFaceTextureSet value)
        {
            f.BeginMap();


            if (value.cubemapPositiveX != null)
            {
                f.Key("cubemapPositiveX");
                Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveX(f, value.cubemapPositiveX);
            }

            if (value.cubemapNegativeX != null)
            {
                f.Key("cubemapNegativeX");
                Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeX(f, value.cubemapNegativeX);
            }

            if (value.cubemapPositiveY != null)
            {
                f.Key("cubemapPositiveY");
                Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveY(f, value.cubemapPositiveY);
            }

            if (value.cubemapNegativeY != null)
            {
                f.Key("cubemapNegativeY");
                Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeY(f, value.cubemapNegativeY);
            }

            if (value.cubemapPositiveZ != null)
            {
                f.Key("cubemapPositiveZ");
                Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveZ(f, value.cubemapPositiveZ);
            }

            if (value.cubemapNegativeZ != null)
            {
                f.Key("cubemapNegativeZ");
                Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeZ(f, value.cubemapNegativeZ);
            }

            f.EndMap();
        }
Exemplo n.º 29
0
        public static void Serialize_vrm_secondaryAnimation_colliderGroups__colliders_ITEM(JsonFormatter f, glTF_VRM_SecondaryAnimationCollider value)
        {
            f.BeginMap();


            if (value.offset != null)
            {
                f.Key("offset");
                Serialize_vrm_secondaryAnimation_colliderGroups__colliders__offset(f, value.offset);
            }

            if (true)
            {
                f.Key("radius");
                f.Value(value.radius);
            }

            f.EndMap();
        }
Exemplo n.º 30
0
        public static void Serialize_LookAtHorizontalOuter(JsonFormatter f, LookAtRangeMap value)
        {
            f.BeginMap();


            if (value.InputMaxValue.HasValue)
            {
                f.Key("inputMaxValue");
                f.Value(value.InputMaxValue.GetValueOrDefault());
            }

            if (value.OutputScale.HasValue)
            {
                f.Key("outputScale");
                f.Value(value.OutputScale.GetValueOrDefault());
            }

            f.EndMap();
        }