Exemple #1
0
 public UnloadBunkerCargo(Actor self, bool unloadAll)
 {
     this.self      = self;
     cargo          = self.Trait <BunkerCargo>();
     notifiers      = self.TraitsImplementing <INotifyUnload>().ToArray();
     this.unloadAll = unloadAll;
 }
 public EnterBunker(Actor passengerActor, Actor bunkerActor, WPos pos, bool willDisappear = true, int maxTries = 0, bool repathWhileMoving = true)
     : base(passengerActor, Target.FromActor(bunkerActor))
 {
     this.bunkerActor   = bunkerActor;
     bunkerCargo        = bunkerActor.Trait <BunkerCargo>();
     bunkerPassenger    = passengerActor.Trait <BunkerPassenger>();
     this.willDisappear = willDisappear;
 }
Exemple #3
0
 public UnloadBunkerCargo(Actor self, Target destination, WDist unloadRange, bool unloadAll = true)
 {
     this.self        = self;
     cargo            = self.Trait <BunkerCargo>();
     notifiers        = self.TraitsImplementing <INotifyUnload>().ToArray();
     this.unloadAll   = unloadAll;
     aircraft         = self.TraitOrDefault <Aircraft>();
     mobile           = self.TraitOrDefault <Mobile>();
     this.destination = destination;
     this.unloadRange = unloadRange;
 }