Reorganized files

This commit is contained in:
Deukhoofd 2020-02-02 12:23:50 +01:00
parent e04ab6497a
commit aae96333b1
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
34 changed files with 24 additions and 24 deletions

View File

@ -60,8 +60,8 @@ SET(FILE_SOURCE
) )
if (SCRIPT_PROVIDER STREQUAL "angelscript") if (SCRIPT_PROVIDER STREQUAL "angelscript")
SET(FILE_SOURCE ${FILE_SOURCE} SET(FILE_SOURCE ${FILE_SOURCE}
"src/AngelScript/*.cpp" "src/ScriptResolving/AngelScript/*.cpp"
"src/AngelScript/*.hpp" "src/ScriptResolving/AngelScript/*.hpp"
"extern/angelscript_addons/*.cpp" "extern/angelscript_addons/*.cpp"
"extern/angelscript_addons/*.h" "extern/angelscript_addons/*.h"
) )

View File

@ -1,9 +1,9 @@
#include "AngelScripResolver.hpp" #include "AngelScripResolver.hpp"
#define AS_USE_ACCESSORS #define AS_USE_ACCESSORS
#include "../../extern/angelscript_addons/scriptarray/scriptarray.h" #include "../../../extern/angelscript_addons/scriptarray/scriptarray.h"
#undef AS_USE_ACCESSORS #undef AS_USE_ACCESSORS
#include "../../extern/angelscript_addons/scripthelper/scripthelper.h" #include "../../../extern/angelscript_addons/scripthelper/scripthelper.h"
#include "../../extern/angelscript_addons/scriptstdstring/scriptstdstring.h" #include "../../../extern/angelscript_addons/scriptstdstring/scriptstdstring.h"
#include "TypeRegistry/Battling/RegisterExecutingAttack.hpp" #include "TypeRegistry/Battling/RegisterExecutingAttack.hpp"
#include "TypeRegistry/Battling/RegisterPokemonClass.hpp" #include "TypeRegistry/Battling/RegisterPokemonClass.hpp"
#include "TypeRegistry/Library/RegisterGrowthRateTypes.hpp" #include "TypeRegistry/Library/RegisterGrowthRateTypes.hpp"

View File

@ -2,7 +2,7 @@
#define PKMNLIB_ANGELSCRIPRESOLVER_HPP #define PKMNLIB_ANGELSCRIPRESOLVER_HPP
#include <Battling/ScriptHandling/ScriptResolver.hpp> #include <Battling/ScriptHandling/ScriptResolver.hpp>
#include "../Battling/Library/BattleLibrary.hpp" #include "../../Battling/Library/BattleLibrary.hpp"
#define ANGELSCRIPT_DLL_LIBRARY_IMPORT #define ANGELSCRIPT_DLL_LIBRARY_IMPORT
#include <angelscript.h> #include <angelscript.h>

View File

@ -1,6 +1,6 @@
#include "RegisterBattleLibrary.hpp" #include "RegisterBattleLibrary.hpp"
#include <cassert> #include <cassert>
#include "../../../Battling/Library/DamageLibrary.hpp" #include "../../../../Battling/Library/DamageLibrary.hpp"
void RegisterBattleLibrary::Register(asIScriptEngine* engine) { void RegisterBattleLibrary::Register(asIScriptEngine* engine) {
RegisterDamageLibrary(engine); RegisterDamageLibrary(engine);

View File

@ -1,8 +1,8 @@
#include "RegisterPokemonClass.hpp" #include "RegisterPokemonClass.hpp"
#include <Battling/Models/LearnedAttack.hpp> #include <Battling/Models/LearnedAttack.hpp>
#include <cassert> #include <cassert>
#include "../../../../extern/angelscript_addons/scriptarray/scriptarray.h" #include "../../../../../extern/angelscript_addons/scriptarray/scriptarray.h"
#include "../../../Battling/Pokemon/Pokemon.hpp" #include "../../../../Battling/Pokemon/Pokemon.hpp"
// Hack to handle AngelScript not recognizing different sized enums on fields, and returning invalid values due to it. // Hack to handle AngelScript not recognizing different sized enums on fields, and returning invalid values due to it.
#define ENUM__SIZE_WRAPPER(name, type, func) \ #define ENUM__SIZE_WRAPPER(name, type, func) \

View File

@ -1,7 +1,7 @@
#include "RegisterItemTypes.hpp" #include "RegisterItemTypes.hpp"
#include <cassert> #include <cassert>
#include "../../../Library/Items/Item.hpp" #include "../../../../Library/Items/Item.hpp"
#include "../../../Library/Items/ItemLibrary.hpp" #include "../../../../Library/Items/ItemLibrary.hpp"
void RegisterItemTypes::Register(asIScriptEngine* engine) { void RegisterItemTypes::Register(asIScriptEngine* engine) {
RegisterItemCategoryEnum(engine); RegisterItemCategoryEnum(engine);

View File

@ -1,7 +1,7 @@
#include "RegisterMoveTypes.hpp" #include "RegisterMoveTypes.hpp"
#include <cassert> #include <cassert>
#include "../../../Library/Moves/MoveData.hpp" #include "../../../../Library/Moves/MoveData.hpp"
#include "../../../Library/Moves/MoveLibrary.hpp" #include "../../../../Library/Moves/MoveLibrary.hpp"
void RegisterMoveTypes::Register(asIScriptEngine* engine) { void RegisterMoveTypes::Register(asIScriptEngine* engine) {
RegisterMoveCategory(engine); RegisterMoveCategory(engine);

View File

@ -1,8 +1,8 @@
#include "RegisterSpeciesTypes.hpp" #include "RegisterSpeciesTypes.hpp"
#include <cassert> #include <cassert>
#include "../../../Library/Species/PokemonSpecies.hpp" #include "../../../../Library/Species/PokemonSpecies.hpp"
#include "../../../Library/Species/SpeciesLibrary.hpp" #include "../../../../Library/Species/SpeciesLibrary.hpp"
#include "../../../Library/Statistic.hpp" #include "../../../../Library/Statistic.hpp"
void RegisterSpeciesTypes::Register(asIScriptEngine* engine) { void RegisterSpeciesTypes::Register(asIScriptEngine* engine) {
RegisterGenderEnum(engine); RegisterGenderEnum(engine);

View File

@ -1,6 +1,6 @@
#include "RegisterStaticLibraryTypes.hpp" #include "RegisterStaticLibraryTypes.hpp"
#include <cassert> #include <cassert>
#include "../../../Library/PokemonLibrary.hpp" #include "../../../../Library/PokemonLibrary.hpp"
void RegisterStaticLibraryTypes::Register(asIScriptEngine* engine) { void RegisterStaticLibraryTypes::Register(asIScriptEngine* engine) {
RegisterLibrarySettingsType(engine); RegisterLibrarySettingsType(engine);

View File

@ -1,6 +1,6 @@
#ifdef TESTS_BUILD #ifdef TESTS_BUILD
#include "../../extern/catch.hpp" #include "../../extern/catch.hpp"
#include "../../src/AngelScript/AngelScripResolver.hpp" #include "../../src/ScriptResolving/AngelScript/AngelScripResolver.hpp"
#include "../TestLibrary/TestLibrary.hpp" #include "../TestLibrary/TestLibrary.hpp"
static std::unordered_map<const char*, const char*> _scripts = static std::unordered_map<const char*, const char*> _scripts =

View File

@ -1,6 +1,6 @@
#ifdef TESTS_BUILD #ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp" #include "../../../../extern/catch.hpp"
#include "../../../../src/AngelScript/AngelScripResolver.hpp" #include "../../../../src/ScriptResolving/AngelScript/AngelScripResolver.hpp"
#include "../../../../src/Battling/Pokemon/CreatePokemon.hpp" #include "../../../../src/Battling/Pokemon/CreatePokemon.hpp"
#include "../../../TestLibrary/TestLibrary.hpp" #include "../../../TestLibrary/TestLibrary.hpp"

View File

@ -1,6 +1,6 @@
#ifdef TESTS_BUILD #ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp" #include "../../../../extern/catch.hpp"
#include "../../../../src/AngelScript/AngelScripResolver.hpp" #include "../../../../src/ScriptResolving/AngelScript/AngelScripResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp" #include "../../../TestLibrary/TestLibrary.hpp"
static std::unordered_map<const char*, const char*> _scripts = static std::unordered_map<const char*, const char*> _scripts =

View File

@ -1,6 +1,6 @@
#ifdef TESTS_BUILD #ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp" #include "../../../../extern/catch.hpp"
#include "../../../../src/AngelScript/AngelScripResolver.hpp" #include "../../../../src/ScriptResolving/AngelScript/AngelScripResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp" #include "../../../TestLibrary/TestLibrary.hpp"
static std::unordered_map<const char*, const char*> _scripts = static std::unordered_map<const char*, const char*> _scripts =

View File

@ -1,6 +1,6 @@
#ifdef TESTS_BUILD #ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp" #include "../../../../extern/catch.hpp"
#include "../../../../src/AngelScript/AngelScripResolver.hpp" #include "../../../../src/ScriptResolving/AngelScript/AngelScripResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp" #include "../../../TestLibrary/TestLibrary.hpp"
static std::unordered_map<const char*, const char*> _scripts = static std::unordered_map<const char*, const char*> _scripts =

View File

@ -1,6 +1,6 @@
#ifdef TESTS_BUILD #ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp" #include "../../../../extern/catch.hpp"
#include "../../../../src/AngelScript/AngelScripResolver.hpp" #include "../../../../src/ScriptResolving/AngelScript/AngelScripResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp" #include "../../../TestLibrary/TestLibrary.hpp"
static std::unordered_map<const char*, const char*> _scripts = static std::unordered_map<const char*, const char*> _scripts =

View File

@ -1,6 +1,6 @@
#ifdef TESTS_BUILD #ifdef TESTS_BUILD
#include "../../../../extern/catch.hpp" #include "../../../../extern/catch.hpp"
#include "../../../../src/AngelScript/AngelScripResolver.hpp" #include "../../../../src/ScriptResolving/AngelScript/AngelScripResolver.hpp"
#include "../../../TestLibrary/TestLibrary.hpp" #include "../../../TestLibrary/TestLibrary.hpp"
static std::unordered_map<const char*, const char*> _scripts = static std::unordered_map<const char*, const char*> _scripts =