public PickupUnit(Actor self, Actor cargo) { this.cargo = cargo; carryable = cargo.Trait<Carryable>(); cargoFacing = cargo.Trait<IFacing>(); movement = self.Trait<IMove>(); carryall = self.Trait<Carryall>(); helicopter = self.Trait<Helicopter>(); selfFacing = self.Trait<IFacing>(); state = State.Intercept; }
public PickupUnit(Actor self, Actor cargo, int delay) { this.cargo = cargo; this.delay = delay; carryable = cargo.Trait <Carryable>(); carryableFacing = cargo.Trait <IFacing>(); carryableBody = cargo.Trait <BodyOrientation>(); carryall = self.Trait <Carryall>(); ChildHasPriority = false; }
public DeliverUnit(Actor self) { carryall = self.Trait<Carryall>(); this.self = self; cargo = carryall.Carrying; movement = self.Trait<IMove>(); carryable = cargo.Trait<Carryable>(); aircraft = self.Trait<Aircraft>(); positionable = cargo.Trait<IPositionable>(); cargoFacing = cargo.Trait<IFacing>(); selfFacing = self.Trait<IFacing>(); state = State.Transport; }
public DeliverUnit(Actor self) { carryall = self.Trait <Carryall>(); this.self = self; cargo = carryall.Carrying; movement = self.Trait <IMove>(); carryable = cargo.Trait <Carryable>(); aircraft = self.Trait <Aircraft>(); positionable = cargo.Trait <IPositionable>(); cargoFacing = cargo.Trait <IFacing>(); selfFacing = self.Trait <IFacing>(); state = State.Transport; }
public DeliverUnit(Actor self, CPos destination) { this.self = self; this.destination = destination; carryallFacing = self.Trait<IFacing>(); carryall = self.Trait<Carryall>(); body = self.Trait<BodyOrientation>(); carryable = carryall.Carryable.Trait<Carryable>(); positionable = carryall.Carryable.Trait<IPositionable>(); carryableFacing = carryall.Carryable.Trait<IFacing>(); state = State.Transport; }
public PickupUnit(Actor self, Actor cargo, int delay) { this.cargo = cargo; this.delay = delay; carryable = cargo.Trait <Carryable>(); carryableFacing = cargo.Trait <IFacing>(); carryableBody = cargo.Trait <BodyOrientation>(); movement = self.Trait <IMove>(); carryall = self.Trait <Carryall>(); carryallFacing = self.Trait <IFacing>(); state = PickupState.Intercept; }
public PickupUnit(Actor self, Actor cargo, int delay) { this.cargo = cargo; this.delay = delay; carryable = cargo.Trait<Carryable>(); carryableFacing = cargo.Trait<IFacing>(); carryableBody = cargo.Trait<BodyOrientation>(); movement = self.Trait<IMove>(); carryall = self.Trait<Carryall>(); carryallFacing = self.Trait<IFacing>(); state = State.Intercept; }
public DeliverUnit(Actor self, CPos destination) { this.self = self; this.destination = destination; carryallFacing = self.Trait <IFacing>(); carryall = self.Trait <Carryall>(); body = self.Trait <BodyOrientation>(); carryable = carryall.Carryable.Trait <Carryable>(); positionable = carryall.Carryable.Trait <IPositionable>(); carryableFacing = carryall.Carryable.Trait <IFacing>(); state = DeliveryState.Transport; }
public AttachUnit(Actor self, Actor cargo) { this.cargo = cargo; carryable = cargo.Trait <Carryable>(); carryall = self.Trait <Carryall>(); }
public ReleaseUnit(Actor self) { facing = self.Trait <IFacing>(); carryall = self.Trait <Carryall>(); body = self.Trait <BodyOrientation>(); }
public CarryallProperties(ScriptContext context, Actor self) : base(context, self) { carryall = Self.Trait <Carryall>(); }