Exemple #1
0
 public ExperienceTrickler(Actor self, ExperienceTricklerInfo info)
     : base(info)
 {
     this.info       = info;
     ticks           = info.InitialDelay;
     gainsExperience = self.Trait <GainsExperience>();
 }
Exemple #2
0
        protected override void Created(Actor self)
        {
            base.Created(self);

            gainsExp = self.TraitOrDefault <GainsExperience>();
            cargo    = self.TraitOrDefault <Cargo>();
        }
Exemple #3
0
 public DeliversExperience(ActorInitializer init, DeliversExperienceInfo info)
 {
     this.info       = info;
     self            = init.Self;
     gainsExperience = self.Trait <GainsExperience>();
 }
Exemple #4
0
 void INotifyCreated.Created(Actor self)
 {
     gainsExp = self.TraitOrDefault <GainsExperience>();
     cargo    = self.TraitOrDefault <Cargo>();
 }