Ejemplo n.º 1
0
        public override bool Tick(Actor self)
        {
            // Wait for deployment
            if (deployment.DeployState == DeployState.Deploying || deployment.DeployState == DeployState.Undeploying)
            {
                return(false);
            }

            if (initiated)
            {
                return(true);
            }

            if (deployment.DeployState == DeployState.Undeployed)
            {
                deployment.Deploy();
            }
            else
            {
                deployment.Undeploy();
            }

            initiated = true;
            return(false);
        }
Ejemplo n.º 2
0
        public override Activity Tick(Actor self)
        {
            // Wait for deployment
            if (deployment.DeployState == DeployState.Deploying || deployment.DeployState == DeployState.Undeploying)
            {
                return(this);
            }

            if (initiated)
            {
                return(NextActivity);
            }

            if (deployment.DeployState == DeployState.Undeployed)
            {
                deployment.Deploy();
            }
            else
            {
                deployment.Undeploy();
            }

            initiated = true;
            return(this);
        }
Ejemplo n.º 3
0
        public override Activity Tick(Actor self)
        {
            IsInterruptible = false;             // must DEPLOY from now.
            deploy.Undeploy();

            // Wait for deployment
            if (deploy.DeployState == DeployState.Undeploying)
            {
                return(this);
            }

            return(NextActivity);
        }
        public override Activity Tick(Actor self)
        {
            if (ChildActivity != null)
            {
                ActivityUtils.RunActivity(self, ChildActivity);
                return(this);
            }

            if (IsCanceled)
            {
                return(NextActivity);
            }

            IsInterruptible = false;             // must DEPLOY from now.
            deploy.Undeploy();

            // Wait for deployment
            if (deploy.DeployState == DeployState.Undeploying)
            {
                return(this);
            }

            return(NextActivity);
        }