示例#1
0
 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>();
 }
示例#2
0
 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);
 }
示例#3
0
        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;
        }