summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 12:08:41 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 12:08:41 +1000
commit5359c011a08ef2e06ed54104cc16c32868ca88ff (patch)
treecc644bb54934fb5d1980bd502c6f93e3737505da /src
parentf926234600af1883c2be259360b44173bb7c12b4 (diff)
docs
Diffstat (limited to 'src')
-rw-r--r--src/core/triggers.h17
-rw-r--r--src/defines.h3
2 files changed, 19 insertions, 1 deletions
diff --git a/src/core/triggers.h b/src/core/triggers.h
new file mode 100644
index 0000000..a9ced17
--- /dev/null
+++ b/src/core/triggers.h
@@ -0,0 +1,17 @@
+#pragma once
+#include "defines.h"
+
+// Events/signals that get triggered by certain things that happen
+
+/*
+e.g.
+collider enters volume (collider)
+collider exits volume (collider)
+
+you could create a custom signal that only triggers when a collider has been inside a volume for 3 seconds
+listen for Enter, start timer, if hits 3 -> emit signal. Else, reset state
+
+Top-level triggers:
+level loaded
+
+*/ \ No newline at end of file
diff --git a/src/defines.h b/src/defines.h
index 7275a4d..a16d68e 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -53,8 +53,9 @@ CORE_DEFINE_HANDLE(Handle); // Untyped handle that can be casted to a strongly t
#define PUB // For collecting public APIs to expose in an amalgamation header file
-#define MB(x) ((size_t) x * 1000 * 1000)
#define KB(x) ((size_t) x * 1000)
+#define MB(x) ((size_t) x * 1000 * 1000)
+#define GB(x) ((size_t) x * 1000 * 1000 * 1000)
// NOTE: The below is now handled in xmake.lua
// Platform will inform renderer backend (unless user overrides)