V-Gears 0
Free Final Fantasy VII engine.
FieldDecompiler Class Reference

Decompiler for field maps. More...

#include <FieldDecompiler.h>

Inheritance diagram for FieldDecompiler:
Collaboration diagram for FieldDecompiler:

Classes

struct  DecompiledScript
 The field decompiled script. More...
 
struct  FieldEntity
 An entity. More...
 
struct  Line
 A line. More...
 

Static Public Member Functions

static float ScaleFactor (const std::vector< unsigned char > &script_bytes)
 Retrieves the scale factor of a field. More...
 
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. More...
 

Detailed Description

Decompiler for field maps.

Member Function Documentation

◆ Decompile()

FieldDecompiler::DecompiledScript FieldDecompiler::Decompile ( std::string  script_name,
const std::vector< unsigned char > &  script_bytes,
FieldScriptFormatter formatter,
std::string  text_after = "",
std::string  text_before = "" 
)
static

Decompiles a field script.

Parameters
[in]script_nameName of the script to be converted, should match file name.
[in]script_bytesVector of raw byte data that makes up the script.
[in]formatterFormatter used to rename variables, drop functions...
[in]text_afterRaw text that is added at to the end of the decompiled output.
[in]text_beforeRaw text that is added at to the start of the decompiled output.
Returns
A string with the decompiled script.
Exceptions
DecompilerExceptionon failure.

◆ ScaleFactor()

float FieldDecompiler::ScaleFactor ( const std::vector< unsigned char > &  script_bytes)
static

Retrieves the scale factor of a field.

Parameters
[in]script_bytesVector of raw byte data that makes up the script.
Returns
The scale fctor.

The documentation for this class was generated from the following files: