コード例 #1
0
ファイル: value_class.cs プロジェクト: Bruno13/TheForest
 public value_class()
 {
     this.value                = new List <float>();
     this.select_value         = new List <float>();
     this.active               = new List <bool>();
     this.text                 = new List <string>();
     this.curve                = new AnimationCurve();
     this.animation_curve_math = new animation_curve_math_class();
 }
コード例 #2
0
 public grass_output_class()
 {
     this.active               = true;
     this.foldout              = true;
     this.color_grass          = new Color((float)2, (float)2, (float)2, (float)1);
     this.strength             = (float)1;
     this.grass_text           = "Grass:";
     this.mix                  = new List <float>();
     this.animation_curve_math = new animation_curve_math_class();
     this.curves               = new List <animation_curve_class>();
     this.grass                = new List <grass_class>();
     this.grass_value          = new value_class();
     this.grass_calc           = new List <float>();
     this.add_grass(0);
 }
コード例 #3
0
 public grass_output_class()
 {
     this.active = true;
     this.foldout = true;
     this.color_grass = new Color((float)2, (float)2, (float)2, (float)1);
     this.strength = (float)1;
     this.grass_text = "Grass:";
     this.mix = new List<float>();
     this.animation_curve_math = new animation_curve_math_class();
     this.curves = new List<animation_curve_class>();
     this.grass = new List<grass_class>();
     this.grass_value = new value_class();
     this.grass_calc = new List<float>();
     this.add_grass(0);
 }
コード例 #4
0
 public splat_output_class()
 {
     this.foldout = true;
     this.color_splat = new Color((float)2, (float)2, (float)2, (float)1);
     this.strength = (float)1;
     this.mix = new List<float>();
     this.splat_text = "Splat:";
     this.curves = new List<animation_curve_class>();
     this.animation_curve_math = new animation_curve_math_class();
     this.splat = new List<int>();
     this.splat_value = new value_class();
     this.splat_calc = new List<float>();
     this.swap_text = new List<string>();
     for (int i = 0; i < 3; i++)
     {
         this.add_splat(i, i);
     }
 }
コード例 #5
0
 public splat_output_class()
 {
     this.foldout              = true;
     this.color_splat          = new Color((float)2, (float)2, (float)2, (float)1);
     this.strength             = (float)1;
     this.mix                  = new List <float>();
     this.splat_text           = "Splat:";
     this.curves               = new List <animation_curve_class>();
     this.animation_curve_math = new animation_curve_math_class();
     this.splat                = new List <int>();
     this.splat_value          = new value_class();
     this.splat_calc           = new List <float>();
     this.swap_text            = new List <string>();
     for (int i = 0; i < 3; i++)
     {
         this.add_splat(i, i);
     }
 }
コード例 #6
0
 public precolor_range_class(int length, bool one_color1)
 {
     this.foldout = true;
     this.color_ranges_active = true;
     this.color_ranges_foldout = true;
     this.curve_red = new AnimationCurve();
     this.curve_green = new AnimationCurve();
     this.curve_blue = new AnimationCurve();
     this.animation_curve_math = new animation_curve_math_class();
     this.interface_display = true;
     this.text = "Color Range:";
     this.detect_max = 8;
     this.color_range = new List<color_range_class>();
     this.color_range_value = new value_class();
     for (int i = 0; i < length; i++)
     {
         this.add_color_range(i, one_color1);
     }
     this.one_color = one_color1;
     this.set_color_range_text();
     this.set_precolor_range_curve();
 }
コード例 #7
0
 public precolor_range_class(int length, bool one_color1)
 {
     this.foldout              = true;
     this.color_ranges_active  = true;
     this.color_ranges_foldout = true;
     this.curve_red            = new AnimationCurve();
     this.curve_green          = new AnimationCurve();
     this.curve_blue           = new AnimationCurve();
     this.animation_curve_math = new animation_curve_math_class();
     this.interface_display    = true;
     this.text              = "Color Range:";
     this.detect_max        = 8;
     this.color_range       = new List <color_range_class>();
     this.color_range_value = new value_class();
     for (int i = 0; i < length; i++)
     {
         this.add_color_range(i, one_color1);
     }
     this.one_color = one_color1;
     this.set_color_range_text();
     this.set_precolor_range_curve();
 }