V-Gears 0
Free Final Fantasy VII engine.
FieldDisassembler::ScriptHeader Struct Reference

A script header. More...

Public Member Functions

void Read (BinaryReader &reader)
 Reads the header. More...
 

Public Attributes

uint16 magic
 Field file identification magic number. More...
 
uint8 number_of_entities
 The number of entities in the field. More...
 
uint8 number_of_models
 The number of models in the field. More...
 
uint16 offset_to_strings
 Offset at which the field text strings begin. More...
 
uint16 number_of_akao_offsets
 The number of Akao/tuto blocks/offsets. More...
 
uint16 scale
 Scale of field. More...
 
std::array< uint16, 3 > blank
 Blank data, unused. More...
 
std::array< char, 8 > creator
 Field creator name. More...
 
std::array< char, 8 > name
 The field name. More...
 
std::vector< std::array< char, 8 > > field_entity_names
 The list of entity names. More...
 
std::vector< uint32akao_offsets
 Akao/Tuto block offsets. More...
 
std::vector< std::array< uint16, 32 > > entity_scripts
 Entity script entry points. More...
 

Detailed Description

A script header.

Member Function Documentation

◆ Read()

void FieldDisassembler::ScriptHeader::Read ( BinaryReader reader)
inline

Reads the header.

Parameters
[in]readerThe reader used to read the header.
Exceptions
ScriptHeaderInvalidExceptionIf the magic number for the field is wrong.

Member Data Documentation

◆ akao_offsets

std::vector<uint32> FieldDisassembler::ScriptHeader::akao_offsets

Akao/Tuto block offsets.

There will be {

See also
number_of_akao_offsets} offsets.

◆ blank

std::array<uint16, 3> FieldDisassembler::ScriptHeader::blank

Blank data, unused.

◆ creator

std::array<char, 8> FieldDisassembler::ScriptHeader::creator

Field creator name.

◆ entity_scripts

std::vector<std::array<uint16, 32> > FieldDisassembler::ScriptHeader::entity_scripts

Entity script entry points.

More explicitly, subroutine offsets. There will be {

See also
number_of_entities} entity scripts.

◆ field_entity_names

std::vector<std::array<char, 8> > FieldDisassembler::ScriptHeader::field_entity_names

The list of entity names.

There will be {

See also
number_of_entities} entities.

◆ magic

uint16 FieldDisassembler::ScriptHeader::magic

Field file identification magic number.

◆ name

std::array<char, 8> FieldDisassembler::ScriptHeader::name

The field name.

◆ number_of_akao_offsets

uint16 FieldDisassembler::ScriptHeader::number_of_akao_offsets

The number of Akao/tuto blocks/offsets.

◆ number_of_entities

uint8 FieldDisassembler::ScriptHeader::number_of_entities

The number of entities in the field.

◆ number_of_models

uint8 FieldDisassembler::ScriptHeader::number_of_models

The number of models in the field.

◆ offset_to_strings

uint16 FieldDisassembler::ScriptHeader::offset_to_strings

Offset at which the field text strings begin.

◆ scale

uint16 FieldDisassembler::ScriptHeader::scale

Scale of field.

For move and talk calculation (9bit fixed point).


The documentation for this struct was generated from the following file: