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

            node.InsertSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_ChildStates", ChildStates.ExportYAML(container));
            node.Add("m_ChildStateMachines", ChildStateMachines.ExportYAML(container));
            node.Add("m_AnyStateTransitions", AnyStateTransitions.ExportYAML(container));
            node.Add("m_EntryTransitions", EntryTransitions.ExportYAML(container));
            node.Add("m_StateMachineTransitions", StateMachineTransitions.ExportYAMLArrayPPtr(container));
            node.Add("m_StateMachineBehaviours", StateMachineBehaviours.ExportYAML(container));
            node.Add("m_AnyStatePosition", AnyStatePosition.ExportYAML(container));
            node.Add("m_EntryPosition", EntryPosition.ExportYAML(container));
            node.Add("m_ExitPosition", ExitPosition.ExportYAML(container));
            node.Add("m_ParentStateMachinePosition", ParentStateMachinePosition.ExportYAML(container));
            node.Add("m_DefaultState", DefaultState.ExportYAML(container));
            return(node);
        }
Exemple #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.InsertSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(ChildStatesName, ChildStates.ExportYAML(container));
            node.Add(ChildStateMachinesName, ChildStateMachines.ExportYAML(container));
            node.Add(AnyStateTransitionsName, AnyStateTransitions.ExportYAML(container));
            node.Add(EntryTransitionsName, EntryTransitions.ExportYAML(container));
            node.Add(StateMachineTransitionsName, StateMachineTransitions.ExportYAML(container));
            node.Add(StateMachineBehavioursName, StateMachineBehaviours.ExportYAML(container));
            node.Add(AnyStatePositionName, AnyStatePosition.ExportYAML(container));
            node.Add(EntryPositionName, EntryPosition.ExportYAML(container));
            node.Add(ExitPositionName, ExitPosition.ExportYAML(container));
            node.Add(ParentStateMachinePositionName, ParentStateMachinePosition.ExportYAML(container));
            node.Add(DefaultStateName, DefaultState.ExportYAML(container));
            return(node);
        }
Exemple #3
0
        protected override YAMLMappingNode ExportYAMLRoot()
        {
            YAMLMappingNode node = base.ExportYAMLRoot();

            node.AddSerializedVersion(SerializedVersion);
            node.Add("m_СhildStates", ChildStates.ExportYAML());
            node.Add("m_ChildStateMachines", ChildStateMachines.ExportYAML());
            node.Add("m_AnyStateTransitions", AnyStateTransitions.ExportYAML());
            node.Add("m_EntryTransitions", EntryTransitions.ExportYAML());
            node.Add("m_StateMachineTransitions", StateMachineTransitions.ExportYAMLEnum());
            node.Add("m_StateMachineBehaviours", StateMachineBehaviours.ExportYAML());
            node.Add("m_AnyStatePosition", AnyStatePosition.ExportYAML());
            node.Add("m_EntryPosition", EntryPosition.ExportYAML());
            node.Add("m_ExitPosition", ExitPosition.ExportYAML());
            node.Add("m_ParentStateMachinePosition", ParentStateMachinePosition.ExportYAML());
            node.Add("m_DefaultState", DefaultState.ExportYAML());
            return(node);
        }