Alchemy
Loading...
Searching...
No Matches

script.h File Reference

The field object script interpreter and the operands its commands read. More...

Go to the source code of this file.

Data Structures

struct  ScriptInterpreter
 The prefix that command handlers read from a field object's 0x70-byte slot. More...
struct  ScriptOperands
 The whole 0x70-byte slot as SC_SET, SC_ADD and SC_CMP see it: each field is one work value (enum ScriptWork in objcmd.h), reached through gScript_OperandHandlerTable, and named for what the engine keeps there. More...

Typedefs

typedef s32(*) ScriptCommand(struct ScriptInterpreter *)

Functions

 STATIC_ASSERT (sizeof(struct ScriptInterpreter)==0x64)
 STATIC_ASSERT (offsetof(struct ScriptInterpreter, script)==0x00)
 STATIC_ASSERT (offsetof(struct ScriptInterpreter, cursor)==0x04)
 STATIC_ASSERT (offsetof(struct ScriptInterpreter, spriteStorageKind)==0x54)
 STATIC_ASSERT (offsetof(struct ScriptInterpreter, conditionResult)==0x57)
 STATIC_ASSERT (offsetof(struct ScriptInterpreter, repeatCount)==0x5d)
 STATIC_ASSERT (offsetof(struct ScriptInterpreter, wait)==0x5e)
 STATIC_ASSERT (offsetof(struct ScriptInterpreter, refused)==0x60)
 STATIC_ASSERT (offsetof(struct ScriptOperands, scriptAddress)==0x00)
 STATIC_ASSERT (offsetof(struct ScriptOperands, cursor)==0x04)
 STATIC_ASSERT (offsetof(struct ScriptOperands, facing)==0x06)
 STATIC_ASSERT (offsetof(struct ScriptOperands, radius)==0x20)
 STATIC_ASSERT (offsetof(struct ScriptOperands, sceneWord)==0x4c)
 STATIC_ASSERT (offsetof(struct ScriptOperands, spriteStorageKind)==0x54)
 STATIC_ASSERT (offsetof(struct ScriptOperands, repeatCount)==0x5d)
 STATIC_ASSERT (offsetof(struct ScriptOperands, refused)==0x60)
 STATIC_ASSERT (offsetof(struct ScriptOperands, conditionResult)==0x57)
 STATIC_ASSERT (offsetof(struct ScriptOperands, wait)==0x5e)
 STATIC_ASSERT (offsetof(struct ScriptOperands, actionParameter)==0x64)
 STATIC_ASSERT (offsetof(struct ScriptOperands, linkedObject)==0x68)
 STATIC_ASSERT (offsetof(struct ScriptOperands, hook)==0x6c)
 STATIC_ASSERT (sizeof(struct ScriptOperands)==0x70)

Detailed Description

The field object script interpreter and the operands its commands read.

Definition in file script.h.

Typedef Documentation

◆ ScriptCommand

typedef s32(*) ScriptCommand(struct ScriptInterpreter *)

Definition at line 13 of file script.h.

Function Documentation

◆ STATIC_ASSERT() [1/22]

STATIC_ASSERT ( sizeof(struct ScriptInterpreter) = =0x64)

◆ STATIC_ASSERT() [2/22]

STATIC_ASSERT ( offsetof(struct ScriptInterpreter, script) = =0x00)

◆ STATIC_ASSERT() [3/22]

STATIC_ASSERT ( offsetof(struct ScriptInterpreter, cursor) = =0x04)

◆ STATIC_ASSERT() [4/22]

STATIC_ASSERT ( offsetof(struct ScriptInterpreter, spriteStorageKind) = =0x54)

◆ STATIC_ASSERT() [5/22]

STATIC_ASSERT ( offsetof(struct ScriptInterpreter, conditionResult) = =0x57)

◆ STATIC_ASSERT() [6/22]

STATIC_ASSERT ( offsetof(struct ScriptInterpreter, repeatCount) = =0x5d)

◆ STATIC_ASSERT() [7/22]

STATIC_ASSERT ( offsetof(struct ScriptInterpreter, wait) = =0x5e)

◆ STATIC_ASSERT() [8/22]

STATIC_ASSERT ( offsetof(struct ScriptInterpreter, refused) = =0x60)

◆ STATIC_ASSERT() [9/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, scriptAddress) = =0x00)

◆ STATIC_ASSERT() [10/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, cursor) = =0x04)

◆ STATIC_ASSERT() [11/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, facing) = =0x06)

◆ STATIC_ASSERT() [12/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, radius) = =0x20)

◆ STATIC_ASSERT() [13/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, sceneWord) = =0x4c)

◆ STATIC_ASSERT() [14/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, spriteStorageKind) = =0x54)

◆ STATIC_ASSERT() [15/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, repeatCount) = =0x5d)

◆ STATIC_ASSERT() [16/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, refused) = =0x60)

◆ STATIC_ASSERT() [17/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, conditionResult) = =0x57)

◆ STATIC_ASSERT() [18/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, wait) = =0x5e)

◆ STATIC_ASSERT() [19/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, actionParameter) = =0x64)

◆ STATIC_ASSERT() [20/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, linkedObject) = =0x68)

◆ STATIC_ASSERT() [21/22]

STATIC_ASSERT ( offsetof(struct ScriptOperands, hook) = =0x6c)

◆ STATIC_ASSERT() [22/22]

STATIC_ASSERT ( sizeof(struct ScriptOperands) = =0x70)