mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
22 lines
495 B
GDScript
22 lines
495 B
GDScript
tool
|
|
extends "res://addons/world_generator/resources/world_gen_base_resource.gd"
|
|
class_name Zone
|
|
|
|
export(Array) var subzones : Array
|
|
|
|
func get_content() -> Array:
|
|
return subzones
|
|
|
|
func set_content(arr : Array) -> void:
|
|
subzones = arr
|
|
|
|
func add_content(item_name : String = "") -> void:
|
|
var subzone : SubZone = SubZone.new()
|
|
subzone.resource_name = item_name
|
|
|
|
subzones.append(subzone)
|
|
emit_changed()
|
|
|
|
func setup_property_inspector(inspector) -> void:
|
|
.setup_property_inspector(inspector)
|