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
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};
Definition: ScriptFormatter.h:24
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
virtual ~ScriptFormatter()=default
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
virtual std::string GetFriendlyVarName(unsigned int bank, unsigned int addr)
Retrieves a friendly name for a variable.
Definition: ScriptFormatter.cpp:18
virtual std::string GetFriendlyCharName(int char_id)
Retrieves a friendly name for a character.
Definition: ScriptFormatter.cpp:28
virtual std::string GetFriendlyEntityName(const std::string &entity_name)
Retrieves a friendly name for an entity.
Definition: ScriptFormatter.cpp:20
virtual std::string GetFriendlyAnimationName(int animation_id, int id)
Retrieves a friendly name for an animation.
Definition: ScriptFormatter.cpp:24