summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2025-05-29 12:24:19 +0200
committerAetias <aetias@outlook.com>2025-05-29 12:24:19 +0200
commitd29c7c377e2808686d915992ef149a8652009e98 (patch)
treef9935751da78d9c6baf8961ee30e5e50a2d05c17 /include
parenta65e5547da4894b8d9aceaee2a81dbebd671ae3e (diff)
`ActorSpawner` 99%
Diffstat (limited to 'include')
-rw-r--r--include/Actor/Actor.hpp7
-rw-r--r--include/Actor/ActorSpawner.hpp19
2 files changed, 19 insertions, 7 deletions
diff --git a/include/Actor/Actor.hpp b/include/Actor/Actor.hpp
index f82d34ab..4d40a080 100644
--- a/include/Actor/Actor.hpp
+++ b/include/Actor/Actor.hpp
@@ -35,8 +35,8 @@ struct Actor_UnkStruct_020 {
/* 08 */ u8 mUnk_08[2];
/* 0a */ u8 mUnk_0a[2];
/* 0c */ unk8 mUnk_0c;
- /* 0d */ unk8 mUnk_0d;
- /* 0e */ unk8 mUnk_0e;
+ /* 0d */ u8 mUnk_0d;
+ /* 0e */ u8 mUnk_0e;
/* 0f */ unk8 mUnk_0f;
/* 10 */ unk32 mUnk_10;
/* 14 */
@@ -110,8 +110,7 @@ public:
/* 012 */ unk16 mUnk_012;
/* 014 */ Vec3p mUnk_014;
/* 020 */ Actor_UnkStruct_020 mUnk_020;
- /* 034 */ unk32 mUnk_034;
- /* 038 */ unk32 mUnk_038;
+ /* 034 */ ActorRef mUnk_034;
/* 03c */ unk32 mUnk_03c;
/* 040 */ ActorRef mUnk_040;
/* 048 */ Vec3p mPos;
diff --git a/include/Actor/ActorSpawner.hpp b/include/Actor/ActorSpawner.hpp
index 94047e10..e99bafb3 100644
--- a/include/Actor/ActorSpawner.hpp
+++ b/include/Actor/ActorSpawner.hpp
@@ -5,10 +5,23 @@
#include "global.h"
#include "types.h"
+#include "Actor/Actor.hpp"
#include "Actor/ActorRef.hpp"
#include "Actor/ActorType.hpp"
+#include "System/SysNew.hpp"
-class ActorSpawner {
+struct ActorSpawnOptions {
+ /* 00 */ Actor_UnkStruct_020 mUnk_00;
+ /* 14 */ s16 mAngle;
+ /* 16 */ unk8 mUnk_16[0x2];
+ /* 18 */ unk32 mUnk_18;
+ /* 1c */ ActorRef mUnk_1c;
+ /* 24 */ unk32 mUnk_24;
+ /* 28 */ unk32 mUnk_28;
+ /* 2c */
+};
+
+class ActorSpawner : public SysObject {
public:
/* 0 (empty) */
@@ -18,8 +31,8 @@ public:
~ActorSpawner();
void func_ov000_020c4014();
void func_ov000_020c4018();
- Actor *CreateActor(ActorTypeId type);
- s32 Spawn(ActorTypeId type, Vec3p *pos, void *param3, ActorRef *ref);
+ Actor *CreateActor(ActorTypeId typeId);
+ s32 Spawn(ActorTypeId type, Vec3p *pos, ActorSpawnOptions *param3, ActorRef *ref);
};
extern ActorSpawner *gActorSpawner;