public DeployInner(Actor self, GrantConditionOnDeploy deployment)
        {
            this.deployment = deployment;

            // Once deployment animation starts, the animation must finish.
            IsInterruptible = false;
        }
示例#2
0
 public SpawnerHarvesterHarvest(Actor self)
 {
     harv        = self.Trait <SpawnerHarvesterMaster>();
     harvInfo    = self.Info.TraitInfo <SpawnerHarvesterMasterInfo>();
     mobile      = self.Trait <Mobile>();
     mobileInfo  = self.Info.TraitInfo <MobileInfo>();
     deploy      = self.Trait <GrantConditionOnDeploy>();
     claimLayer  = self.World.WorldActor.TraitOrDefault <ResourceClaimLayer>();
     pathFinder  = self.World.WorldActor.Trait <IPathFinder>();
     domainIndex = self.World.WorldActor.Trait <DomainIndex>();
     tranforms   = self.Trait <Transforms>();
 }
 public UndeployForGrantedCondition(Actor self, GrantConditionOnDeploy deploy)
 {
     this.deploy = deploy;
 }
 public DeployForGrantedCondition(Actor self, GrantConditionOnDeploy deploy, bool moving = false)
 {
     this.deploy = deploy;
     this.moving = moving;
     canTurn     = self.Info.HasTraitInfo <IFacingInfo>();
 }
 public DeployForGrantedCondition(Actor self, GrantConditionOnDeploy deploy)
 {
     this.deploy = deploy;
     canTurn     = self.Info.HasTraitInfo <IFacingInfo>();
 }
示例#6
0
 public DetectorTraitWrapper(Actor actor)
 {
     Actor = actor;
     GrantConditionOnDeploy = actor.Trait <GrantConditionOnDeploy>();
 }