Reorganized files
This commit is contained in:
parent
e04ab6497a
commit
aae96333b1
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"
|
|
@ -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>
|
|
@ -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);
|
|
@ -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) \
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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 =
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue