V-Gears
0
Free Final Fantasy VII engine.
ScriptFormatter.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2022 The V-Gears Team
3
*
4
* This file is part of V-Gears
5
*
6
* V-Gears is free software: you can redistribute it and/or modify it under
7
* terms of the GNU General Public License as published by the Free Software
8
* Foundation, version 3.0 (GPLv3) of the License.
9
*
10
* V-Gears is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*/
15
16
#pragma once
17
18
#include <map>
19
#include <vector>
20
#include <string>
21
22
#include "
DecompilerException.h
"
23
24
class
ScriptFormatter
{
25
26
public
:
27
28
virtual
~ScriptFormatter
() =
default
;
29
38
virtual
std::string
GetFriendlyVarName
(
unsigned
int
bank,
unsigned
int
addr);
39
47
virtual
std::string
GetFriendlyEntityName
(
const
std::string& entity_name);
48
57
virtual
std::string
GetFriendlyAnimationName
(
int
animation_id,
int
id
);
58
66
virtual
std::string
GetFriendlyCharName
(
int
char_id);
67
76
virtual
std::string
GetFriendlyFunctionName
(
77
const
std::string& entity_name,
const
std::string& function_name
78
);
79
88
virtual
std::string
GetFunctionComment
(
89
const
std::string& entity_name,
const
std::string& function_name
90
);
91
};
DecompilerException.h
ScriptFormatter
Definition:
ScriptFormatter.h:24
ScriptFormatter::GetFriendlyFunctionName
virtual std::string GetFriendlyFunctionName(const std::string &entity_name, const std::string &function_name)
Retrieves a friendly name for a function.
Definition:
ScriptFormatter.cpp:30
ScriptFormatter::~ScriptFormatter
virtual ~ScriptFormatter()=default
ScriptFormatter::GetFunctionComment
virtual std::string GetFunctionComment(const std::string &entity_name, const std::string &function_name)
Retrieves the header comment for a function in an entity.
Definition:
ScriptFormatter.cpp:34
ScriptFormatter::GetFriendlyVarName
virtual std::string GetFriendlyVarName(unsigned int bank, unsigned int addr)
Retrieves a friendly name for a variable.
Definition:
ScriptFormatter.cpp:18
ScriptFormatter::GetFriendlyCharName
virtual std::string GetFriendlyCharName(int char_id)
Retrieves a friendly name for a character.
Definition:
ScriptFormatter.cpp:28
ScriptFormatter::GetFriendlyEntityName
virtual std::string GetFriendlyEntityName(const std::string &entity_name)
Retrieves a friendly name for an entity.
Definition:
ScriptFormatter.cpp:20
ScriptFormatter::GetFriendlyAnimationName
virtual std::string GetFriendlyAnimationName(int animation_id, int id)
Retrieves a friendly name for an animation.
Definition:
ScriptFormatter.cpp:24
src
installer
decompiler
ScriptFormatter.h
Generated by
1.9.4