예제 #1
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add(TextureName, Texture.ExportYAML(container));
            node.Add(ScaleName, Scale.ExportYAML(container));
            node.Add(OffsetName, Offset.ExportYAML(container));
            return(node);
        }
예제 #2
0
        public YAMLNode ExportYAML()
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_Texture", Texture.ExportYAML());
            node.Add("m_Scale", Scale.ExportYAML());
            node.Add("m_Offset", Offset.ExportYAML());
            return(node);
        }
예제 #3
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add("m_Density", Density);
            node.Add("m_Material", Material.ExportYAML(container));
            node.Add("m_IsTrigger", IsTrigger);
            node.Add("m_UsedByEffector", UsedByEffector);
            node.Add("m_UsedByComposite", UsedByComposite);
            node.Add("m_Offset", Offset.ExportYAML(container));
            return(node);
        }
예제 #4
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add(DensityName, Density);
            node.Add(MaterialName, Material.ExportYAML(container));
            node.Add(IsTriggerName, IsTrigger);
            node.Add(UsedByEffectorName, UsedByEffector);
            node.Add(UsedByCompositeName, UsedByComposite);
            node.Add(OffsetName, Offset.ExportYAML(container));
            return(node);
        }