mirror of
https://github.com/Relintai/world_generator_addon.git
synced 2024-11-19 20:47:19 +01:00
Fix test resource.
This commit is contained in:
parent
64a93ab374
commit
59006f2c33
@ -1,4 +1,4 @@
|
|||||||
[gd_resource type="Resource" load_steps=40 format=2]
|
[gd_resource type="Resource" load_steps=34 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/world_generator/resources/world_gen_world.gd" type="Script" id=1]
|
[ext_resource path="res://addons/world_generator/resources/world_gen_world.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/world_generator/resources/continent.gd" type="Script" id=2]
|
[ext_resource path="res://addons/world_generator/resources/continent.gd" type="Script" id=2]
|
||||||
@ -12,24 +12,35 @@
|
|||||||
resource_name = "qwe"
|
resource_name = "qwe"
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
rect = Rect2( 21, 25, 150, 79 )
|
rect = Rect2( 21, 25, 150, 79 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
|
subzone_props = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=15]
|
[sub_resource type="Resource" id=15]
|
||||||
resource_name = "we"
|
resource_name = "we"
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
rect = Rect2( 7, 9, 54, 34 )
|
rect = Rect2( 7, 9, 54, 34 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
|
subzone_props = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=34]
|
[sub_resource type="Resource" id=34]
|
||||||
resource_name = "yy"
|
resource_name = "yy"
|
||||||
script = ExtResource( 7 )
|
script = ExtResource( 7 )
|
||||||
rect = Rect2( 66, 11, 100, 91 )
|
rect = Rect2( 66, 11, 100, 91 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
|
subzone_props = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=8]
|
[sub_resource type="Resource" id=8]
|
||||||
resource_name = "asdasr"
|
resource_name = "asdasr"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
rect = Rect2( 35, 21, 191.4, 127.8 )
|
rect = Rect2( 35, 21, 191.4, 127.8 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ SubResource( 14 ), SubResource( 15 ), SubResource( 34 ) ]
|
subzones = [ SubResource( 14 ), SubResource( 15 ), SubResource( 34 ) ]
|
||||||
|
|
||||||
@ -37,6 +48,8 @@ subzones = [ SubResource( 14 ), SubResource( 15 ), SubResource( 34 ) ]
|
|||||||
resource_name = "qqq"
|
resource_name = "qqq"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
rect = Rect2( 17, 59, 200.4, 52 )
|
rect = Rect2( 17, 59, 200.4, 52 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
|
||||||
@ -44,6 +57,8 @@ subzones = [ ]
|
|||||||
resource_name = "trtrtr"
|
resource_name = "trtrtr"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
rect = Rect2( 0, 0, 57.1, 45.8 )
|
rect = Rect2( 0, 0, 57.1, 45.8 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
|
||||||
@ -92,6 +107,8 @@ func setup_property_inspector(inspector) -> void:
|
|||||||
resource_name = "trtrtr (Duplicate)"
|
resource_name = "trtrtr (Duplicate)"
|
||||||
script = SubResource( 25 )
|
script = SubResource( 25 )
|
||||||
rect = Rect2( 64, 6, 158.1, 39.8 )
|
rect = Rect2( 64, 6, 158.1, 39.8 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
|
||||||
@ -99,6 +116,8 @@ subzones = [ ]
|
|||||||
resource_name = "tttte"
|
resource_name = "tttte"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
rect = Rect2( 103, 28, 100, 100 )
|
rect = Rect2( 103, 28, 100, 100 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
|
||||||
@ -106,29 +125,47 @@ subzones = [ ]
|
|||||||
resource_name = "yu"
|
resource_name = "yu"
|
||||||
script = ExtResource( 6 )
|
script = ExtResource( 6 )
|
||||||
rect = Rect2( 88, 21, 100, 100 )
|
rect = Rect2( 88, 21, 100, 100 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
zone_radius = 0.5
|
||||||
|
zone_bevel = 0.3
|
||||||
|
zone_base = 0.0
|
||||||
|
|
||||||
[sub_resource type="Resource" id=1]
|
[sub_resource type="Resource" id=1]
|
||||||
resource_name = "wwww"
|
resource_name = "wwww"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 163, 35, 241, 158 )
|
rect = Rect2( 163, 35, 241, 158 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
zones = [ SubResource( 8 ), SubResource( 13 ), SubResource( 24 ), SubResource( 26 ), SubResource( 32 ), SubResource( 35 ) ]
|
zones = [ SubResource( 8 ), SubResource( 13 ), SubResource( 24 ), SubResource( 26 ), SubResource( 32 ), SubResource( 35 ) ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=2]
|
[sub_resource type="Resource" id=2]
|
||||||
resource_name = "efefef"
|
resource_name = "efefef"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 107, 271, 100, 49 )
|
rect = Rect2( 107, 271, 100, 49 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=3]
|
[sub_resource type="Resource" id=3]
|
||||||
resource_name = "grgrg"
|
resource_name = "grgrg"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 498, 185, 100, 100 )
|
rect = Rect2( 498, 185, 100, 100 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=9]
|
[sub_resource type="Resource" id=9]
|
||||||
resource_name = "asd"
|
resource_name = "asd"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
rect = Rect2( 528, 34, 0, 0 )
|
rect = Rect2( 528, 34, 0, 0 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
|
||||||
@ -136,6 +173,8 @@ subzones = [ ]
|
|||||||
resource_name = "qqq"
|
resource_name = "qqq"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
rect = Rect2( 528, 34, 0, 0 )
|
rect = Rect2( 528, 34, 0, 0 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
|
||||||
@ -143,12 +182,17 @@ subzones = [ ]
|
|||||||
resource_name = "qwdasd"
|
resource_name = "qwdasd"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 522, 29, 63, 54 )
|
rect = Rect2( 522, 29, 63, 54 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
zones = [ SubResource( 9 ), SubResource( 10 ) ]
|
zones = [ SubResource( 9 ), SubResource( 10 ) ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=11]
|
[sub_resource type="Resource" id=11]
|
||||||
resource_name = "q"
|
resource_name = "q"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
rect = Rect2( 14, 11, 53, 59 )
|
rect = Rect2( 14, 11, 53, 59 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
subzones = [ ]
|
subzones = [ ]
|
||||||
|
|
||||||
@ -156,101 +200,8 @@ subzones = [ ]
|
|||||||
resource_name = "qwe"
|
resource_name = "qwe"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 473, 331, 100, 100 )
|
rect = Rect2( 473, 331, 100, 100 )
|
||||||
zones = [ SubResource( 11 ) ]
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
[sub_resource type="GDScript" id=16]
|
|
||||||
script/source = "tool
|
|
||||||
extends \"res://addons/world_generator/resources/world_gen_base_resource.gd\"
|
|
||||||
class_name Continent
|
|
||||||
|
|
||||||
export(Array) var zones : Array
|
|
||||||
|
|
||||||
func get_content() -> Array:
|
|
||||||
return zones
|
|
||||||
|
|
||||||
func set_content(arr : Array) -> void:
|
|
||||||
zones = arr
|
|
||||||
|
|
||||||
func create_content(item_name : String = \"\") -> void:
|
|
||||||
var zone : Zone = Zone.new()
|
|
||||||
zone.resource_name = item_name
|
|
||||||
|
|
||||||
var r : Rect2 = get_rect()
|
|
||||||
r.position = Vector2()
|
|
||||||
r.size.x /= 10.0
|
|
||||||
r.size.y /= 10.0
|
|
||||||
|
|
||||||
zone.set_rect(r)
|
|
||||||
|
|
||||||
add_content(zone)
|
|
||||||
|
|
||||||
func add_content(entry : WorldGenBaseResource) -> void:
|
|
||||||
zones.append(entry)
|
|
||||||
emit_changed()
|
|
||||||
|
|
||||||
func remove_content_entry(entry : WorldGenBaseResource) -> void:
|
|
||||||
for i in range(zones.size()):
|
|
||||||
if zones[i] == entry:
|
|
||||||
zones.remove(i)
|
|
||||||
emit_changed()
|
|
||||||
return
|
|
||||||
|
|
||||||
func setup_property_inspector(inspector) -> void:
|
|
||||||
.setup_property_inspector(inspector)
|
|
||||||
"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id=17]
|
|
||||||
resource_name = "qwetwwqasd"
|
|
||||||
script = SubResource( 16 )
|
|
||||||
rect = Rect2( 473, 331, 100, 100 )
|
|
||||||
locked = false
|
|
||||||
zones = [ SubResource( 11 ) ]
|
|
||||||
|
|
||||||
[sub_resource type="GDScript" id=18]
|
|
||||||
script/source = "tool
|
|
||||||
extends \"res://addons/world_generator/resources/world_gen_base_resource.gd\"
|
|
||||||
class_name Continent
|
|
||||||
|
|
||||||
export(Array) var zones : Array
|
|
||||||
|
|
||||||
func get_content() -> Array:
|
|
||||||
return zones
|
|
||||||
|
|
||||||
func set_content(arr : Array) -> void:
|
|
||||||
zones = arr
|
|
||||||
|
|
||||||
func create_content(item_name : String = \"\") -> void:
|
|
||||||
var zone : Zone = Zone.new()
|
|
||||||
zone.resource_name = item_name
|
|
||||||
|
|
||||||
var r : Rect2 = get_rect()
|
|
||||||
r.position = Vector2()
|
|
||||||
r.size.x /= 10.0
|
|
||||||
r.size.y /= 10.0
|
|
||||||
|
|
||||||
zone.set_rect(r)
|
|
||||||
|
|
||||||
add_content(zone)
|
|
||||||
|
|
||||||
func add_content(entry : WorldGenBaseResource) -> void:
|
|
||||||
zones.append(entry)
|
|
||||||
emit_changed()
|
|
||||||
|
|
||||||
func remove_content_entry(entry : WorldGenBaseResource) -> void:
|
|
||||||
for i in range(zones.size()):
|
|
||||||
if zones[i] == entry:
|
|
||||||
zones.remove(i)
|
|
||||||
emit_changed()
|
|
||||||
return
|
|
||||||
|
|
||||||
func setup_property_inspector(inspector) -> void:
|
|
||||||
.setup_property_inspector(inspector)
|
|
||||||
"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id=19]
|
|
||||||
resource_name = "qwesat"
|
|
||||||
script = SubResource( 18 )
|
|
||||||
rect = Rect2( 613, 346, 100, 100 )
|
|
||||||
locked = false
|
locked = false
|
||||||
zones = [ SubResource( 11 ) ]
|
zones = [ SubResource( 11 ) ]
|
||||||
|
|
||||||
@ -258,52 +209,8 @@ zones = [ SubResource( 11 ) ]
|
|||||||
resource_name = "ggg"
|
resource_name = "ggg"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 26, 51, 100, 100 )
|
rect = Rect2( 26, 51, 100, 100 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
[sub_resource type="GDScript" id=21]
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
script/source = "tool
|
|
||||||
extends \"res://addons/world_generator/resources/world_gen_base_resource.gd\"
|
|
||||||
class_name Continent
|
|
||||||
|
|
||||||
export(Array) var zones : Array
|
|
||||||
|
|
||||||
func get_content() -> Array:
|
|
||||||
return zones
|
|
||||||
|
|
||||||
func set_content(arr : Array) -> void:
|
|
||||||
zones = arr
|
|
||||||
|
|
||||||
func create_content(item_name : String = \"\") -> void:
|
|
||||||
var zone : Zone = Zone.new()
|
|
||||||
zone.resource_name = item_name
|
|
||||||
|
|
||||||
var r : Rect2 = get_rect()
|
|
||||||
r.position = Vector2()
|
|
||||||
r.size.x /= 10.0
|
|
||||||
r.size.y /= 10.0
|
|
||||||
|
|
||||||
zone.set_rect(r)
|
|
||||||
|
|
||||||
add_content(zone)
|
|
||||||
|
|
||||||
func add_content(entry : WorldGenBaseResource) -> void:
|
|
||||||
zones.append(entry)
|
|
||||||
emit_changed()
|
|
||||||
|
|
||||||
func remove_content_entry(entry : WorldGenBaseResource) -> void:
|
|
||||||
for i in range(zones.size()):
|
|
||||||
if zones[i] == entry:
|
|
||||||
zones.remove(i)
|
|
||||||
emit_changed()
|
|
||||||
return
|
|
||||||
|
|
||||||
func setup_property_inspector(inspector) -> void:
|
|
||||||
.setup_property_inspector(inspector)
|
|
||||||
"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id=22]
|
|
||||||
resource_name = "ggg (Duplicate)"
|
|
||||||
script = SubResource( 21 )
|
|
||||||
rect = Rect2( 33, 181, 100, 100 )
|
|
||||||
locked = false
|
locked = false
|
||||||
zones = [ ]
|
zones = [ ]
|
||||||
|
|
||||||
@ -311,41 +218,72 @@ zones = [ ]
|
|||||||
resource_name = "eeqqq"
|
resource_name = "eeqqq"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 256, 365, 100, 100 )
|
rect = Rect2( 256, 365, 100, 100 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=27]
|
[sub_resource type="Resource" id=27]
|
||||||
resource_name = "asd"
|
resource_name = "asd"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 337, 79, 100, 100 )
|
rect = Rect2( 337, 79, 100, 100 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=28]
|
[sub_resource type="Resource" id=28]
|
||||||
resource_name = "asd"
|
resource_name = "asd"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 244, 234, 100, 100 )
|
rect = Rect2( 244, 234, 100, 100 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=29]
|
[sub_resource type="Resource" id=29]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 377, 69, 284, 238 )
|
rect = Rect2( 377, 69, 284, 238 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=30]
|
[sub_resource type="Resource" id=30]
|
||||||
resource_name = "tttttt"
|
resource_name = "tttttt"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 188, 225, 233, 259 )
|
rect = Rect2( 188, 225, 233, 259 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=31]
|
[sub_resource type="Resource" id=31]
|
||||||
resource_name = "ttttyuqtttt"
|
resource_name = "ttttyuqtttt"
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
rect = Rect2( 339, 76, 220, 170 )
|
rect = Rect2( 339, 76, 220, 170 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
|
locked = false
|
||||||
|
zones = [ ]
|
||||||
|
|
||||||
[sub_resource type="Resource" id=33]
|
[sub_resource type="Resource" id=33]
|
||||||
resource_name = "qttt"
|
resource_name = "qttt"
|
||||||
script = ExtResource( 5 )
|
script = ExtResource( 5 )
|
||||||
rect = Rect2( 99, 78, 213, 105 )
|
rect = Rect2( 99, 78, 213, 105 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
zones = [ ]
|
zones = [ ]
|
||||||
|
continent_radius = 0.5
|
||||||
|
continent_bevel = 0.3
|
||||||
|
continent_base = 0.0
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
resource_name = "asdasdsse"
|
resource_name = "asdasdsse"
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
rect = Rect2( 0, 0, 1000, 1000 )
|
rect = Rect2( 0, 0, 1000, 1000 )
|
||||||
|
min_size = Vector2i( 1, 1 )
|
||||||
|
max_size = Vector2i( 1e+06, 1e+06 )
|
||||||
locked = false
|
locked = false
|
||||||
continents = [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 17 ), SubResource( 19 ), SubResource( 20 ), SubResource( 22 ), SubResource( 23 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 33 ) ]
|
continents = [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 20 ), SubResource( 23 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 33 ) ]
|
||||||
|
Loading…
Reference in New Issue
Block a user