Example #1
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.ForceAddSerializedVersion(GetSerializedVersion(container.Version));
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.ForceAddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_State", State.ExportYAML(container));
            node.Add("m_Position", Position.ExportYAML(container));
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.ForceAddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(StateName, State.ExportYAML(container));
            node.Add(PositionName, Position.ExportYAML(container));
            return(node);
        }
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.ForceAddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(EnabledName, Enabled);
            node.Add(TestModeName, TestMode);
            node.Add(TestEventUrlName, GetTestEventUrl(container.Version));
            node.Add(TestConfigUrlName, GetTestConfigUrl(container.Version));
            node.Add(TestInitModeName, TestInitMode);
            node.Add(CrashReportingSettingsName, GetCrashReportingSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add(UnityPurchasingSettingsName, UnityPurchasingSettings.ExportYAML(container));
            node.Add(UnityAnalyticsSettingsName, GetUnityAnalyticsSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add(UnityAdsSettingsName, GetUnityAdsSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add(PerformanceReportingSettingsName, PerformanceReportingSettings.ExportYAML(container));
            return(node);
        }