aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-03 11:53:32 +0100
committergingerBill <bill@gingerbill.org>2021-10-03 11:53:32 +0100
commit2bdae52fed2ac0845ebb24348f3834dbc63f6d34 (patch)
tree02b05813607d403681bbf41443eafcaa510e430b /src/entity.cpp
parentb3a66b3950283853ce99a7da71ad8f1850fba0d8 (diff)
Add @(init) attribute for procedures, allowing for procedures to be called at startup
These procedures will be called after global variables have been initialized as normal
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index b79a38a1a..86fefcf89 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -73,6 +73,7 @@ enum EntityFlag : u64 {
EntityFlag_SwitchValue = 1ull<<29,
EntityFlag_Test = 1ull<<30,
+ EntityFlag_Init = 1ull<<31,
EntityFlag_Overridden = 1ull<<63,