Beispiel #1
0
        public YAMLNode ExportYAML()
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_Name", Name);
            node.Add("m_StateMachine", StateMachine.ExportYAML());
            node.Add("m_Mask", Mask.ExportYAML());
            node.Add("m_Motions", Motions.ExportYAML());
            node.Add("m_Behaviours", Behaviours.ExportYAML());
            node.Add("m_BlendingMode", BlendingMode);
            node.Add("m_SyncedLayerIndex", SyncedLayerIndex);
            node.Add("m_DefaultWeight", DefaultWeight);
            node.Add("m_IKPass", IKPass);
            node.Add("m_SyncedLayerAffectsTiming", SyncedLayerAffectsTiming);
            node.Add("m_Controller", Controller.ExportYAML());
            return(node);
        }
Beispiel #2
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(NameName, Name);
            node.Add(StateMachineName, StateMachine.ExportYAML(container));
            node.Add(MaskName, Mask.ExportYAML(container));
            node.Add(MotionsName, Motions.ExportYAML(container));
            node.Add(BehavioursName, Behaviours.ExportYAML(container));
            node.Add(BlendingModeName, (int)BlendingMode);
            node.Add(SyncedLayerIndexName, SyncedLayerIndex);
            node.Add(DefaultWeightName, DefaultWeight);
            node.Add(IKPassName, IKPass);
            node.Add(SyncedLayerAffectsTimingName, SyncedLayerAffectsTiming);
            node.Add(ControllerName, Controller.ExportYAML(container));
            return(node);
        }