Commit 2ca044d
authored
feat: track groupID and side dynamically per unit state update (#55)
* feat: track groupID and side dynamically per unit state update
Appends groupID and side to the :NEW:SOLDIER:STATE: data array
(indices 16-17) so group changes mid-mission are captured.
Refs OCAP2/OCAP#5
* perf: cache group lookup in unit state update
Avoids calling `group _x` twice per unit per frame in the capture loop.1 parent 14a20b7 commit 2ca044d
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
0 commit comments