示例#1
0
 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;
 }
示例#2
0
        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;
        }
示例#3
0
		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;
		}
示例#4
0
 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;
 }
示例#5
0
        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;
        }
示例#6
0
        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;
        }
示例#7
0
        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;
        }
示例#8
0
        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;
        }
示例#9
0
 public AttachUnit(Actor self, Actor cargo)
 {
     this.cargo = cargo;
     carryable  = cargo.Trait <Carryable>();
     carryall   = self.Trait <Carryall>();
 }
示例#10
0
 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>();
 }