make graphnodeswitchcase mutable (#581)

This commit is contained in:
jayden 2024-12-23 11:59:58 +00:00 committed by GitHub
parent 5aa3a31003
commit 67f4088eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -119,7 +119,7 @@ override_field_immutable = {
"GraphNodeObject": [ "angle", "animInfo", "cameraToObject", "node", "pos", "prevAngle", "prevPos", "prevScale", "prevScaleTimestamp", "prevShadowPos", "prevShadowPosTimestamp", "prevThrowMatrix", "prevThrowMatrixTimestamp", "prevTimestamp", "scale", "shadowPos", "sharedChild", "skipInterpolationTimestamp", "throwMatrixPrev", "unk4C", ],
"GraphNodeObjectParent": [ "sharedChild" ],
"GraphNodePerspective": [ "unused" ],
"GraphNodeSwitchCase": [ "*" ],
"GraphNodeSwitchCase": [ "fnNode", "numCases", "unused" ],
"ObjectWarpNode": [ "next "],
"Animation": [ "length" ],
"AnimationTable": [ "count" ],

View file

@ -1459,7 +1459,7 @@
| ----- | ---- | ------ |
| fnNode | [FnGraphNode](structs.md#FnGraphNode) | read-only |
| numCases | `integer` | read-only |
| selectedCase | `integer` | read-only |
| selectedCase | `integer` | |
| unused | `integer` | read-only |
[:arrow_up_small:](#)

View file

@ -1120,10 +1120,10 @@ static struct LuaObjectField sGraphNodeStartFields[LUA_GRAPH_NODE_START_FIELD_CO
#define LUA_GRAPH_NODE_SWITCH_CASE_FIELD_COUNT 4
static struct LuaObjectField sGraphNodeSwitchCaseFields[LUA_GRAPH_NODE_SWITCH_CASE_FIELD_COUNT] = {
{ "fnNode", LVT_COBJECT, offsetof(struct GraphNodeSwitchCase, fnNode), true, LOT_FNGRAPHNODE },
{ "numCases", LVT_S16, offsetof(struct GraphNodeSwitchCase, numCases), true, LOT_NONE },
{ "selectedCase", LVT_S16, offsetof(struct GraphNodeSwitchCase, selectedCase), true, LOT_NONE },
{ "unused", LVT_S32, offsetof(struct GraphNodeSwitchCase, unused), true, LOT_NONE },
{ "fnNode", LVT_COBJECT, offsetof(struct GraphNodeSwitchCase, fnNode), true, LOT_FNGRAPHNODE },
{ "numCases", LVT_S16, offsetof(struct GraphNodeSwitchCase, numCases), true, LOT_NONE },
{ "selectedCase", LVT_S16, offsetof(struct GraphNodeSwitchCase, selectedCase), false, LOT_NONE },
{ "unused", LVT_S32, offsetof(struct GraphNodeSwitchCase, unused), true, LOT_NONE },
};
#define LUA_GRAPH_NODE_TRANSLATION_FIELD_COUNT 2