Exemplo n.º 1
0
 internal CustomPathInfo(Dictionary <string, Texture2D> textures, CustomPathConfig config)
 {
     this.Seasonal     = true;
     this.Textures     = textures;
     this.Name         = config.Name;
     this.Alternates   = config.Alternatives;
     this.Price        = config.Price;
     this.Salesman     = config.Salesman;
     this.Requirements = config.Requirements;
     this.Speed        = config.SpeedBoost;
 }
Exemplo n.º 2
0
 /*********
 ** Public methods
 *********/
 internal CustomPathInfo(Texture2D texture, CustomPathConfig config)
 {
     this.Seasonal = false;
     this.Textures = new Dictionary <string, Texture2D> {
         { "default", texture }
     };
     this.Name         = config.Name;
     this.Alternates   = config.Alternatives;
     this.Price        = config.Price;
     this.Salesman     = config.Salesman;
     this.Requirements = config.Requirements;
     this.Speed        = config.SpeedBoost;
 }