aboutsummaryrefslogtreecommitdiff
path: root/licenses/licenses.gd
diff options
context:
space:
mode:
Diffstat (limited to 'licenses/licenses.gd')
-rw-r--r--licenses/licenses.gd23
1 files changed, 23 insertions, 0 deletions
diff --git a/licenses/licenses.gd b/licenses/licenses.gd
new file mode 100644
index 0000000..87a8d47
--- /dev/null
+++ b/licenses/licenses.gd
@@ -0,0 +1,23 @@
+extends Node
+
+const font_b612: String = "res://licenses/font_b612.txt"
+const godot: String = "res://licenses/godot.txt"
+
+# @DAM For now, it just keeping track of licenses and storing a sample code of how to read the files.
+
+func _ready():
+# load_file(file)
+ pass
+
+func load_file(file: String):
+ var f = File.new()
+ f.open(file, File.READ)
+ var index = 1
+ while not f.eof_reached(): # iterate through all lines until the end of file is reached
+ var line = f.get_line()
+ line += " "
+ print(line + str(index))
+
+ index += 1
+ f.close()
+ return