aboutsummaryrefslogtreecommitdiff
path: root/plugins/terrain/terrain.gd
diff options
context:
space:
mode:
authorJuan Linietsky2014-02-09 22:10:30 -0300
committerJuan Linietsky2014-02-09 22:10:30 -0300
commit0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac (patch)
tree276c4d099e178eb67fbd14f61d77b05e3808e9e3 /plugins/terrain/terrain.gd
parent0e49da1687bc8192ed210947da52c9e5c5f301bb (diff)
downloadgodot-0b806ee.tar.gz
godot-0b806ee.tar.zst
godot-0b806ee.zip
GODOT IS OPEN SOURCE
Diffstat (limited to '')
-rw-r--r--plugins/terrain/terrain.gd17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/terrain/terrain.gd b/plugins/terrain/terrain.gd
new file mode 100644
index 000000000..b3e3121e7
--- /dev/null
+++ b/plugins/terrain/terrain.gd
@@ -0,0 +1,17 @@
+tool # Always declare as Tool, if it's meant to run in the editor.
+extends EditorPlugin
+
+
+func get_name():
+ return "Terrain"
+
+
+func _init():
+ print("PLUGIN INIT")
+
+
+func _enter_scene():
+ add_custom_type("Terrain","Spatial",preload("terrain_node.gd"),preload("terrain.png"))
+
+func _exit_scene():
+ remove_custom_type("Terrain")