104 static float ScaleFactor(
const std::vector<unsigned char>& script_bytes);
123 std::string script_name,
const std::vector<unsigned char>& script_bytes,
Base class for decompilers.
Definition: Decompiler.h:24
Decompiler for field maps.
Definition: FieldDecompiler.h:28
static DecompiledScript Decompile(std::string script_name, const std::vector< unsigned char > &script_bytes, FieldScriptFormatter &formatter, std::string text_after="", std::string text_before="")
Decompiles a field script.
Definition: FieldDecompiler.cpp:32
static float ScaleFactor(const std::vector< unsigned char > &script_bytes)
Retrieves the scale factor of a field.
Definition: FieldDecompiler.cpp:23
DummyFormatter formatter
Definition: ff7_field_disasm_all_opcodes_by_category_test.cpp:1966
unsigned int uint
Definition: scummsys.h:437
The field decompiled script.
Definition: FieldDecompiler.h:77
std::string luaScript
The LUA script for the field.
Definition: FieldDecompiler.h:82
std::vector< Line > lines
Lines in the field.
Definition: FieldDecompiler.h:94
std::vector< FieldEntity > entities
The field entities.
Definition: FieldDecompiler.h:89
An entity.
Definition: FieldDecompiler.h:56
std::string name
Name of the entity.
Definition: FieldDecompiler.h:71
uint char_id
Character identifier of the entity.
Definition: FieldDecompiler.h:61
uint index
Index of the entity in the field.
Definition: FieldDecompiler.h:66
A line.
Definition: FieldDecompiler.h:35
std::string name
Name of the line entity.
Definition: FieldDecompiler.h:40
std::vector< float > point_a
First point of the line.
Definition: FieldDecompiler.h:45
std::vector< float > point_b
Second point of the line.
Definition: FieldDecompiler.h:50