Ejemplo n.º 1
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_Collider", Collider.ExportYAML(container));
            node.Add("m_ColliderPaths", ColliderPaths.ExportYAML(container));
            return(node);
        }
Ejemplo n.º 2
0
        public YAMLNode ExportYAML(IAssetsExporter exporter)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_Collider", Collider.ExportYAML(exporter));
            node.Add("m_ColliderPaths", ColliderPaths.ExportYAML(exporter));
            return(node);
        }
Ejemplo n.º 3
0
        protected override YAMLMappingNode ExportYAMLRoot(IAssetsExporter exporter)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(exporter);

            node.Add("m_GeometryType", (int)GeometryType);
            node.Add("m_GenerationType", (int)GenerationType);
            node.Add("m_EdgeRadius", EdgeRadius);
            node.Add("m_ColliderPaths", ColliderPaths.ExportYAML(exporter));
            node.Add("m_CompositePaths", CompositePaths.ExportYAML(exporter));
            node.Add("m_VertexDistance", VertexDistance);
            return(node);
        }
Ejemplo n.º 4
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add(GeometryTypeName, (int)GeometryType);
            node.Add(GenerationTypeName, (int)GenerationType);
            node.Add(EdgeRadiusName, EdgeRadius);
            node.Add(ColliderPathsName, ColliderPaths.ExportYAML(container));
            node.Add(CompositePathsName, CompositePaths.ExportYAML(container));
            node.Add(VertexDistanceName, VertexDistance);
            return(node);
        }
Ejemplo n.º 5
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_Collider", Collider.ExportYAML(container));
            if (IsReadDoubleColliderPath(container.ExportVersion))
            {
                node.Add("m_ColliderPaths", ColliderPaths.ExportYAML(container));
            }
            else
            {
                IReadOnlyList <IntPoint> colliderPaths = ColliderPaths.Count == 0 ? new IntPoint[0] : ColliderPaths[0];
                node.Add("m_ColliderPaths", colliderPaths.ExportYAML(container));
            }
            return(node);
        }
Ejemplo n.º 6
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add(ColliderName, Collider.ExportYAML(container));
            if (IsReadDoubleColliderPath(container.ExportVersion))
            {
                node.Add(ColliderPathsName, ColliderPaths.ExportYAML(container));
            }
            else
            {
                IReadOnlyList <IntPoint> colliderPaths = ColliderPaths.Count == 0 ? System.Array.Empty <IntPoint>() : ColliderPaths[0];
                node.Add(ColliderPathsName, colliderPaths.ExportYAML(container));
            }
            return(node);
        }