summaryrefslogtreecommitdiff
path: root/shiftos_next/APIs/shiftorium_api.vb
diff options
context:
space:
mode:
Diffstat (limited to 'shiftos_next/APIs/shiftorium_api.vb')
-rw-r--r--shiftos_next/APIs/shiftorium_api.vb21
1 files changed, 21 insertions, 0 deletions
diff --git a/shiftos_next/APIs/shiftorium_api.vb b/shiftos_next/APIs/shiftorium_api.vb
new file mode 100644
index 0000000..39960e4
--- /dev/null
+++ b/shiftos_next/APIs/shiftorium_api.vb
@@ -0,0 +1,21 @@
+Module shiftorium_api
+ 'API for Shiftorium Applications.
+
+ Public listboxtoaddto As ListBox
+ Public codepoints As Integer
+
+ Public Sub DeductCP(ammount As Integer)
+ codepoints -= ammount
+ savegame()
+ End Sub
+
+ Public Sub AddCP(ammount As Integer)
+ codepoints += ammount
+ savegame()
+ End Sub
+
+ Public Sub AddItem(name As String, CP As Integer)
+ listboxtoaddto.Items.Add(name & " - " & CP & " CP")
+ End Sub
+
+End Module