summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actInstParamPack.h
diff options
context:
space:
mode:
authorPistonight <pistonknight@outlook.com>2025-05-17 00:33:17 -0700
committerPistonight <pistonknight@outlook.com>2025-05-17 00:33:17 -0700
commit4e39bb884f4d2d3166388d037dfef9861d2b5ecd (patch)
tree53444149f9ba97397dd66679997d7f0469d90298 /src/KingSystem/ActorSystem/actInstParamPack.h
parent883e2da96aaceb1865e8fe7c4a8a2a5fd42df7a9 (diff)
add at param helpers
Diffstat (limited to 'src/KingSystem/ActorSystem/actInstParamPack.h')
-rw-r--r--src/KingSystem/ActorSystem/actInstParamPack.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/KingSystem/ActorSystem/actInstParamPack.h b/src/KingSystem/ActorSystem/actInstParamPack.h
index b5a8c61d..0e68dfb6 100644
--- a/src/KingSystem/ActorSystem/actInstParamPack.h
+++ b/src/KingSystem/ActorSystem/actInstParamPack.h
@@ -99,6 +99,25 @@ public:
bool pop(s32* position, Entry* out_entry);
+ // helpers for @-params
+ void addPosition(const sead::Vector3f& arg) { add(arg, "@P"); }
+ void addRotation(const sead::Vector3f& arg) { add(arg, "@R"); }
+ void addMatrix(const sead::Matrix34f& arg) { add(arg, "@M"); }
+ void addScale(const sead::Vector3f& arg) { add(arg, "@S"); }
+ void addDelegate(ActorCallback* arg) { add(arg, "@D"); }
+ void addDeleteDistanceSq(float arg) { add(arg, "@DD"); }
+ void addTranslationVelocity(const sead::Vector3f& arg) { add(arg, "@TV"); }
+ void addRotationVelocity(const sead::Vector3f& arg) { add(arg, "@RV"); }
+ void addModelUser(const sead::SafeString& arg) { add(arg, "@MU"); }
+ void addResourceLane(int arg) { add(arg, "@RL"); }
+ // TODO below: name TBD
+ void addWait() { add(true, "@W"); }
+ void addPlayerControl() { add(true, "@PC"); }
+ void addNoDisplay() { add(true, "@ND"); }
+ void addDisableCapture() { add(true, "@DC"); }
+ void addSystemBits() { add(true, "@SB"); } // 0x7100dc9594 might have a clue
+ void addMA(int arg) { add(arg, "@MA"); } // 0x710090e78c
+
private:
void writeBytes(const void* value, s32 size) {
sead::MemUtil::copy(&mData[mPosition], value, size);