Пример #1
0
 public tree_class(terraincomposer_save script, bool new_filter)
 {
     this.interface_display = true;
     this.swap_text = "S";
     this.color_tree = new Color((float)1, (float)1, (float)1, (float)1);
     this.precolor_range = new precolor_range_class(1, false);
     this.link_start = true;
     this.link_end = true;
     this.width_start = (float)1;
     this.width_end = 2.5f;
     this.height_start = (float)1;
     this.height_end = 2.5f;
     this.unlink = 0.25f;
     this.random_position = true;
     this.distance_include_scale = true;
     this.distance_include_scale_group = true;
     this.objects_placed = new List<distance_class>();
     this.prefilter = new prefilter_class();
     this.ray_length = (float)20;
     this.cast_height = (float)20;
     this.ray_radius = (float)1;
     this.ray_direction = new Vector3((float)0, (float)-1, (float)0);
     if (new_filter)
     {
         script.add_filter(0, this.prefilter);
         script.filter[script.filter.Count - 1].type = condition_type_enum.Random;
         script.add_subfilter(0, script.filter[script.filter.Count - 1].presubfilter);
         script.subfilter[script.subfilter.Count - 1].type = condition_type_enum.Random;
         script.subfilter[script.subfilter.Count - 1].from_tree = true;
     }
     this.precolor_range.color_range[0].color_start = new Color(0.75f, 0.75f, 0.75f);
     this.precolor_range.color_range[0].color_end = new Color((float)1, (float)1, (float)1);
 }
Пример #2
0
 public tree_class(terraincomposer_save script, bool new_filter)
 {
     this.interface_display            = true;
     this.swap_text                    = "S";
     this.color_tree                   = new Color((float)1, (float)1, (float)1, (float)1);
     this.precolor_range               = new precolor_range_class(1, false);
     this.link_start                   = true;
     this.link_end                     = true;
     this.width_start                  = (float)1;
     this.width_end                    = 2.5f;
     this.height_start                 = (float)1;
     this.height_end                   = 2.5f;
     this.unlink                       = 0.25f;
     this.random_position              = true;
     this.distance_include_scale       = true;
     this.distance_include_scale_group = true;
     this.objects_placed               = new List <distance_class>();
     this.prefilter                    = new prefilter_class();
     this.ray_length                   = (float)20;
     this.cast_height                  = (float)20;
     this.ray_radius                   = (float)1;
     this.ray_direction                = new Vector3((float)0, (float)-1, (float)0);
     if (new_filter)
     {
         script.add_filter(0, this.prefilter);
         script.filter[script.filter.Count - 1].type = condition_type_enum.Random;
         script.add_subfilter(0, script.filter[script.filter.Count - 1].presubfilter);
         script.subfilter[script.subfilter.Count - 1].type      = condition_type_enum.Random;
         script.subfilter[script.subfilter.Count - 1].from_tree = true;
     }
     this.precolor_range.color_range[0].color_start = new Color(0.75f, 0.75f, 0.75f);
     this.precolor_range.color_range[0].color_end   = new Color((float)1, (float)1, (float)1);
 }
Пример #3
0
 public layer_class()
 {
     this.active         = true;
     this.color_layer    = new Color(1.5f, 1.5f, 1.5f, (float)1);
     this.output         = layer_output_enum.color;
     this.strength       = (float)1;
     this.zoom           = (float)1;
     this.offset_range   = new Vector2((float)5, (float)5);
     this.text           = string.Empty;
     this.text_placed    = string.Empty;
     this.remarks        = new remarks_class();
     this.height_output  = new height_output_class();
     this.color_output   = new color_output_class();
     this.splat_output   = new splat_output_class();
     this.tree_output    = new tree_output_class();
     this.grass_output   = new grass_output_class();
     this.object_output  = new object_output_class();
     this.swap_text      = "S";
     this.prefilter      = new prefilter_class();
     this.objects_placed = new List <distance_class>();
     this.object_output  = new object_output_class();
 }
Пример #4
0
 public layer_class()
 {
     this.active = true;
     this.color_layer = new Color(1.5f, 1.5f, 1.5f, (float)1);
     this.output = layer_output_enum.color;
     this.strength = (float)1;
     this.zoom = (float)1;
     this.offset_range = new Vector2((float)5, (float)5);
     this.text = string.Empty;
     this.text_placed = string.Empty;
     this.remarks = new remarks_class();
     this.height_output = new height_output_class();
     this.color_output = new color_output_class();
     this.splat_output = new splat_output_class();
     this.tree_output = new tree_output_class();
     this.grass_output = new grass_output_class();
     this.object_output = new object_output_class();
     this.swap_text = "S";
     this.prefilter = new prefilter_class();
     this.objects_placed = new List<distance_class>();
     this.object_output = new object_output_class();
 }