public RAHarvesterDockSequence(Actor self, Actor proc, int angle) { this.proc = proc; this.angle = angle; state = State.Turn; harv = self.Trait<Harvester>(); ru = self.Trait<RenderUnit>(); }
public HarvesterDockSequence(Actor self, Actor proc) { this.proc = proc; state = State.Turn; harv = self.Trait<Harvester>(); ru = self.Trait<RenderUnit>(); startDock = self.Trait<IHasLocation>().PxPosition; endDock = proc.Trait<IHasLocation>().PxPosition + new PVecInt(-15,8); }
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; }