summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actAiBehavior.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-12-09 16:08:12 +0100
committerLéo Lam <leo@leolam.fr>2020-12-09 16:10:28 +0100
commitad32d1abe0fc202354042d46db924e227d7c26f6 (patch)
tree92082cafa9931716b91e087e58d8a2fd119f8fc5 /src/KingSystem/ActorSystem/actAiBehavior.cpp
parent632517f7279cc9f87d29ca2422d3debed3a51d90 (diff)
ksys/act: Start adding Behavior
Diffstat (limited to 'src/KingSystem/ActorSystem/actAiBehavior.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actAiBehavior.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/KingSystem/ActorSystem/actAiBehavior.cpp b/src/KingSystem/ActorSystem/actAiBehavior.cpp
new file mode 100644
index 00000000..ea86c732
--- /dev/null
+++ b/src/KingSystem/ActorSystem/actAiBehavior.cpp
@@ -0,0 +1,8 @@
+#include "KingSystem/ActorSystem/actAiBehavior.h"
+
+namespace ksys::act::ai {
+
+Behavior::Behavior(const InitArg& arg)
+ : mActor(arg.actor), mDefIdx(static_cast<u16>(arg.def_idx)) {}
+
+} // namespace ksys::act::ai