Exemplo n.º 1
0
        protected override void GenerateConstructor(Attachment attachment, StringWriter stream, string indent, string className)
        {
            base.GenerateConstructor(attachment, stream, indent, className);

            PluginBehaviac.Events.Effector effector = attachment as PluginBehaviac.Events.Effector;

            if (effector == null)
            {
                return;
            }

            string phase = "Effector::E_SUCCESS";

            switch (effector.Phase)
            {
            case EffectorPhase.Failure:
                phase = "Effector::E_FAILURE";
                break;

            case EffectorPhase.Both:
                phase = "Effector::E_BOTH";
                break;
            }

            stream.WriteLine("{0}\t\t\tthis->SetPhase({1});", indent, phase);
        }
Exemplo n.º 2
0
        protected override void CloneProperties(Behaviac.Design.Attachments.Attachment newattach)
        {
            base.CloneProperties(newattach);

            Effector prec = (Effector)newattach;

            prec._phase = _phase;
        }