24 #ifndef SWORD2_HEADER_H 25 #define SWORD2_HEADER_H 27 #include "common/endian.h" 58 void read(
const byte *addr);
59 void write(byte *addr);
78 PARALLAX_FILE_null = 6,
137 void read(
const byte *addr);
138 void write(byte *addr);
167 void read(
const byte *addr);
168 void write(byte *addr);
193 void read(
const byte *addr);
194 void write(byte *addr);
218 uint32 bg_parallax[2];
220 uint32 fg_parallax[2];
229 void read(
const byte *addr);
230 void write(byte *addr);
244 void read(
const byte *addr);
245 void write(byte *addr);
266 void read(
const byte *addr);
267 void write(byte *addr);
313 void setAddress(byte *addr) {
317 byte *getScriptPcPtr(
int level) {
318 return _addr + 32 + 4 * level;
321 uint32 getLogicLevel() {
322 return READ_LE_UINT32(_addr + 4);
324 uint32 getScriptId(
int level) {
325 return READ_LE_UINT32(_addr + 20 + 4 * level);
327 uint32 getScriptPc(
int level) {
328 return READ_LE_UINT32(_addr + 32 + 4 * level);
331 void setLogicLevel(uint32 x) {
332 WRITE_LE_UINT32(_addr + 4, x);
334 void setScriptId(
int level, uint32 x) {
335 WRITE_LE_UINT32(_addr + 20 + 4 * level, x);
337 void setScriptPc(
int level, uint32 x) {
338 WRITE_LE_UINT32(_addr + 32 + 4 * level, x);
352 void read(
const byte *addr);
353 void write(byte *addr);
399 void read(
const byte *addr);
400 void write(byte *addr);
416 void read(
const byte *addr);
417 void write(byte *addr);
Definition: animation.h:37