Cleanup cmake file.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-07-18 12:42:54 +02:00
parent 41b15dc693
commit dc3630b171
31 changed files with 141 additions and 69 deletions

View File

@@ -1,7 +1,11 @@
#ifndef PKMNLIB_BASICSCRIPTCLASS_HPP
#define PKMNLIB_BASICSCRIPTCLASS_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class BasicScriptClass {
public:
static void Register(asIScriptEngine* engine);

View File

@@ -1,7 +1,10 @@
#ifndef PKMNLIB_REGISTERBATTLECLASS_HPP
#define PKMNLIB_REGISTERBATTLECLASS_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterBattleClass {
static void RegisterChoiceQueue(asIScriptEngine* engine);
static void RegisterBattle(asIScriptEngine* engine);

View File

@@ -1,7 +1,11 @@
#ifndef PKMNLIB_REGISTERBATTLELIBRARY_HPP
#define PKMNLIB_REGISTERBATTLELIBRARY_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterBattleLibrary {
static void RegisterDamageLibrary(asIScriptEngine* engine);
static void RegisterLibrary(asIScriptEngine* engine);

View File

@@ -1,7 +1,9 @@
#ifndef PKMNLIB_REGISTEREXECUTINGATTACK_HPP
#define PKMNLIB_REGISTEREXECUTINGATTACK_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterExecutingAttack {
static void RegisterHitData(asIScriptEngine* engine);

View File

@@ -1,7 +1,11 @@
#ifndef PKMNLIB_REGISTERPOKEMONCLASS_HPP
#define PKMNLIB_REGISTERPOKEMONCLASS_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterPokemonClass {
static void RegisterDamageSource(asIScriptEngine* engine);
static void RegisterMoveLearnMethod(asIScriptEngine* engine);

View File

@@ -1,7 +1,11 @@
#ifndef PKMNLIB_REGISTERTURNCHOICES_HPP
#define PKMNLIB_REGISTERTURNCHOICES_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterTurnChoices {
static void RegisterTurnChoiceKindEnum(asIScriptEngine* engine);
static void RegisterBaseTurnChoice(asIScriptEngine* engine);

View File

@@ -1,7 +1,11 @@
#ifndef PKMNLIB_CONSTSTRING_HPP
#define PKMNLIB_CONSTSTRING_HPP
#include <Arbutils/Assert.hpp>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class ConstStringRegister {
public:
static void Register(asIScriptEngine* engine);

View File

@@ -1,4 +1,4 @@
#define BORROWED_PTR_GETTER_FUNC(o, returns, funcName) \
static returns* funcName##Wrapper(o* obj) { return obj->funcName().GetRaw(); }
#define UNIQUE_PTR_GETTER_FUNC(o, returns, funcName) \
static returns* funcName##Wrapper(o* obj) { return obj->funcName().get(); }
static returns* funcName##Wrapper(o* obj) { return obj->funcName().get(); }

View File

@@ -1,7 +1,11 @@
#ifndef PKMNLIB_REGISTEREFFECTPARAMETER_HPP
#define PKMNLIB_REGISTEREFFECTPARAMETER_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterEffectParameter {
public:
static void Register(asIScriptEngine* engine);

View File

@@ -1,6 +1,9 @@
#ifndef PKMNLIB_REGISTERGROWTHRATETYPES_HPP
#define PKMNLIB_REGISTERGROWTHRATETYPES_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterGrowthRateTypes {
static void RegisterGrowthRateType(asIScriptEngine* engine);

View File

@@ -1,6 +1,9 @@
#ifndef PKMNLIB_REGISTERITEMTYPES_HPP
#define PKMNLIB_REGISTERITEMTYPES_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterItemTypes {
static void RegisterItemCategoryEnum(asIScriptEngine* engine);

View File

@@ -1,6 +1,9 @@
#ifndef PKMNLIB_REGISTERMOVETYPES_HPP
#define PKMNLIB_REGISTERMOVETYPES_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterMoveTypes {
static void RegisterMoveCategory(asIScriptEngine* engine);

View File

@@ -1,6 +1,9 @@
#ifndef PKMNLIB_REGISTERSPECIESTYPES_HPP
#define PKMNLIB_REGISTERSPECIESTYPES_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterSpeciesTypes {
public:

View File

@@ -1,7 +1,11 @@
#ifndef PKMNLIB_REGISTERSTATICLIBRARYTYPES_HPP
#define PKMNLIB_REGISTERSTATICLIBRARYTYPES_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterStaticLibraryTypes {
static void RegisterLibrarySettingsType(asIScriptEngine* engine);
static void RegisterLibraryType(asIScriptEngine* engine);

View File

@@ -1,6 +1,9 @@
#ifndef PKMNLIB_REGISTERTYPELIBRARY_HPP
#define PKMNLIB_REGISTERTYPELIBRARY_HPP
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
class RegisterTypeLibrary {
static void RegisterTypeLibraryType(asIScriptEngine* engine);