summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-11-10 21:20:43 +0100
committerrobojumper <robojumper@gmail.com>2024-11-13 19:08:38 +0100
commit3a45e6536a1deec0cd5a4c108dfeb4c374ca34d9 (patch)
tree018d678c476252f260ed68fb1c22ad991f4154f5 /src
parentfefe3af58f305a5543e2fe2c20f2415040dc4dd4 (diff)
Try to figure out how this virtual state thing works
Diffstat (limited to 'src')
-rw-r--r--src/d/a/npc/d_a_npc.cpp26
-rw-r--r--src/d/a/npc/d_a_ordinary_npc.cpp5
2 files changed, 31 insertions, 0 deletions
diff --git a/src/d/a/npc/d_a_npc.cpp b/src/d/a/npc/d_a_npc.cpp
new file mode 100644
index 00000000..33bab964
--- /dev/null
+++ b/src/d/a/npc/d_a_npc.cpp
@@ -0,0 +1,26 @@
+#include "d/a/npc/d_a_npc.h"
+#include "s/s_StateID.hpp"
+
+fLiMgBa_c NPC_ACTOR_LIST;
+
+STATE_VIRTUAL_DEFINE(dAcNpc_c, Wait);
+STATE_VIRTUAL_DEFINE(dAcNpc_c, Demo);
+
+extern nw4r::ut::Color sColors[] = {
+ nw4r::ut::Color(0xEF, 0x30, 0x27, 0xFF),
+ nw4r::ut::Color(0, 0, 0, 0xFF),
+ nw4r::ut::Color(0xEF, 0x30, 0x27, 0),
+ nw4r::ut::Color(0xFF, 0xFF, 0xFF, 0),
+ nw4r::ut::Color(0xFE, 0xF8, 0x9D, 0xFF),
+ nw4r::ut::Color(0x88, 0x63, 0x36, 0x80),
+ nw4r::ut::Color(0x4F, 0x46, 0x33, 0xFF),
+ nw4r::ut::Color(0xD8, 0xC5, 0x8D, 0xFF),
+ nw4r::ut::Color(0x95, 0x69, 0x3B, 0xFF),
+ nw4r::ut::Color(0x50, 0x46, 0x32, 0),
+ nw4r::ut::Color(0xD8, 0xC5, 0x8D, 0),
+ nw4r::ut::Color(0x96, 0x69, 0x3C, 0),
+ nw4r::ut::Color(0, 0, 0, 0),
+};
+
+
+dAcNpc_c::dAcNpc_c() : mStateMgr(*this, sStateID::null) {}
diff --git a/src/d/a/npc/d_a_ordinary_npc.cpp b/src/d/a/npc/d_a_ordinary_npc.cpp
new file mode 100644
index 00000000..767a9c7e
--- /dev/null
+++ b/src/d/a/npc/d_a_ordinary_npc.cpp
@@ -0,0 +1,5 @@
+#include "d/a/npc/d_a_ordinary_npc.h"
+#include "d/a/npc/d_a_npc.h"
+#include "s/s_StateID.hpp"
+
+STATE_VIRTUAL_DEFINE(dAcOrdinaryNpc_c, Pain);