public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait <Sandworm>(); positionable = self.Trait <Mobile>(); swallow = self.Trait <AttackSwallow>(); manager = self.Trait <UpgradeManager>(); radarPings = self.World.WorldActor.TraitOrDefault <RadarPings>(); }
public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait<Sandworm>(); positionable = self.Trait<Mobile>(); swallow = self.Trait<AttackSwallow>(); manager = self.Trait<UpgradeManager>(); radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); }
public SwallowActor(Actor self, Target target, Armament a, IFacing facing) { this.target = target; this.facing = facing; armament = a; weapon = a.Weapon; sandworm = self.Trait <Sandworm>(); positionable = self.Trait <Mobile>(); swallow = self.Trait <AttackSwallow>(); }
public EatResource(Actor self, CPos targetcell) { harv = self.Trait <Sandworm>(); harvInfo = self.Info.TraitInfo <SandwormInfo>(); facing = self.Trait <IFacing>(); body = self.Trait <BodyOrientation>(); move = self.Trait <IMove>(); claimLayer = self.World.WorldActor.Trait <ResourceClaimLayer>(); resLayer = self.World.WorldActor.Trait <ResourceLayer>(); this.targetCell = targetcell; }
public FindAndEatResources(Actor self, Actor deliverActor = null) { harv = self.Trait <Sandworm>(); harvInfo = self.Info.TraitInfo <SandwormInfo>(); mobile = self.Trait <Mobile>(); locomotorInfo = mobile.Info.LocomotorInfo; claimLayer = self.World.WorldActor.Trait <ResourceClaimLayer>(); pathFinder = self.World.WorldActor.Trait <IPathFinder>(); domainIndex = self.World.WorldActor.Trait <DomainIndex>(); this.deliverActor = deliverActor; }
public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait <Sandworm>(); positionable = self.Trait <Mobile>(); swallow = self.Trait <AttackSwallow>(); renderUnit = self.Trait <RenderUnit>(); radarPings = self.World.WorldActor.TraitOrDefault <RadarPings>(); countdown = swallow.Info.AttackTime; renderUnit.DefaultAnimation.ReplaceAnim("burrowed"); stance = AttackState.Burrowed; location = target.Actor.Location; }
public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait <Sandworm>(); positionable = self.Trait <Mobile>(); swallow = self.Trait <AttackSwallow>(); withSpriteBody = self.Trait <WithSpriteBody>(); radarPings = self.World.WorldActor.TraitOrDefault <RadarPings>(); countdown = swallow.Info.AttackTime; withSpriteBody.DefaultAnimation.ReplaceAnim(sandworm.Info.BurrowedSequence); stance = AttackState.Burrowed; location = target.Actor.Location; }
public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait<Sandworm>(); positionable = self.Trait<Mobile>(); swallow = self.Trait<AttackSwallow>(); withSpriteBody = self.Trait<WithSpriteBody>(); radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); countdown = swallow.Info.AttackTime; withSpriteBody.DefaultAnimation.ReplaceAnim(sandworm.Info.BurrowedSequence); stance = AttackState.Burrowed; location = target.Actor.Location; }
public SwallowActor(Actor self, Target target, WeaponInfo weapon) { this.target = target; this.weapon = weapon; sandworm = self.Trait<Sandworm>(); positionable = self.Trait<Mobile>(); swallow = self.Trait<AttackSwallow>(); renderUnit = self.Trait<RenderUnit>(); radarPings = self.World.WorldActor.TraitOrDefault<RadarPings>(); countdown = swallow.Info.AttackTime; renderUnit.DefaultAnimation.ReplaceAnim("burrowed"); stance = AttackState.Burrowed; location = target.Actor.Location; }