summaryrefslogtreecommitdiff
path: root/scenes/stockticker/transactions.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/stockticker/transactions.gd')
-rw-r--r--scenes/stockticker/transactions.gd17
1 files changed, 17 insertions, 0 deletions
diff --git a/scenes/stockticker/transactions.gd b/scenes/stockticker/transactions.gd
new file mode 100644
index 0000000..daff901
--- /dev/null
+++ b/scenes/stockticker/transactions.gd
@@ -0,0 +1,17 @@
+extends Node2D
+
+## I need the signal-emitter to be the root node of this scene and when I
+## tried to just move the script it broke the stonk line so here this is I guess lol
+
+signal buy(amount: Variant)
+signal sell(amount: Variant)
+
+func _on_stonks_buy(amount: Variant) -> void:
+ print("-$%s" % amount.toString())
+ buy.emit(amount)
+
+
+func _on_stonks_sell(amount: Variant) -> void:
+ print("+$%s" % amount.toString())
+ sell.emit(amount)
+