Enable pedantic errors
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -14,7 +14,7 @@ namespace PkmnLib::Battling {
|
||||
"struggle"_cnc, 0, PkmnLib::Library::MoveCategory::Physical, 50, 255, 10,
|
||||
CreatureLib::Library::AttackTarget::Any, 0,
|
||||
new CreatureLib::Library::SecondaryEffect(-1, "struggle"_cnc, {}), std::unordered_set<uint32_t>());
|
||||
;
|
||||
|
||||
std::unique_ptr<CreatureLib::Battling::LearnedAttack> _struggle =
|
||||
std::make_unique<PkmnLib::Battling::LearnedMove>(_struggleData,
|
||||
CreatureLib::Battling::AttackLearnMethod::Unknown);
|
||||
|
||||
@@ -15,7 +15,7 @@ class AngelScriptEvolutionScript final : public PkmnLib::Battling::EvolutionScri
|
||||
asIScriptFunction* nullable Function = nullptr;
|
||||
};
|
||||
|
||||
#define EVO_SCRIPT_HOOK_FUNCTION(name, decl) FunctionInfo __##name = Initialize(decl);
|
||||
#define EVO_SCRIPT_HOOK_FUNCTION(name, decl) FunctionInfo __##name = Initialize(decl)
|
||||
|
||||
FunctionInfo Initialize(const std::string& decl) {
|
||||
auto val = _scriptObject->GetObjectType()->GetMethodByDecl(decl.c_str(), false);
|
||||
|
||||
@@ -70,7 +70,7 @@ private:
|
||||
FunctionInfo __GetOwner = InitializeGetOwner();
|
||||
FunctionInfo __SetOwner = InitializeSetOwner();
|
||||
|
||||
#define ITEM_USE_SCRIPT_HOOK_FUNCTION(name, decl) FunctionInfo __##name = Initialize(decl);
|
||||
#define ITEM_USE_SCRIPT_HOOK_FUNCTION(name, decl) FunctionInfo __##name = Initialize(decl)
|
||||
|
||||
ITEM_USE_SCRIPT_HOOK_FUNCTION(
|
||||
OnInitialize, "void OnInitialize(const BattleLibrary@ library, const narray<EffectParameter@>@ parameters)");
|
||||
|
||||
@@ -17,7 +17,7 @@ static std::string ImplConstStringStringConv(const ArbUt::StringView& s) { retur
|
||||
|
||||
void ConstStringRegister::Register(asIScriptEngine* engine) {
|
||||
auto r = engine->RegisterObjectType("constString", sizeof(ArbUt::StringView),
|
||||
asOBJ_VALUE | asGetTypeTraits<ArbUt::StringView>());
|
||||
asOBJ_VALUE | asGetTypeTraits<ArbUt::StringView>() | asOBJ_APP_CLASS_ALIGN8);
|
||||
Ensure(r >= 0);
|
||||
|
||||
r = engine->RegisterObjectBehaviour("constString", asBEHAVE_CONSTRUCT, "void f()", asFUNCTION(ConstructConstString),
|
||||
|
||||
Reference in New Issue
Block a user