Example #1
0
 public Sell(Actor self)
 {
     health = self.TraitOrDefault<Health>();
     sellableInfo = self.Info.TraitInfo<SellableInfo>();
     playerResources = self.Owner.PlayerActor.Trait<PlayerResources>();
     IsInterruptible = false;
 }
Example #2
0
 public Sell(Actor self)
 {
     health          = self.TraitOrDefault <Health>();
     sellableInfo    = self.Info.TraitInfo <SellableInfo>();
     playerResources = self.Owner.PlayerActor.Trait <PlayerResources>();
     IsInterruptible = false;
 }
Example #3
0
 public Sell(Actor self, bool showTicks)
 {
     this.showTicks  = showTicks;
     health          = self.TraitOrDefault <IHealth>();
     sellableInfo    = self.Info.TraitInfo <SellableInfo>();
     playerResources = self.Owner.PlayerActor.Trait <PlayerResources>();
     IsInterruptible = false;
 }
Example #4
0
 public Sell(Actor self)
 {
     health          = self.TraitOrDefault <Health>();
     sellableInfo    = self.Info.Traits.Get <SellableInfo>();
     playerResources = self.Owner.PlayerActor.Trait <PlayerResources>();
 }
Example #5
0
 public Sell(Actor self)
 {
     health = self.TraitOrDefault<Health>();
     sellableInfo = self.Info.Traits.Get<SellableInfo>();
     playerResources = self.Owner.PlayerActor.Trait<PlayerResources>();
 }