Example #1
0
 public Researches(ActorInitializer init, ResearchesInfo info)
     : base(info)
 {
     this.info            = info;
     this.researchable    = init.Self.TraitOrDefault <Researchable>();
     this.developerMode   = init.Self.Owner.PlayerActor.TraitOrDefault <DeveloperMode>();
     this.playerResources = init.Self.Owner.PlayerActor.TraitOrDefault <PlayerResources>();
     this.timeFactor      = init.Self.World.WorldActor.TraitOrDefault <ResearchDuration>().Duration;
 }
Example #2
0
 public Researches(ActorInitializer init, ResearchesInfo info)
     : base(info)
 {
     this.info       = info;
     self            = init.Self;
     researchable    = init.Self.Trait <Researchable>();
     developerMode   = init.Self.Owner.PlayerActor.Trait <DeveloperMode>();
     playerResources = init.Self.Owner.PlayerActor.Trait <PlayerResources>();
 }