summaryrefslogtreecommitdiffhomepage
path: root/src/script-enums.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script-enums.hpp')
-rw-r--r--src/script-enums.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/script-enums.hpp b/src/script-enums.hpp
new file mode 100644
index 00000000..0cf9548d
--- /dev/null
+++ b/src/script-enums.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+namespace floormat {
+
+enum class script_lifecycle : uint8_t
+{
+ no_init, initializing, created, destroying, torn_down, COUNT,
+};
+
+enum class script_destroy_reason : uint8_t
+{
+ quit, // game is being shut down
+ kill, // object is being deleted from the gameworld
+ unassign, // script is unassigned from object
+ COUNT,
+};
+
+} // namespace floormat