Esempio n. 1
0
        private void SetEnterExitSlot(List<Nodes.Node.ErrorCheck> result, XmlNode xml, Node node, int version)
        {
            if (version <= 1) {
                string enterActionStr = null;
                GetAttribute(xml, "EnterAction", out enterActionStr);

                if (!string.IsNullOrEmpty(enterActionStr)) {
                    node.SetEnterExitSlot(result, enterActionStr, true);
                    node.Behavior.TriggerWasModified(node);
                }

                string exitActionStr = null;
                GetAttribute(xml, "ExitAction", out exitActionStr);

                if (!string.IsNullOrEmpty(exitActionStr)) {
                    node.SetEnterExitSlot(result, exitActionStr, false);
                    node.Behavior.TriggerWasModified(node);
                }
            }
        }