commit 35388de5240693f4e7be4f02958b236baa2c41bb Author: Deukhoofd Date: Sat May 2 19:54:07 2020 +0200 Initial commit, implements Forme diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..930b2e8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.dll filter=lfs diff=lfs merge=lfs -text +*.so filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4d13c54 --- /dev/null +++ b/.gitignore @@ -0,0 +1,334 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ diff --git a/PkmnLibSharp.sln b/PkmnLibSharp.sln new file mode 100644 index 0000000..000fe3a --- /dev/null +++ b/PkmnLibSharp.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PkmnLibSharp", "PkmnLibSharp\PkmnLibSharp.csproj", "{4CB6DA3C-017B-4AE0-B889-3DFE6B969CD0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PkmnLibSharpTests", "PkmnLibSharpTests\PkmnLibSharpTests.csproj", "{0D15FD33-1AEA-44F4-8211-AA8AF97EA534}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4CB6DA3C-017B-4AE0-B889-3DFE6B969CD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4CB6DA3C-017B-4AE0-B889-3DFE6B969CD0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4CB6DA3C-017B-4AE0-B889-3DFE6B969CD0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4CB6DA3C-017B-4AE0-B889-3DFE6B969CD0}.Release|Any CPU.Build.0 = Release|Any CPU + {0D15FD33-1AEA-44F4-8211-AA8AF97EA534}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D15FD33-1AEA-44F4-8211-AA8AF97EA534}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D15FD33-1AEA-44F4-8211-AA8AF97EA534}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D15FD33-1AEA-44F4-8211-AA8AF97EA534}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/AttackCategory.cs b/PkmnLibSharp/Generated/Creaturelibbattling/AttackCategory.cs new file mode 100644 index 0000000..1ba26c0 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/AttackCategory.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackCategory : byte + { + Physical = 0, + Magical = 1, + Status = 2, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/AttackLearnMethod.cs b/PkmnLibSharp/Generated/Creaturelibbattling/AttackLearnMethod.cs new file mode 100644 index 0000000..53c958a --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/AttackLearnMethod.cs @@ -0,0 +1,11 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackLearnMethod : int + { + Unknown = 0, + Level = 1, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/AttackTarget.cs b/PkmnLibSharp/Generated/Creaturelibbattling/AttackTarget.cs new file mode 100644 index 0000000..a550eb2 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/AttackTarget.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackTarget : byte + { + Adjacent = 0, + AdjacentAlly = 1, + RandomOpponent = 10, + Self = 11, + AdjacentAllySelf = 2, + AdjacentOpponent = 3, + All = 4, + AllAdjacent = 5, + AllAdjacentOpponent = 6, + AllAlly = 7, + AllOpponent = 8, + Any = 9, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/AttackTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelibbattling/AttackTurnChoice.cs new file mode 100644 index 0000000..67094ed --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/AttackTurnChoice.cs @@ -0,0 +1,32 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class AttackTurnChoice + { + /// Creature * + /// LearnedAttack * + /// unsigned char + /// unsigned char + /// AttackTurnChoice * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Construct")] + internal static extern IntPtr Construct(IntPtr user, IntPtr attack, byte sideIndex, byte targetIndex); + + /// const AttackTurnChoice * + /// LearnedAttack * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttack")] + internal static extern IntPtr GetAttack(IntPtr p); + + /// const AttackTurnChoice * + /// TurnChoiceKind + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetKind")] + internal static extern TurnChoiceKind GetKind(IntPtr p); + + /// const AttackTurnChoice * + /// Script * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttackScript")] + internal static extern IntPtr GetAttackScript(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BaseTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BaseTurnChoice.cs new file mode 100644 index 0000000..b0f6ca5 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/BaseTurnChoice.cs @@ -0,0 +1,40 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class BaseTurnChoice + { + /// const BaseTurnChoice * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const BaseTurnChoice * + /// TurnChoiceKind + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetKind")] + internal static extern TurnChoiceKind GetKind(IntPtr p); + + /// const BaseTurnChoice * + /// Creature * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetUser")] + internal static extern IntPtr GetUser(IntPtr p); + + /// signed char& + /// AttackTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetPriority")] + internal static extern byte GetPriority(ref sbyte @out, IntPtr p); + + /// const AttackTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetTargetSideIndex")] + internal static extern byte GetTargetSideIndex(IntPtr p); + + /// const AttackTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetTargetCreatureIndex")] + internal static extern byte GetTargetCreatureIndex(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Battle.cs b/PkmnLibSharp/Generated/Creaturelibbattling/Battle.cs new file mode 100644 index 0000000..4aaae5d --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/Battle.cs @@ -0,0 +1,180 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class Battle + { + /// Battle *& + /// const BattleLibrary * + /// BattleParty * * + /// long unsigned int + /// bool + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr partyArr, ulong numberOfParties, bool canFlee, byte numberOfSides, byte creaturesPerSide); + + /// const Battle * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const Battle * + /// const BattleLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetLibrary")] + internal static extern IntPtr GetLibrary(IntPtr p); + + /// bool& + /// Battle * + /// const BaseTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanUse")] + internal static extern byte CanUse(ref bool @out, IntPtr p, IntPtr turnChoice); + + /// bool& + /// Battle * + /// BaseTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_TrySetChoice")] + internal static extern byte TrySetChoice(ref bool @out, IntPtr p, IntPtr turnChoice); + + /// const Battle * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanFlee")] + internal static extern bool CanFlee(IntPtr p); + + /// Battle * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CheckChoicesSetAndRun")] + internal static extern byte CheckChoicesSetAndRun(IntPtr p); + + /// const Battle * + /// ChoiceQueue * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCurrentTurnQueue")] + internal static extern IntPtr GetCurrentTurnQueue(IntPtr p); + + /// Battle * + /// BattleRandom * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetRandom")] + internal static extern IntPtr GetRandom(IntPtr p); + + /// bool& + /// const Battle * + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CreatureInField")] + internal static extern byte CreatureInField(ref bool @out, IntPtr p, IntPtr c); + + /// Creature *& + /// const Battle * + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCreature")] + internal static extern byte GetCreature(ref IntPtr @out, IntPtr p, byte side, byte target); + + /// Battle * + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ForceRecall")] + internal static extern byte ForceRecall(IntPtr p, byte side, byte target); + + /// Battle * + /// unsigned char + /// unsigned char + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_SwitchCreature")] + internal static extern byte SwitchCreature(IntPtr p, byte side, byte target, IntPtr c); + + /// bool& + /// const Battle * + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanSlotBeFilled")] + internal static extern byte CanSlotBeFilled(ref bool @out, IntPtr p, byte side, byte target); + + /// Battle * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ValidateBattleState")] + internal static extern byte ValidateBattleState(IntPtr p); + + /// const Battle * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasEnded")] + internal static extern bool HasEnded(IntPtr p); + + /// const Battle * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasConclusiveResult")] + internal static extern bool HasConclusiveResult(IntPtr p); + + /// const Battle * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetWinningSide")] + internal static extern bool GetWinningSide(IntPtr p); + + /// const Battle * + /// long unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSidesCount")] + internal static extern ulong GetSidesCount(IntPtr p); + + /// const Battle * + /// const BattleSide * * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSides")] + internal static extern IntPtr GetSides(IntPtr p); + + /// Battle * + /// const char * + /// Script * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetVolatileScript")] + internal static extern IntPtr GetVolatileScript(IntPtr p, string key); + + /// Battle * + /// const char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScriptByName")] + internal static extern byte AddVolatileScriptByName(IntPtr p, string key); + + /// Battle * + /// Script * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScript")] + internal static extern byte AddVolatileScript(IntPtr p, IntPtr script); + + /// Battle * + /// const char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScript")] + internal static extern byte RemoveVolatileScript(IntPtr p, string key); + + /// Battle * + /// Script * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScriptWithScript")] + internal static extern byte RemoveVolatileScriptWithScript(IntPtr p, IntPtr script); + + /// Battle * + /// const char * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasVolatileScript")] + internal static extern bool HasVolatileScript(IntPtr p, string key); + + /// Battle * + /// Function * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RegisterEventListener")] + internal static extern byte RegisterEventListener(IntPtr p, IntPtr func); + + /// Battle * + /// EventData * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_TriggerEventListener")] + internal static extern byte TriggerEventListener(IntPtr p, IntPtr data); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleItemCategory.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BattleItemCategory.cs new file mode 100644 index 0000000..dcefd35 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/BattleItemCategory.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum BattleItemCategory : byte + { + None = 0, + Healing = 1, + StatusHealing = 2, + CaptureDevice = 3, + MiscBattleItem = 4, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleLibrary.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BattleLibrary.cs new file mode 100644 index 0000000..86558d6 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/BattleLibrary.cs @@ -0,0 +1,50 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class BattleLibrary + { + /// const BattleLibrary *& + /// const DataLibrary * + /// BattleStatCalculator * + /// DamageLibrary * + /// ExperienceLibrary * + /// ScriptResolver * + /// MiscLibrary * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr staticLib, IntPtr statCalculator, IntPtr damageLibrary, IntPtr experienceLibrary, IntPtr scriptResolver, IntPtr miscLibrary); + + /// const BattleLibrary * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const BattleLibrary * + /// const DataLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetStaticLib")] + internal static extern IntPtr GetStaticLib(IntPtr p); + + /// const BattleLibrary * + /// const BattleStatCalculator * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetStatCalculator")] + internal static extern IntPtr GetStatCalculator(IntPtr p); + + /// const BattleLibrary * + /// const DamageLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetDamageLibrary")] + internal static extern IntPtr GetDamageLibrary(IntPtr p); + + /// const BattleLibrary * + /// const MiscLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetMiscLibrary")] + internal static extern IntPtr GetMiscLibrary(IntPtr p); + + /// const BattleLibrary * + /// const ExperienceLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetExperienceLibrary")] + internal static extern IntPtr GetExperienceLibrary(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleParty.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BattleParty.cs new file mode 100644 index 0000000..1b19e37 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/BattleParty.cs @@ -0,0 +1,35 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class BattleParty + { + /// BattleParty *& + /// CreatureParty * + /// unsigned char * + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr p, IntPtr creatureIndices, ulong numberOfIndices); + + /// const BattleParty * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// bool& + /// const BattleParty * + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_IsResponsibleForIndex")] + internal static extern byte IsResponsibleForIndex(ref bool @out, IntPtr p, byte side, byte creature); + + /// const BattleParty * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_HasCreaturesNotInField")] + internal static extern bool HasCreaturesNotInField(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleRandom.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BattleRandom.cs new file mode 100644 index 0000000..354ab63 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/BattleRandom.cs @@ -0,0 +1,55 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class BattleRandom + { + /// BattleRandom * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Construct")] + internal static extern IntPtr Construct(); + + /// long unsigned int + /// BattleRandom * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_ConstructWithSeed")] + internal static extern IntPtr ConstructWithSeed(ulong seed); + + /// BattleRandom * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// bool& + /// BattleRandom * + /// float + /// ExecutingAttack * + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_EffectChance")] + internal static extern byte EffectChance(ref bool @out, IntPtr p, float chance, IntPtr attack, IntPtr target); + + /// BattleRandom * + /// int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Get")] + internal static extern int Get(IntPtr p); + + /// BattleRandom * + /// int + /// int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetMax")] + internal static extern int GetMax(IntPtr p, int max); + + /// BattleRandom * + /// int + /// int + /// int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetMinMax")] + internal static extern int GetMinMax(IntPtr p, int min, int max); + + /// BattleRandom * + /// long unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetSeed")] + internal static extern ulong GetSeed(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleSide.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BattleSide.cs new file mode 100644 index 0000000..fadd01e --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/BattleSide.cs @@ -0,0 +1,95 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class BattleSide + { + /// unsigned char + /// Battle * + /// unsigned char + /// BattleSide * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_Construct")] + internal static extern IntPtr Construct(byte index, IntPtr battle, byte creaturesPerSide); + + /// BattleSide * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// BattleSide * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllChoicesSet")] + internal static extern bool AllChoicesSet(IntPtr p); + + /// BattleSide * + /// const BaseTurnChoice * * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetChoices")] + internal static extern IntPtr GetChoices(IntPtr p); + + /// bool& + /// BattleSide * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllPossibleSlotsFilled")] + internal static extern byte AllPossibleSlotsFilled(ref bool @out, IntPtr p); + + /// BattleSide * + /// BaseTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetChoice")] + internal static extern byte SetChoice(IntPtr p, IntPtr choice); + + /// BattleSide * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_ResetChoices")] + internal static extern void ResetChoices(IntPtr p); + + /// BattleSide * + /// Creature * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetCreature")] + internal static extern byte SetCreature(IntPtr p, IntPtr creature, byte index); + + /// Creature *& + /// BattleSide * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetCreature")] + internal static extern byte GetCreature(ref IntPtr @out, IntPtr p, byte index); + + /// BattleSide * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetSideIndex")] + internal static extern byte GetSideIndex(IntPtr p); + + /// unsigned char& + /// BattleSide * + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetCreatureIndex")] + internal static extern byte GetCreatureIndex(ref byte @out, IntPtr p, IntPtr c); + + /// BattleSide * + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_MarkSlotAsUnfillable")] + internal static extern byte MarkSlotAsUnfillable(IntPtr p, IntPtr c); + + /// BattleSide * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_IsDefeated")] + internal static extern bool IsDefeated(IntPtr p); + + /// BattleSide * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_HasFled")] + internal static extern bool HasFled(IntPtr p); + + /// BattleSide * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_MarkAsFled")] + internal static extern void MarkAsFled(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleStatCalculator.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BattleStatCalculator.cs new file mode 100644 index 0000000..e5933e5 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/BattleStatCalculator.cs @@ -0,0 +1,34 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class BattleStatCalculator + { + /// const BattleStatCalculator * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Construct")] + internal static extern IntPtr Construct(); + + /// const BattleStatCalculator * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// unsigned int& + /// const BattleStatCalculator * + /// Creature * + /// Statistic + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateFlatStat")] + internal static extern byte CalculateFlatStat(ref uint @out, IntPtr p, IntPtr creature, Statistic stat); + + /// unsigned int& + /// const BattleStatCalculator * + /// Creature * + /// Statistic + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateBoostedStat")] + internal static extern byte CalculateBoostedStat(ref uint @out, IntPtr p, IntPtr creature, Statistic stat); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/C.cs b/PkmnLibSharp/Generated/Creaturelibbattling/C.cs new file mode 100644 index 0000000..c5995ec --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/C.cs @@ -0,0 +1,13 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class C + { + /// const char * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastException")] + internal static extern string GetLastException(); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Creature.cs b/PkmnLibSharp/Generated/Creaturelibbattling/Creature.cs new file mode 100644 index 0000000..6377eb9 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/Creature.cs @@ -0,0 +1,274 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class Creature + { + /// Creature *& + /// const BattleLibrary * + /// const CreatureSpecies * + /// const SpeciesVariant * + /// unsigned char + /// unsigned int + /// unsigned int + /// Gender + /// unsigned char + /// const Item * + /// const char * + /// bool + /// unsigned char + /// LearnedAttack * * + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr species, IntPtr variant, byte level, uint experience, uint uid, Gender gender, byte coloring, IntPtr heldItem, string nickname, bool secretTalent, byte talent, IntPtr attacks, ulong attacksNum); + + /// const Creature * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const Creature * + /// const CreatureSpecies * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetSpecies")] + internal static extern IntPtr GetSpecies(IntPtr p); + + /// const Creature * + /// const SpeciesVariant * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetVariant")] + internal static extern IntPtr GetVariant(IntPtr p); + + /// const Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLevel")] + internal static extern byte GetLevel(IntPtr p); + + /// const Creature * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetExperience")] + internal static extern uint GetExperience(IntPtr p); + + /// const Creature * + /// Gender + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetGender")] + internal static extern Gender GetGender(IntPtr p); + + /// const Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetColoring")] + internal static extern byte GetColoring(IntPtr p); + + /// const Creature * + /// const char * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItem")] + internal static extern bool HasHeldItem(IntPtr p, string name); + + /// const Creature * + /// unsigned int + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItemWithHash")] + internal static extern bool HasHeldItemWithHash(IntPtr p, uint hash); + + /// const Creature * + /// const Item * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetHeldItem")] + internal static extern IntPtr GetHeldItem(IntPtr p); + + /// Creature * + /// const char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItem")] + internal static extern byte SetHeldItem(IntPtr p, string name); + + /// Creature * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemWithHash")] + internal static extern byte SetHeldItemWithHash(IntPtr p, uint hash); + + /// Creature * + /// const Item * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemFromItem")] + internal static extern void SetHeldItemFromItem(IntPtr p, IntPtr item); + + /// const Creature * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetCurrentHealth")] + internal static extern uint GetCurrentHealth(IntPtr p); + + /// const Creature * + /// Battle * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattle")] + internal static extern IntPtr GetBattle(IntPtr p); + + /// const Creature * + /// BattleSide * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattleSide")] + internal static extern IntPtr GetBattleSide(IntPtr p); + + /// const Creature * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_IsOnBattleField")] + internal static extern bool IsOnBattleField(IntPtr p); + + /// Creature * + /// const char * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetNickname")] + internal static extern string GetNickname(IntPtr p); + + /// Creature * + /// long unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetTypesCount")] + internal static extern ulong GetTypesCount(IntPtr p); + + /// Creature * + /// const unsigned char * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetTypes")] + internal static extern IntPtr GetTypes(IntPtr p); + + /// Creature * + /// unsigned char + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasType")] + internal static extern bool HasType(IntPtr p, byte type); + + /// const Creature * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetMaxHealth")] + internal static extern uint GetMaxHealth(IntPtr p); + + /// Creature * + /// signed char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeLevelBy")] + internal static extern byte ChangeLevelBy(IntPtr p, sbyte level); + + /// Creature * + /// unsigned int + /// DamageSource + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Damage")] + internal static extern byte Damage(IntPtr p, uint damage, DamageSource source); + + /// Creature * + /// unsigned int + /// bool + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Heal")] + internal static extern byte Heal(IntPtr p, uint health, bool canRevive); + + /// Creature * + /// const char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_OverrideActiveTalent")] + internal static extern byte OverrideActiveTalent(IntPtr p, string talent); + + /// Creature * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddExperience")] + internal static extern byte AddExperience(IntPtr p, uint experience); + + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ClearVolatileScripts")] + internal static extern byte ClearVolatileScripts(IntPtr p); + + /// Creature * + /// const char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScriptByName")] + internal static extern byte AddVolatileScriptByName(IntPtr p, string scriptName); + + /// Creature * + /// Script * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScript")] + internal static extern byte AddVolatileScript(IntPtr p, IntPtr script); + + /// Creature * + /// const char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScriptByName")] + internal static extern byte RemoveVolatileScriptByName(IntPtr p, string scriptName); + + /// Creature * + /// Script * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScript")] + internal static extern byte RemoveVolatileScript(IntPtr p, IntPtr script); + + /// Creature * + /// const char * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasVolatileScript")] + internal static extern bool HasVolatileScript(IntPtr p, string scriptName); + + /// Creature * + /// long unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacksCount")] + internal static extern ulong GetAttacksCount(IntPtr p); + + /// Creature * + /// const LearnedAttack * * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacks")] + internal static extern IntPtr GetAttacks(IntPtr p); + + /// const Creature * + /// const CreatureSpecies * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplaySpecies")] + internal static extern IntPtr GetDisplaySpecies(IntPtr p); + + /// const Creature * + /// const SpeciesVariant * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplayVariant")] + internal static extern IntPtr GetDisplayVariant(IntPtr p); + + /// Creature * + /// const CreatureSpecies * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplaySpecies")] + internal static extern void SetDisplaySpecies(IntPtr p, IntPtr species); + + /// Creature * + /// const SpeciesVariant * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplayVariant")] + internal static extern void SetDisplayVariant(IntPtr p, IntPtr variant); + + /// Creature * + /// Statistic + /// signed char + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeStatBoost")] + internal static extern void ChangeStatBoost(IntPtr p, Statistic stat, sbyte diffAmount); + + /// Creature * + /// Statistic + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetFlatStat")] + internal static extern uint GetFlatStat(IntPtr p, Statistic stat); + + /// Creature * + /// Statistic + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBoostedStat")] + internal static extern uint GetBoostedStat(IntPtr p, Statistic stat); + + /// Creature * + /// Statistic + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBaseStat")] + internal static extern uint GetBaseStat(IntPtr p, Statistic stat); + + /// Creature * + /// Statistic + /// signed char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetStatBoost")] + internal static extern sbyte GetStatBoost(IntPtr p, Statistic stat); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/CreatureParty.cs b/PkmnLibSharp/Generated/Creaturelibbattling/CreatureParty.cs new file mode 100644 index 0000000..a8d66b7 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/CreatureParty.cs @@ -0,0 +1,54 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class CreatureParty + { + /// long unsigned int + /// CreatureParty * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_ConstructWithSize")] + internal static extern IntPtr ConstructWithSize(ulong size); + + /// Creature * * + /// long unsigned int + /// CreatureParty * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_ConstructFromArray")] + internal static extern IntPtr ConstructFromArray(IntPtr creatures, ulong size); + + /// const CreatureParty * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// Creature *& + /// const CreatureParty * + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetAtIndex")] + internal static extern byte GetAtIndex(ref IntPtr @out, IntPtr p, ulong index); + + /// CreatureParty * + /// long unsigned int + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Switch")] + internal static extern byte Switch(IntPtr p, ulong a, ulong b); + + /// const CreatureParty * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_HasAvailableCreatures")] + internal static extern bool HasAvailableCreatures(IntPtr p); + + /// const CreatureParty * + /// long unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetLength")] + internal static extern ulong GetLength(IntPtr p); + + /// CreatureParty * + /// const Creature * * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetParty")] + internal static extern IntPtr GetParty(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/DamageEvent.cs b/PkmnLibSharp/Generated/Creaturelibbattling/DamageEvent.cs new file mode 100644 index 0000000..8072d8a --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/DamageEvent.cs @@ -0,0 +1,29 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class DamageEvent + { + /// const DamageEvent * + /// Creature * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetCreature")] + internal static extern IntPtr GetCreature(IntPtr p); + + /// const DamageEvent * + /// DamageSource + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetDamageSource")] + internal static extern DamageSource GetDamageSource(IntPtr p); + + /// const DamageEvent * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetOriginalHealth")] + internal static extern uint GetOriginalHealth(IntPtr p); + + /// const DamageEvent * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetNewHealth")] + internal static extern uint GetNewHealth(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/DamageLibrary.cs b/PkmnLibSharp/Generated/Creaturelibbattling/DamageLibrary.cs new file mode 100644 index 0000000..18df3e9 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/DamageLibrary.cs @@ -0,0 +1,58 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class DamageLibrary + { + /// const DamageLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Construct")] + internal static extern IntPtr Construct(); + + /// const DamageLibrary * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// unsigned int& + /// const DamageLibrary * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// HitData * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamage")] + internal static extern byte GetDamage(ref uint @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData); + + /// unsigned char& + /// const DamageLibrary * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// HitData * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetBasePower")] + internal static extern byte GetBasePower(ref byte @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData); + + /// float& + /// const DamageLibrary * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// HitData * + /// float + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetStatModifier")] + internal static extern float GetStatModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData); + + /// float& + /// const DamageLibrary * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// HitData * + /// float + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamageModifier")] + internal static extern float GetDamageModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/DamageSource.cs b/PkmnLibSharp/Generated/Creaturelibbattling/DamageSource.cs new file mode 100644 index 0000000..f5a2702 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/DamageSource.cs @@ -0,0 +1,10 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum DamageSource : byte + { + AttackDamage = 0, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/DisplayTextEvent.cs b/PkmnLibSharp/Generated/Creaturelibbattling/DisplayTextEvent.cs new file mode 100644 index 0000000..929692a --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/DisplayTextEvent.cs @@ -0,0 +1,14 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class DisplayTextEvent + { + /// const DisplayTextEvent * + /// const char * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DisplayTextEvent_GetText")] + internal static extern string GetText(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/EffectParameterType.cs b/PkmnLibSharp/Generated/Creaturelibbattling/EffectParameterType.cs new file mode 100644 index 0000000..6be5a72 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/EffectParameterType.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum EffectParameterType : byte + { + None = 0, + Bool = 1, + Int = 2, + Float = 3, + String = 4, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/EventData.cs b/PkmnLibSharp/Generated/Creaturelibbattling/EventData.cs new file mode 100644 index 0000000..cf85c51 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/EventData.cs @@ -0,0 +1,19 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class EventData + { + /// const EventData * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EventData_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const EventData * + /// EventDataKind + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EventData_GetKind")] + internal static extern EventDataKind GetKind(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/EventDataKind.cs b/PkmnLibSharp/Generated/Creaturelibbattling/EventDataKind.cs new file mode 100644 index 0000000..367802f --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/EventDataKind.cs @@ -0,0 +1,13 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum EventDataKind : byte + { + Damage = 0, + Heal = 1, + Faint = 2, + DisplayText = 3, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ExecutingAttack.cs b/PkmnLibSharp/Generated/Creaturelibbattling/ExecutingAttack.cs new file mode 100644 index 0000000..48893bf --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/ExecutingAttack.cs @@ -0,0 +1,49 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class ExecutingAttack + { + /// ExecutingAttack *& + /// const Creature * * + /// long unsigned int + /// unsigned char + /// Creature * + /// LearnedAttack * + /// Script * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr targets, ulong targetCount, byte numberHits, IntPtr user, IntPtr attack, IntPtr script); + + /// ExecutingAttack * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// HitData *& + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetHitData")] + internal static extern byte GetHitData(ref IntPtr @out, IntPtr p, IntPtr target, byte hit); + + /// ExecutingAttack * + /// Creature * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_IsCreatureTarget")] + internal static extern bool IsCreatureTarget(IntPtr p, IntPtr target); + + /// ExecutingAttack * + /// Creature * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetUser")] + internal static extern IntPtr GetUser(IntPtr p); + + /// ExecutingAttack * + /// LearnedAttack * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetAttack")] + internal static extern IntPtr GetAttack(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ExperienceLibrary.cs b/PkmnLibSharp/Generated/Creaturelibbattling/ExperienceLibrary.cs new file mode 100644 index 0000000..ff2d363 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/ExperienceLibrary.cs @@ -0,0 +1,26 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class ExperienceLibrary + { + /// const ExperienceLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Construct")] + internal static extern IntPtr Construct(); + + /// const ExperienceLibrary * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const ExperienceLibrary * + /// Creature * + /// Creature * * + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_HandleExperienceGain")] + internal static extern byte HandleExperienceGain(IntPtr p, IntPtr faintedMon, IntPtr opponents, ulong opponentsCount); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/FaintEvent.cs b/PkmnLibSharp/Generated/Creaturelibbattling/FaintEvent.cs new file mode 100644 index 0000000..60e9d41 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/FaintEvent.cs @@ -0,0 +1,14 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class FaintEvent + { + /// const FaintEvent * + /// Creature * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FaintEvent_GetCreature")] + internal static extern IntPtr GetCreature(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/FleeTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelibbattling/FleeTurnChoice.cs new file mode 100644 index 0000000..ca7027b --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/FleeTurnChoice.cs @@ -0,0 +1,14 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class FleeTurnChoice + { + /// Creature * + /// FleeTurnChoice * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Construct")] + internal static extern IntPtr Construct(IntPtr user); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Gender.cs b/PkmnLibSharp/Generated/Creaturelibbattling/Gender.cs new file mode 100644 index 0000000..acf6a59 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/Gender.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum Gender : byte + { + Male = 0, + Female = 1, + Genderless = 2, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/HealEvent.cs b/PkmnLibSharp/Generated/Creaturelibbattling/HealEvent.cs new file mode 100644 index 0000000..f6f1097 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/HealEvent.cs @@ -0,0 +1,24 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class HealEvent + { + /// const HealEvent * + /// Creature * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetCreature")] + internal static extern IntPtr GetCreature(IntPtr p); + + /// const HealEvent * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetOriginalHealth")] + internal static extern uint GetOriginalHealth(IntPtr p); + + /// const HealEvent * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetNewHealth")] + internal static extern uint GetNewHealth(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/HitData.cs b/PkmnLibSharp/Generated/Creaturelibbattling/HitData.cs new file mode 100644 index 0000000..5b41959 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/HitData.cs @@ -0,0 +1,64 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class HitData + { + /// const HitData * + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_IsCritical")] + internal static extern bool IsCritical(IntPtr p); + + /// const HitData * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetBasePower")] + internal static extern byte GetBasePower(IntPtr p); + + /// const HitData * + /// float + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetEffectiveness")] + internal static extern float GetEffectiveness(IntPtr p); + + /// const HitData * + /// unsigned int + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetDamage")] + internal static extern uint GetDamage(IntPtr p); + + /// const HitData * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetType")] + internal static extern byte GetType(IntPtr p); + + /// HitData * + /// bool + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetCritical")] + internal static extern void SetCritical(IntPtr p, bool val); + + /// HitData * + /// unsigned char + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetBasePower")] + internal static extern void SetBasePower(IntPtr p, byte val); + + /// HitData * + /// float + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetEffectiveness")] + internal static extern void SetEffectiveness(IntPtr p, float val); + + /// HitData * + /// unsigned int + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetDamage")] + internal static extern void SetDamage(IntPtr p, uint val); + + /// HitData * + /// unsigned char + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetType")] + internal static extern void SetType(IntPtr p, byte val); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ItemCategory.cs b/PkmnLibSharp/Generated/Creaturelibbattling/ItemCategory.cs new file mode 100644 index 0000000..d55cbf1 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/ItemCategory.cs @@ -0,0 +1,17 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum ItemCategory : byte + { + MiscItem = 0, + CaptureDevice = 1, + Medicine = 2, + Berry = 3, + MoveLearner = 4, + VariantChanger = 5, + KeyItem = 6, + Mail = 7, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/LearnedAttack.cs b/PkmnLibSharp/Generated/Creaturelibbattling/LearnedAttack.cs new file mode 100644 index 0000000..35ec36c --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/LearnedAttack.cs @@ -0,0 +1,65 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class LearnedAttack + { + /// LearnedAttack *& + /// AttackData * + /// unsigned char + /// AttackLearnMethod + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr attack, byte maxUses, AttackLearnMethod learnMethod); + + /// LearnedAttack * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const LearnedAttack * + /// const AttackData * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetAttack")] + internal static extern IntPtr GetAttack(IntPtr p); + + /// const LearnedAttack * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetMaxUses")] + internal static extern byte GetMaxUses(IntPtr p); + + /// const LearnedAttack * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetRemainingUses")] + internal static extern byte GetRemainingUses(IntPtr p); + + /// const LearnedAttack * + /// AttackLearnMethod + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetLearnMethod")] + internal static extern AttackLearnMethod GetLearnMethod(IntPtr p); + + /// LearnedAttack * + /// unsigned char + /// bool + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_TryUse")] + internal static extern bool TryUse(IntPtr p, byte uses); + + /// LearnedAttack * + /// unsigned char + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_DecreaseUses")] + internal static extern void DecreaseUses(IntPtr p, byte uses); + + /// LearnedAttack * + /// unsigned char + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_RestoreUses")] + internal static extern void RestoreUses(IntPtr p, byte uses); + + /// LearnedAttack * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_RestoreAllUses")] + internal static extern void RestoreAllUses(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/MiscLibrary.cs b/PkmnLibSharp/Generated/Creaturelibbattling/MiscLibrary.cs new file mode 100644 index 0000000..f7cbb8d --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/MiscLibrary.cs @@ -0,0 +1,43 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class MiscLibrary + { + /// MiscLibrary * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Construct")] + internal static extern IntPtr Construct(); + + /// const MiscLibrary * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// bool& + /// MiscLibrary * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_IsCritical")] + internal static extern byte IsCritical(ref bool @out, IntPtr p, IntPtr attack, IntPtr target, byte hit); + + /// bool& + /// MiscLibrary * + /// FleeTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_CanFlee")] + internal static extern byte CanFlee(ref bool @out, IntPtr p, IntPtr switchChoice); + + /// BaseTurnChoice *& + /// MiscLibrary * + /// Creature * + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_ReplacementAttack")] + internal static extern byte ReplacementAttack(ref IntPtr @out, IntPtr p, IntPtr user, byte sideTarget, byte creatureTarget); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/PassTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelibbattling/PassTurnChoice.cs new file mode 100644 index 0000000..929f320 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/PassTurnChoice.cs @@ -0,0 +1,14 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class PassTurnChoice + { + /// Creature * + /// PassTurnChoice * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Construct")] + internal static extern IntPtr Construct(IntPtr user); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Script.cs b/PkmnLibSharp/Generated/Creaturelibbattling/Script.cs new file mode 100644 index 0000000..a5e499c --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/Script.cs @@ -0,0 +1,211 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class Script + { + /// Script * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// Script * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_Stack")] + internal static extern byte Stack(IntPtr p); + + /// Script * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnRemove")] + internal static extern byte OnRemove(IntPtr p); + + /// Script * + /// const char * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_GetName")] + internal static extern string GetName(IntPtr p); + + /// Script * + /// const BaseTurnChoice * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeTurn")] + internal static extern byte OnBeforeTurn(IntPtr p, IntPtr choice); + + /// Script * + /// AttackTurnChoice * + /// CaseInsensitiveConstString * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttack")] + internal static extern byte ChangeAttack(IntPtr p, IntPtr choice, IntPtr outAttack); + + /// Script * + /// ExecutingAttack * + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventAttack")] + internal static extern byte PreventAttack(IntPtr p, IntPtr attack, IntPtr outResult); + + /// Script * + /// ExecutingAttack * + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailAttack")] + internal static extern byte FailAttack(IntPtr p, IntPtr attack, IntPtr outResult); + + /// Script * + /// ExecutingAttack * + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_StopBeforeAttack")] + internal static extern byte StopBeforeAttack(IntPtr p, IntPtr attack, IntPtr outResult); + + /// Script * + /// ExecutingAttack * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeAttack")] + internal static extern byte OnBeforeAttack(IntPtr p, IntPtr attack); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailIncomingAttack")] + internal static extern byte FailIncomingAttack(IntPtr p, IntPtr attack, IntPtr target, IntPtr outResult); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_IsInvulnerable")] + internal static extern byte IsInvulnerable(IntPtr p, IntPtr attack, IntPtr target, IntPtr outResult); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnAttackMiss")] + internal static extern byte OnAttackMiss(IntPtr p, IntPtr attack, IntPtr target); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// unsigned char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttackType")] + internal static extern byte ChangeAttackType(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outType); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// unsigned char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideBasePower")] + internal static extern byte OverrideBasePower(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr basePower); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// Creature * * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeDamageStatsUser")] + internal static extern byte ChangeDamageStatsUser(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr statsUser); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassDefensiveStat")] + internal static extern byte BypassDefensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassOffensiveStat")] + internal static extern byte BypassOffensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// float * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyStatModifier")] + internal static extern byte ModifyStatModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// float * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyDamageModifier")] + internal static extern byte ModifyDamageModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// unsigned int * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideDamage")] + internal static extern byte OverrideDamage(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr damage); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSecondaryEffects")] + internal static extern byte PreventSecondaryEffects(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outResult); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnSecondaryEffect")] + internal static extern byte OnSecondaryEffect(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber); + + /// Script * + /// ExecutingAttack * + /// Creature * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnAfterHits")] + internal static extern byte OnAfterHits(IntPtr p, IntPtr attack, IntPtr target); + + /// Script * + /// const SwitchTurnChoice * + /// bool * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSelfSwitch")] + internal static extern byte PreventSelfSwitch(IntPtr p, IntPtr choice, IntPtr outResult); + + /// Script * + /// const ExecutingAttack * + /// Creature * + /// float * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyEffectChance")] + internal static extern byte ModifyEffectChance(IntPtr p, IntPtr attack, IntPtr target, IntPtr chance); + + /// Script * + /// const ExecutingAttack * + /// Creature * + /// float * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyIncomingEffectChance")] + internal static extern byte ModifyIncomingEffectChance(IntPtr p, IntPtr attack, IntPtr target, IntPtr chance); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ScriptCategory.cs b/PkmnLibSharp/Generated/Creaturelibbattling/ScriptCategory.cs new file mode 100644 index 0000000..6ceb756 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/ScriptCategory.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum ScriptCategory : byte + { + Attack = 0, + Talent = 1, + Status = 2, + Creature = 3, + Battle = 4, + Side = 5, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ScriptResolver.cs b/PkmnLibSharp/Generated/Creaturelibbattling/ScriptResolver.cs new file mode 100644 index 0000000..cc75bca --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/ScriptResolver.cs @@ -0,0 +1,32 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class ScriptResolver + { + /// ScriptResolver * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Construct")] + internal static extern IntPtr Construct(); + + /// const ScriptResolver * + /// void + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// ScriptResolver * + /// BattleLibrary * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Initialize")] + internal static extern byte Initialize(IntPtr p, IntPtr library); + + /// Script *& + /// ScriptResolver * + /// ScriptCategory + /// const char * + /// unsigned char + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_LoadScript")] + internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, ScriptCategory category, string scriptName); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Statistic.cs b/PkmnLibSharp/Generated/Creaturelibbattling/Statistic.cs new file mode 100644 index 0000000..c95583c --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/Statistic.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum Statistic : byte + { + Health = 0, + PhysicalAttack = 1, + PhysicalDefense = 2, + MagicalAttack = 3, + MagicalDefense = 4, + Speed = 5, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/SwitchTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelibbattling/SwitchTurnChoice.cs new file mode 100644 index 0000000..a7026a7 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/SwitchTurnChoice.cs @@ -0,0 +1,20 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creaturelibbattling.Generated +{ + internal static class SwitchTurnChoice + { + /// Creature * + /// Creature * + /// SwitchTurnChoice * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Construct")] + internal static extern IntPtr Construct(IntPtr user, IntPtr newCreature); + + /// const SwitchTurnChoice * + /// Creature * + [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_GetNewCreature")] + internal static extern IntPtr GetNewCreature(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/TurnChoiceKind.cs b/PkmnLibSharp/Generated/Creaturelibbattling/TurnChoiceKind.cs new file mode 100644 index 0000000..7dc381d --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/TurnChoiceKind.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum TurnChoiceKind : byte + { + Pass = 0, + Attack = 1, + Item = 2, + Switch = 3, + Flee = 4, + } +} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/memory_order.cs b/PkmnLibSharp/Generated/Creaturelibbattling/memory_order.cs new file mode 100644 index 0000000..b2731b2 --- /dev/null +++ b/PkmnLibSharp/Generated/Creaturelibbattling/memory_order.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creaturelibbattling +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum memory_order : int + { + memory_order_relaxed = 0, + memory_order_consume = 1, + memory_order_acquire = 2, + memory_order_release = 3, + memory_order_acq_rel = 4, + memory_order_seq_cst = 5, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/AttackCategory.cs b/PkmnLibSharp/Generated/Creatureliblibrary/AttackCategory.cs new file mode 100644 index 0000000..3805381 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/AttackCategory.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackCategory : byte + { + Physical = 0, + Magical = 1, + Status = 2, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/AttackData.cs b/PkmnLibSharp/Generated/Creatureliblibrary/AttackData.cs new file mode 100644 index 0000000..e27ad15 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/AttackData.cs @@ -0,0 +1,94 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class AttackData + { + /// AttackData *& + /// const char * + /// unsigned char + /// AttackCategory + /// unsigned char + /// unsigned char + /// unsigned char + /// AttackTarget + /// signed char + /// float + /// const char * + /// EffectParameter * * + /// long unsigned int + /// const char * * + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Construct")] + internal static extern byte Construct(ref IntPtr @out, string name, byte type, AttackCategory category, byte power, byte accuracy, byte baseUsage, AttackTarget target, sbyte priority, float effectChance, string effectName, IntPtr effectParameters, ulong effectParameterCount, IntPtr flags, ulong flagsCount); + + /// const AttackData * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const AttackData * + /// const char * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetName")] + internal static extern string GetName(IntPtr p); + + /// const AttackData * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetType")] + internal static extern byte GetType(IntPtr p); + + /// const AttackData * + /// AttackCategory + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetCategory")] + internal static extern AttackCategory GetCategory(IntPtr p); + + /// const AttackData * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetBasePower")] + internal static extern byte GetBasePower(IntPtr p); + + /// const AttackData * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetAccuracy")] + internal static extern byte GetAccuracy(IntPtr p); + + /// const AttackData * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetBaseUsages")] + internal static extern byte GetBaseUsages(IntPtr p); + + /// const AttackData * + /// AttackTarget + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetTarget")] + internal static extern AttackTarget GetTarget(IntPtr p); + + /// const AttackData * + /// signed char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetPriority")] + internal static extern sbyte GetPriority(IntPtr p); + + /// const AttackData * + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasSecondaryEffect")] + internal static extern bool HasSecondaryEffect(IntPtr p); + + /// const AttackData * + /// float + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectChance")] + internal static extern float GetSecondaryEffectChance(IntPtr p); + + /// const AttackData * + /// const char * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectName")] + internal static extern string GetSecondaryEffectName(IntPtr p); + + /// const AttackData * + /// const char * + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasFlag")] + internal static extern bool HasFlag(IntPtr p, string key); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/AttackLibrary.cs b/PkmnLibSharp/Generated/Creatureliblibrary/AttackLibrary.cs new file mode 100644 index 0000000..6328119 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/AttackLibrary.cs @@ -0,0 +1,79 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class AttackLibrary + { + /// AttackLibrary *& + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Construct")] + internal static extern byte Construct(ref IntPtr library, ulong initialCapacity); + + /// const AttackLibrary * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// AttackLibrary * + /// const char * + /// AttackData * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Insert")] + internal static extern byte Insert(IntPtr p, string name, IntPtr t); + + /// AttackLibrary * + /// unsigned int + /// AttackData * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_InsertWithHash")] + internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t); + + /// AttackLibrary * + /// const char * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Delete")] + internal static extern byte Delete(IntPtr p, string name); + + /// AttackLibrary * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_DeleteWithHash")] + internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey); + + /// AttackLibrary * + /// const char * + /// const AttackData *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGet")] + internal static extern bool TryGet(IntPtr p, string name, ref IntPtr @out); + + /// AttackLibrary * + /// unsigned int + /// const AttackData *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGetWithHash")] + internal static extern bool TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); + + /// AttackLibrary * + /// const char * + /// const AttackData *& + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Get")] + internal static extern byte Get(IntPtr p, string name, ref IntPtr @out); + + /// AttackLibrary * + /// unsigned int + /// const AttackData *& + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetWithHash")] + internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); + + /// AttackLibrary * + /// long unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetCount")] + internal static extern ulong GetCount(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/AttackTarget.cs b/PkmnLibSharp/Generated/Creatureliblibrary/AttackTarget.cs new file mode 100644 index 0000000..9602f13 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/AttackTarget.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackTarget : byte + { + Adjacent = 0, + AdjacentAlly = 1, + RandomOpponent = 10, + Self = 11, + AdjacentAllySelf = 2, + AdjacentOpponent = 3, + All = 4, + AllAdjacent = 5, + AllAdjacentOpponent = 6, + AllAlly = 7, + AllOpponent = 8, + Any = 9, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/BattleItemCategory.cs b/PkmnLibSharp/Generated/Creatureliblibrary/BattleItemCategory.cs new file mode 100644 index 0000000..1262da0 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/BattleItemCategory.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum BattleItemCategory : byte + { + None = 0, + Healing = 1, + StatusHealing = 2, + CaptureDevice = 3, + MiscBattleItem = 4, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/C.cs b/PkmnLibSharp/Generated/Creatureliblibrary/C.cs new file mode 100644 index 0000000..7114294 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/C.cs @@ -0,0 +1,13 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class C + { + /// const char * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastException")] + internal static extern string GetLastException(); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/CreatureSpecies.cs b/PkmnLibSharp/Generated/Creatureliblibrary/CreatureSpecies.cs new file mode 100644 index 0000000..6a26a94 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/CreatureSpecies.cs @@ -0,0 +1,90 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class CreatureSpecies + { + /// CreatureSpecies *& + /// unsigned short + /// const char * + /// SpeciesVariant * + /// float + /// const char * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Construct")] + internal static extern byte Construct(ref IntPtr @out, ushort id, string name, IntPtr defaultVariant, float genderRatio, string growthRate, byte captureRate); + + /// const CreatureSpecies * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const CreatureSpecies * + /// unsigned short + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetId")] + internal static extern ushort GetId(IntPtr p); + + /// const CreatureSpecies * + /// float + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGenderRate")] + internal static extern float GetGenderRate(IntPtr p); + + /// const CreatureSpecies * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetCaptureRate")] + internal static extern byte GetCaptureRate(IntPtr p); + + /// const CreatureSpecies * + /// const char * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetName")] + internal static extern string GetName(IntPtr p); + + /// const CreatureSpecies * + /// const char * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGrowthRate")] + internal static extern string GetGrowthRate(IntPtr p); + + /// const CreatureSpecies * + /// const char * + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariant")] + internal static extern bool HasVariant(IntPtr p, string name); + + /// const CreatureSpecies * + /// unsigned int + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariantWithHash")] + internal static extern bool HasVariantWithHash(IntPtr p, uint hash); + + /// const CreatureSpecies * + /// const char * + /// const SpeciesVariant *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariant")] + internal static extern bool TryGetVariant(IntPtr p, string name, ref IntPtr @out); + + /// const CreatureSpecies * + /// unsigned int + /// const SpeciesVariant *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariantWithHash")] + internal static extern bool TryGetVariantWithHash(IntPtr p, uint hash, ref IntPtr @out); + + /// const SpeciesVariant *& + /// const CreatureSpecies * + /// const char * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariant")] + internal static extern byte GetVariant(ref IntPtr @out, IntPtr p, string name); + + /// const SpeciesVariant * + /// const CreatureSpecies * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantWithHash")] + internal static extern byte GetVariantWithHash(IntPtr @out, IntPtr p, uint hash); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/DataLibrary.cs b/PkmnLibSharp/Generated/Creatureliblibrary/DataLibrary.cs new file mode 100644 index 0000000..6117b29 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/DataLibrary.cs @@ -0,0 +1,55 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class DataLibrary + { + /// const DataLibrary *& + /// LibrarySettings * + /// SpeciesLibrary * + /// AttackLibrary * + /// ItemLibrary * + /// GrowthRateLibrary * + /// TypeLibrary * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr settings, IntPtr species, IntPtr attacks, IntPtr items, IntPtr growthRates, IntPtr typeLibrary); + + /// const DataLibrary * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const DataLibrary * + /// const LibrarySettings * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetSettings")] + internal static extern IntPtr GetSettings(IntPtr p); + + /// const DataLibrary * + /// const SpeciesLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetSpeciesLibrary")] + internal static extern IntPtr GetSpeciesLibrary(IntPtr p); + + /// const DataLibrary * + /// const AttackLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetAttackLibrary")] + internal static extern IntPtr GetAttackLibrary(IntPtr p); + + /// const DataLibrary * + /// const ItemLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetItemLibrary")] + internal static extern IntPtr GetItemLibrary(IntPtr p); + + /// const DataLibrary * + /// const GrowthRateLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetGrowthRates")] + internal static extern IntPtr GetGrowthRates(IntPtr p); + + /// const DataLibrary * + /// const TypeLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetTypeLibrary")] + internal static extern IntPtr GetTypeLibrary(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/EffectParameterType.cs b/PkmnLibSharp/Generated/Creatureliblibrary/EffectParameterType.cs new file mode 100644 index 0000000..9b88b8d --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/EffectParameterType.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum EffectParameterType : byte + { + None = 0, + Bool = 1, + Int = 2, + Float = 3, + String = 4, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/ExternGrowthRate.cs b/PkmnLibSharp/Generated/Creatureliblibrary/ExternGrowthRate.cs new file mode 100644 index 0000000..0c3a287 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/ExternGrowthRate.cs @@ -0,0 +1,16 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class ExternGrowthRate + { + /// GrowthRate *& + /// Function * + /// Function * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr calcLevel, IntPtr calcExperience); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/Gender.cs b/PkmnLibSharp/Generated/Creatureliblibrary/Gender.cs new file mode 100644 index 0000000..b5765c5 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/Gender.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum Gender : byte + { + Male = 0, + Female = 1, + Genderless = 2, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRate.cs b/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRate.cs new file mode 100644 index 0000000..f537f3e --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRate.cs @@ -0,0 +1,28 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class GrowthRate + { + /// const GrowthRate * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// unsigned char& + /// const GrowthRate * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_CalculateLevel")] + internal static extern byte CalculateLevel(ref byte @out, IntPtr p, uint experience); + + /// unsigned int& + /// const GrowthRate * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_CalculateExperience")] + internal static extern byte CalculateExperience(ref uint @out, IntPtr p, byte level); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRateLibrary.cs b/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRateLibrary.cs new file mode 100644 index 0000000..8f0a845 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRateLibrary.cs @@ -0,0 +1,65 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class GrowthRateLibrary + { + /// long unsigned int + /// GrowthRateLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Construct")] + internal static extern IntPtr Construct(ulong initialCapacity); + + /// GrowthRateLibrary * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// unsigned char& + /// GrowthRateLibrary * + /// const char * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevel")] + internal static extern byte CalculateLevel(ref byte @out, IntPtr library, string growthRate, uint experience); + + /// unsigned char& + /// GrowthRateLibrary * + /// unsigned int + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevelWithHash")] + internal static extern byte CalculateLevelWithHash(ref byte @out, IntPtr library, uint growthRateHash, uint experience); + + /// unsigned int& + /// GrowthRateLibrary * + /// const char * + /// unsigned char + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperience")] + internal static extern byte CalculateExperience(ref uint @out, IntPtr library, string growthRate, byte level); + + /// unsigned int& + /// GrowthRateLibrary * + /// unsigned int + /// unsigned char + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperienceWithHash")] + internal static extern byte CalculateExperienceWithHash(ref uint @out, IntPtr library, uint growthRateHash, byte level); + + /// GrowthRateLibrary * + /// const char * + /// GrowthRate * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRate")] + internal static extern byte AddGrowthRate(IntPtr library, string growthRateName, IntPtr growthRate); + + /// GrowthRateLibrary * + /// unsigned int + /// GrowthRate * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRateWithHash")] + internal static extern byte AddGrowthRateWithHash(IntPtr library, uint growthRateHash, IntPtr growthRate); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/Item.cs b/PkmnLibSharp/Generated/Creatureliblibrary/Item.cs new file mode 100644 index 0000000..848f752 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/Item.cs @@ -0,0 +1,50 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class Item + { + /// const char * + /// ItemCategory + /// BattleItemCategory + /// int + /// const char * * + /// long unsigned int + /// Item * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Construct")] + internal static extern IntPtr Construct(string name, ItemCategory category, BattleItemCategory battleCategory, int price, IntPtr flags, ulong flagsCount); + + /// const Item * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const Item * + /// const char * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetName")] + internal static extern string GetName(IntPtr p); + + /// const Item * + /// ItemCategory + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetCategory")] + internal static extern ItemCategory GetCategory(IntPtr p); + + /// const Item * + /// BattleItemCategory + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetBattleCategory")] + internal static extern BattleItemCategory GetBattleCategory(IntPtr p); + + /// const Item * + /// int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetPrice")] + internal static extern int GetPrice(IntPtr p); + + /// const Item * + /// const char * + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_HasFlag")] + internal static extern bool HasFlag(IntPtr p, string key); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/ItemCategory.cs b/PkmnLibSharp/Generated/Creatureliblibrary/ItemCategory.cs new file mode 100644 index 0000000..ca815a9 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/ItemCategory.cs @@ -0,0 +1,17 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum ItemCategory : byte + { + MiscItem = 0, + CaptureDevice = 1, + Medicine = 2, + Berry = 3, + MoveLearner = 4, + VariantChanger = 5, + KeyItem = 6, + Mail = 7, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/ItemLibrary.cs b/PkmnLibSharp/Generated/Creatureliblibrary/ItemLibrary.cs new file mode 100644 index 0000000..df047a1 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/ItemLibrary.cs @@ -0,0 +1,78 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class ItemLibrary + { + /// long unsigned int + /// const ItemLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Construct")] + internal static extern IntPtr Construct(ulong initialCapacity); + + /// const ItemLibrary * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// ItemLibrary * + /// const char * + /// Item * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Insert")] + internal static extern byte Insert(IntPtr p, string name, IntPtr t); + + /// ItemLibrary * + /// unsigned int + /// Item * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_InsertWithHash")] + internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t); + + /// ItemLibrary * + /// const char * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Delete")] + internal static extern byte Delete(IntPtr p, string name); + + /// ItemLibrary * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_DeleteWithHash")] + internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey); + + /// ItemLibrary * + /// const char * + /// const Item *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGet")] + internal static extern bool TryGet(IntPtr p, string name, ref IntPtr @out); + + /// ItemLibrary * + /// unsigned int + /// const Item *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGetWithHash")] + internal static extern bool TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); + + /// ItemLibrary * + /// const char * + /// const Item *& + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Get")] + internal static extern byte Get(IntPtr p, string name, ref IntPtr @out); + + /// ItemLibrary * + /// unsigned int + /// const Item *& + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetWithHash")] + internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); + + /// ItemLibrary * + /// long unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetCount")] + internal static extern ulong GetCount(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/LearnableAttacks.cs b/PkmnLibSharp/Generated/Creatureliblibrary/LearnableAttacks.cs new file mode 100644 index 0000000..e8ed27e --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/LearnableAttacks.cs @@ -0,0 +1,39 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class LearnableAttacks + { + /// LearnableAttacks *& + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Construct")] + internal static extern byte Construct(ref IntPtr @out, ulong levelAttackCapacity); + + /// LearnableAttacks * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// LearnableAttacks * + /// unsigned char + /// const AttackData * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_AddLevelAttack")] + internal static extern void AddLevelAttack(IntPtr p, byte level, IntPtr attack); + + /// LearnableAttacks * + /// unsigned char + /// const const AttackData * * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetAttacksForLevel")] + internal static extern IntPtr GetAttacksForLevel(IntPtr p, byte level); + + /// LearnableAttacks * + /// unsigned char + /// long unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetAttacksForLevelCount")] + internal static extern ulong GetAttacksForLevelCount(IntPtr p, byte level); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/LibrarySettings.cs b/PkmnLibSharp/Generated/Creatureliblibrary/LibrarySettings.cs new file mode 100644 index 0000000..b44a944 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/LibrarySettings.cs @@ -0,0 +1,30 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class LibrarySettings + { + /// unsigned char + /// unsigned char + /// const LibrarySettings * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_Construct")] + internal static extern IntPtr Construct(byte maximalLevel, byte maximalMoves); + + /// const LibrarySettings * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const LibrarySettings * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_GetMaximalLevel")] + internal static extern byte GetMaximalLevel(IntPtr p); + + /// const LibrarySettings * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_GetMaximalMoves")] + internal static extern byte GetMaximalMoves(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/LookupGrowthRate.cs b/PkmnLibSharp/Generated/Creatureliblibrary/LookupGrowthRate.cs new file mode 100644 index 0000000..e94626d --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/LookupGrowthRate.cs @@ -0,0 +1,15 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class LookupGrowthRate + { + /// unsigned int * + /// long unsigned int + /// GrowthRate * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Construct")] + internal static extern IntPtr Construct(IntPtr experiencePerLevel, ulong count); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesLibrary.cs b/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesLibrary.cs new file mode 100644 index 0000000..1374da9 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesLibrary.cs @@ -0,0 +1,78 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class SpeciesLibrary + { + /// long unsigned int + /// const SpeciesLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Construct")] + internal static extern IntPtr Construct(ulong initialCapacity); + + /// const SpeciesLibrary * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// SpeciesLibrary * + /// const char * + /// CreatureSpecies * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Insert")] + internal static extern byte Insert(IntPtr p, string name, IntPtr t); + + /// SpeciesLibrary * + /// unsigned int + /// CreatureSpecies * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_InsertWithHash")] + internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t); + + /// SpeciesLibrary * + /// const char * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Delete")] + internal static extern byte Delete(IntPtr p, string name); + + /// SpeciesLibrary * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_DeleteWithHash")] + internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey); + + /// SpeciesLibrary * + /// const char * + /// const CreatureSpecies *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGet")] + internal static extern bool TryGet(IntPtr p, string name, ref IntPtr @out); + + /// SpeciesLibrary * + /// unsigned int + /// const CreatureSpecies *& + /// bool + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGetWithHash")] + internal static extern bool TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); + + /// SpeciesLibrary * + /// const char * + /// const CreatureSpecies *& + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Get")] + internal static extern byte Get(IntPtr p, string name, ref IntPtr @out); + + /// SpeciesLibrary * + /// unsigned int + /// const CreatureSpecies *& + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetWithHash")] + internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); + + /// SpeciesLibrary * + /// long unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetCount")] + internal static extern ulong GetCount(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesVariant.cs b/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesVariant.cs new file mode 100644 index 0000000..1852f2a --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesVariant.cs @@ -0,0 +1,94 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class SpeciesVariant + { + /// const char * + /// float + /// float + /// unsigned int + /// unsigned char * + /// long unsigned int + /// unsigned short + /// unsigned short + /// unsigned short + /// unsigned short + /// unsigned short + /// unsigned short + /// const char * * + /// long unsigned int + /// const char * * + /// long unsigned int + /// const LearnableAttacks * + /// SpeciesVariant * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_Construct")] + internal static extern IntPtr Construct(string name, float height, float weight, uint baseExperience, IntPtr types, ulong typeLength, ushort baseHealth, ushort baseAttack, ushort baseDefense, ushort baseMagicalAttack, ushort baseMagicalDefense, ushort baseSpeed, IntPtr talents, ulong talentsLength, IntPtr secretTalents, ulong secretTalentsLength, IntPtr attacks); + + /// SpeciesVariant * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// SpeciesVariant * + /// const char * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetName")] + internal static extern string GetName(IntPtr p); + + /// const SpeciesVariant * + /// float + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetHeight")] + internal static extern float GetHeight(IntPtr p); + + /// const SpeciesVariant * + /// float + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetWeight")] + internal static extern float GetWeight(IntPtr p); + + /// const SpeciesVariant * + /// unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetBaseExperience")] + internal static extern uint GetBaseExperience(IntPtr p); + + /// const SpeciesVariant * + /// long unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTypeCount")] + internal static extern ulong GetTypeCount(IntPtr p); + + /// SpeciesVariant * + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetType")] + internal static extern byte GetType(IntPtr p, ulong index); + + /// SpeciesVariant * + /// Statistic + /// unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetStatistic")] + internal static extern uint GetStatistic(IntPtr p, Statistic stat); + + /// const SpeciesVariant * + /// long unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalentCount")] + internal static extern ulong GetTalentCount(IntPtr p); + + /// const SpeciesVariant * + /// long unsigned int + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetSecretTalentCount")] + internal static extern ulong GetSecretTalentCount(IntPtr p); + + /// SpeciesVariant * + /// bool + /// unsigned char + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalent")] + internal static extern byte GetTalent(IntPtr p, bool secret, byte index); + + /// SpeciesVariant * + /// const LearnableAttacks * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetLearnableAttacks")] + internal static extern IntPtr GetLearnableAttacks(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/Statistic.cs b/PkmnLibSharp/Generated/Creatureliblibrary/Statistic.cs new file mode 100644 index 0000000..28d3804 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/Statistic.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum Statistic : byte + { + Health = 0, + PhysicalAttack = 1, + PhysicalDefense = 2, + MagicalAttack = 3, + MagicalDefense = 4, + Speed = 5, + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/TypeLibrary.cs b/PkmnLibSharp/Generated/Creatureliblibrary/TypeLibrary.cs new file mode 100644 index 0000000..e00de29 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/TypeLibrary.cs @@ -0,0 +1,72 @@ +using System; +using System.Runtime.InteropServices; + +namespace Creatureliblibrary.Generated +{ + internal static class TypeLibrary + { + /// long unsigned int + /// TypeLibrary * + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Construct")] + internal static extern IntPtr Construct(ulong initialCapacity); + + /// const TypeLibrary * + /// void + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// unsigned char& + /// const TypeLibrary * + /// const char * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeId")] + internal static extern byte GetTypeId(ref byte @out, IntPtr p, string type); + + /// unsigned char& + /// const TypeLibrary * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeIdWithHash")] + internal static extern byte GetTypeIdWithHash(ref byte @out, IntPtr p, uint type); + + /// unsigned char& + /// TypeLibrary * + /// const char * + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterType")] + internal static extern byte RegisterType(ref byte @out, IntPtr p, string type); + + /// unsigned char& + /// TypeLibrary * + /// unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterTypeWithHash")] + internal static extern byte RegisterTypeWithHash(ref byte @out, IntPtr p, uint type); + + /// TypeLibrary * + /// unsigned char + /// unsigned char + /// float + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_SetEffectiveness")] + internal static extern byte SetEffectiveness(IntPtr p, byte attacking, byte defensive, float effectiveness); + + /// float& + /// TypeLibrary * + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetSingleEffectiveness")] + internal static extern byte GetSingleEffectiveness(ref float @out, IntPtr p, byte attacking, byte defensive); + + /// float& + /// TypeLibrary * + /// unsigned char + /// unsigned char * + /// long unsigned int + /// unsigned char + [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetEffectiveness")] + internal static extern byte GetEffectiveness(ref float @out, IntPtr p, byte attacking, IntPtr defensive, ulong defensiveCount); + + } +} diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/memory_order.cs b/PkmnLibSharp/Generated/Creatureliblibrary/memory_order.cs new file mode 100644 index 0000000..c6bed22 --- /dev/null +++ b/PkmnLibSharp/Generated/Creatureliblibrary/memory_order.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Creatureliblibrary +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum memory_order : int + { + memory_order_relaxed = 0, + memory_order_consume = 1, + memory_order_acquire = 2, + memory_order_release = 3, + memory_order_acq_rel = 4, + memory_order_seq_cst = 5, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/AngelScriptResolver.cs b/PkmnLibSharp/Generated/Pkmnlib/AngelScriptResolver.cs new file mode 100644 index 0000000..ba3f333 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/AngelScriptResolver.cs @@ -0,0 +1,93 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class AngelScriptResolver + { + /// AngelScriptResolver * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Construct")] + internal static extern IntPtr Construct(); + + /// AngelScriptResolver * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Destruct")] + internal static extern byte Destruct(IntPtr p); + + /// AngelScriptResolver * + /// BattleLibrary * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Initialize")] + internal static extern byte Initialize(IntPtr p, IntPtr lib); + + /// AngelScriptResolver * + /// const char * + /// const char * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_CreateScript")] + internal static extern byte CreateScript(IntPtr p, string name, string script); + + /// AngelScriptResolver * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_FinalizeModule")] + internal static extern byte FinalizeModule(IntPtr p); + + /// Script *& + /// AngelScriptResolver * + /// ScriptCategory + /// const char * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadScript")] + internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, ScriptCategory category, string scriptName); + + /// AngelScriptResolver * + /// const char * + /// bool + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToFile")] + internal static extern byte WriteByteCodeToFile(IntPtr p, string file, bool stripDebugInfo); + + /// AngelScriptResolver * + /// const char * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromFile")] + internal static extern byte LoadByteCodeFromFile(IntPtr p, string file); + + /// AngelScriptResolver * + /// bool + /// long unsigned int& + /// unsigned char *& + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToMemory")] + internal static extern byte WriteByteCodeToMemory(IntPtr p, bool stripDebugInfo, ref ulong size, ref IntPtr @out); + + /// AngelScriptResolver * + /// unsigned char * + /// long unsigned int + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromMemory")] + internal static extern byte LoadByteCodeFromMemory(IntPtr p, IntPtr memory, ulong size); + + /// AngelScriptResolver * + /// const char * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterType")] + internal static extern byte RegisterType(IntPtr p, string typeName); + + /// AngelScriptResolver * + /// const char * + /// const char * + /// Function * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterTypeMethod")] + internal static extern byte RegisterTypeMethod(IntPtr p, string typeName, string decl, IntPtr func); + + /// AngelScriptResolver * + /// const char * + /// Function * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterGlobalMethod")] + internal static extern byte RegisterGlobalMethod(IntPtr p, string decl, IntPtr func); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/AttackCategory.cs b/PkmnLibSharp/Generated/Pkmnlib/AttackCategory.cs new file mode 100644 index 0000000..4e24a6d --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/AttackCategory.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackCategory : byte + { + Physical = 0, + Magical = 1, + Status = 2, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/AttackLearnMethod.cs b/PkmnLibSharp/Generated/Pkmnlib/AttackLearnMethod.cs new file mode 100644 index 0000000..d3ff1e7 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/AttackLearnMethod.cs @@ -0,0 +1,11 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackLearnMethod : int + { + Unknown = 0, + Level = 1, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/AttackTarget.cs b/PkmnLibSharp/Generated/Pkmnlib/AttackTarget.cs new file mode 100644 index 0000000..e2ea3d3 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/AttackTarget.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum AttackTarget : byte + { + Adjacent = 0, + AdjacentAlly = 1, + RandomOpponent = 10, + Self = 11, + AdjacentAllySelf = 2, + AdjacentOpponent = 3, + All = 4, + AllAdjacent = 5, + AllAdjacentOpponent = 6, + AllAlly = 7, + AllOpponent = 8, + Any = 9, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/Battle.cs b/PkmnLibSharp/Generated/Pkmnlib/Battle.cs new file mode 100644 index 0000000..44fff72 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/Battle.cs @@ -0,0 +1,41 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class Battle + { + /// Battle *& + /// const BattleLibrary * + /// const BattleParty * * + /// long unsigned int + /// bool + /// unsigned char + /// unsigned char + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr parties, ulong partiesCount, bool canFlee, byte numberOfSides, byte creaturesPerSide); + + /// Battle * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// Battle * + /// const char * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_SetWeather")] + internal static extern byte SetWeather(IntPtr p, string name); + + /// Battle * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_ClearWeather")] + internal static extern byte ClearWeather(IntPtr p); + + /// Battle * + /// const char * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_GetWeatherName")] + internal static extern string GetWeatherName(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/BattleItemCategory.cs b/PkmnLibSharp/Generated/Pkmnlib/BattleItemCategory.cs new file mode 100644 index 0000000..20c171f --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/BattleItemCategory.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum BattleItemCategory : byte + { + None = 0, + Healing = 1, + StatusHealing = 2, + CaptureDevice = 3, + MiscBattleItem = 4, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/BattleLibrary.cs b/PkmnLibSharp/Generated/Pkmnlib/BattleLibrary.cs new file mode 100644 index 0000000..366cd82 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/BattleLibrary.cs @@ -0,0 +1,25 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class BattleLibrary + { + /// BattleLibrary *& + /// PokemonLibrary * + /// StatCalculator * + /// DamageLibrary * + /// ExperienceLibrary * + /// ScriptResolver * + /// MiscLibrary * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_BattleLibrary_Construct")] + internal static extern byte Construct(ref IntPtr @out, IntPtr staticLib, IntPtr statCalculator, IntPtr damageLibrary, IntPtr experienceLibrary, IntPtr scriptResolver, IntPtr miscLibrary); + + /// BattleLibrary * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_BattleLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/C.cs b/PkmnLibSharp/Generated/Pkmnlib/C.cs new file mode 100644 index 0000000..63583e9 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/C.cs @@ -0,0 +1,13 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class C + { + /// const char * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_C_GetLastException")] + internal static extern string GetLastException(); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/DamageLibrary.cs b/PkmnLibSharp/Generated/Pkmnlib/DamageLibrary.cs new file mode 100644 index 0000000..8bd48db --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/DamageLibrary.cs @@ -0,0 +1,18 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class DamageLibrary + { + /// DamageLibrary * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_DamageLibrary_Construct")] + internal static extern IntPtr Construct(); + + /// DamageLibrary * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_DamageLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/DamageSource.cs b/PkmnLibSharp/Generated/Pkmnlib/DamageSource.cs new file mode 100644 index 0000000..bb8191f --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/DamageSource.cs @@ -0,0 +1,10 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum DamageSource : byte + { + AttackDamage = 0, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/EffectParameterType.cs b/PkmnLibSharp/Generated/Pkmnlib/EffectParameterType.cs new file mode 100644 index 0000000..463afc4 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/EffectParameterType.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum EffectParameterType : byte + { + None = 0, + Bool = 1, + Int = 2, + Float = 3, + String = 4, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/EventDataKind.cs b/PkmnLibSharp/Generated/Pkmnlib/EventDataKind.cs new file mode 100644 index 0000000..a6a0cf3 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/EventDataKind.cs @@ -0,0 +1,13 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum EventDataKind : byte + { + Damage = 0, + Heal = 1, + Faint = 2, + DisplayText = 3, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/Evolution.cs b/PkmnLibSharp/Generated/Pkmnlib/Evolution.cs new file mode 100644 index 0000000..85dcd4c --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/Evolution.cs @@ -0,0 +1,87 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class Evolution + { + /// TimeOfDay + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateTimeEvolution")] + internal static extern IntPtr CreateTimeEvolution(TimeOfDay time, IntPtr into); + + /// const Item * + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateItemEvolution")] + internal static extern IntPtr CreateItemEvolution(IntPtr item, IntPtr into); + + /// Gender + /// unsigned char + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateGenderBasedEvolution")] + internal static extern IntPtr CreateGenderBasedEvolution(Gender gender, byte level, IntPtr into); + + /// const Item * + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateItemUseEvolution")] + internal static extern IntPtr CreateItemUseEvolution(IntPtr item, IntPtr into); + + /// const Item * + /// Gender + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateItemUseWithGenderEvolution")] + internal static extern IntPtr CreateItemUseWithGenderEvolution(IntPtr item, Gender gender, IntPtr into); + + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateTradeEvolution")] + internal static extern IntPtr CreateTradeEvolution(IntPtr into); + + /// const Item * + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateTradeWithItemEvolution")] + internal static extern IntPtr CreateTradeWithItemEvolution(IntPtr item, IntPtr into); + + /// const PokemonSpecies * + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateTradeWithSpeciesEvolution")] + internal static extern IntPtr CreateTradeWithSpeciesEvolution(IntPtr traded, IntPtr into); + + /// const EffectParameter * * + /// long unsigned int + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_CreateCustomEvolution")] + internal static extern IntPtr CreateCustomEvolution(IntPtr data, ulong dataLength, IntPtr into); + + /// const EvolutionData * + /// EvolutionMethod + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_GetMethod")] + internal static extern EvolutionMethod GetMethod(IntPtr data); + + /// const EvolutionData * + /// const PokemonSpecies * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_GetNewSpecies")] + internal static extern IntPtr GetNewSpecies(IntPtr data); + + /// const EvolutionData * + /// long unsigned int + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_GetDataCount")] + internal static extern ulong GetDataCount(IntPtr data); + + /// const EvolutionData * + /// long unsigned int + /// const EffectParameter *& + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_GetData")] + internal static extern byte GetData(IntPtr data, ulong index, ref IntPtr @out); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/EvolutionData.cs b/PkmnLibSharp/Generated/Pkmnlib/EvolutionData.cs new file mode 100644 index 0000000..4d10e3a --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/EvolutionData.cs @@ -0,0 +1,33 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class EvolutionData + { + /// unsigned char + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateLevelEvolution")] + internal static extern IntPtr CreateLevelEvolution(byte level, IntPtr into); + + /// unsigned char + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateFriendshipEvolution")] + internal static extern IntPtr CreateFriendshipEvolution(byte friendship, IntPtr into); + + /// const MoveData * + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateKnownMoveEvolution")] + internal static extern IntPtr CreateKnownMoveEvolution(IntPtr move, IntPtr into); + + /// const char * + /// const PokemonSpecies * + /// const EvolutionData * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateLocationEvolution")] + internal static extern IntPtr CreateLocationEvolution(string location, IntPtr into); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/EvolutionMethod.cs b/PkmnLibSharp/Generated/Pkmnlib/EvolutionMethod.cs new file mode 100644 index 0000000..60758c7 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/EvolutionMethod.cs @@ -0,0 +1,22 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum EvolutionMethod : byte + { + Level = 0, + HighFriendship = 1, + TradeWithHeldItem = 10, + TradeWithSpecificPokemon = 11, + Custom = 12, + KnownMove = 2, + LocationBased = 3, + TimeBased = 4, + HoldsItem = 5, + IsGenderAndLevel = 6, + EvolutionItemUse = 7, + EvolutionItemUseWithGender = 8, + Trade = 9, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/Gender.cs b/PkmnLibSharp/Generated/Pkmnlib/Gender.cs new file mode 100644 index 0000000..afe2e65 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/Gender.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum Gender : byte + { + Male = 0, + Female = 1, + Genderless = 2, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/GetLastException.cs b/PkmnLibSharp/Generated/Pkmnlib/GetLastException.cs new file mode 100644 index 0000000..d7842fc --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/GetLastException.cs @@ -0,0 +1,15 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class GetLastException + { + /// + /// + /// + /// const char * + [DllImport("pkmnLib")] + internal static extern string PkmnLib_GetLastException(); + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/Item.cs b/PkmnLibSharp/Generated/Pkmnlib/Item.cs new file mode 100644 index 0000000..53ce143 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/Item.cs @@ -0,0 +1,30 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class Item + { + /// const char * + /// ItemCategory + /// BattleItemCategory + /// int + /// const char * * + /// long unsigned int + /// unsigned char + /// Item * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_Construct")] + internal static extern IntPtr Construct(string name, ItemCategory category, BattleItemCategory battleCategory, int price, IntPtr flags, ulong flagsCount, byte flingPower); + + /// const Item * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const Item * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_GetFlingPower")] + internal static extern byte GetFlingPower(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/ItemCategory.cs b/PkmnLibSharp/Generated/Pkmnlib/ItemCategory.cs new file mode 100644 index 0000000..bb723d8 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/ItemCategory.cs @@ -0,0 +1,17 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum ItemCategory : byte + { + MiscItem = 0, + CaptureDevice = 1, + Medicine = 2, + Berry = 3, + MoveLearner = 4, + VariantChanger = 5, + KeyItem = 6, + Mail = 7, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/LibrarySettings.cs b/PkmnLibSharp/Generated/Pkmnlib/LibrarySettings.cs new file mode 100644 index 0000000..8098f8f --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/LibrarySettings.cs @@ -0,0 +1,26 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class LibrarySettings + { + /// unsigned char + /// unsigned char + /// unsigned short + /// const LibrarySettings * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_Construct")] + internal static extern IntPtr Construct(byte maximalLevel, byte maximalMoves, ushort shinyRate); + + /// const LibrarySettings * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const LibrarySettings * + /// unsigned short + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_GetShinyRate")] + internal static extern ushort GetShinyRate(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/METADATATYPE.cs b/PkmnLibSharp/Generated/Pkmnlib/METADATATYPE.cs new file mode 100644 index 0000000..a88bc3d --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/METADATATYPE.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum METADATATYPE : int + { + MDT_TYPE = 1, + MDT_FUNC = 2, + MDT_VAR = 3, + MDT_VIRTPROP = 4, + MDT_FUNC_OR_VAR = 5, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/MiscLibrary.cs b/PkmnLibSharp/Generated/Pkmnlib/MiscLibrary.cs new file mode 100644 index 0000000..0d17f55 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/MiscLibrary.cs @@ -0,0 +1,18 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class MiscLibrary + { + /// MiscLibrary * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_MiscLibrary_Construct")] + internal static extern IntPtr Construct(); + + /// MiscLibrary * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_MiscLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/MoveCategory.cs b/PkmnLibSharp/Generated/Pkmnlib/MoveCategory.cs new file mode 100644 index 0000000..8a3e2c0 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/MoveCategory.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum MoveCategory : byte + { + Physical = 0, + Special = 1, + Status = 2, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/Nature.cs b/PkmnLibSharp/Generated/Pkmnlib/Nature.cs new file mode 100644 index 0000000..412a0e2 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/Nature.cs @@ -0,0 +1,48 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class Nature + { + /// Statistic + /// Statistic + /// float + /// float + /// Nature * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_Construct")] + internal static extern IntPtr Construct(Statistic increasedStat, Statistic decreasedStat, float increasedModifier, float decreasedModifier); + + /// const Nature * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const Nature * + /// float + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetIncreaseModifier")] + internal static extern float GetIncreaseModifier(IntPtr p); + + /// const Nature * + /// float + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetDecreaseModifier")] + internal static extern float GetDecreaseModifier(IntPtr p); + + /// const Nature * + /// Statistic + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetIncreasedStat")] + internal static extern Statistic GetIncreasedStat(IntPtr p); + + /// const Nature * + /// Statistic + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetDecreasedStat")] + internal static extern Statistic GetDecreasedStat(IntPtr p); + + /// const Nature * + /// Statistic + /// float + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetStatModifier")] + internal static extern float GetStatModifier(IntPtr nature, Statistic stat); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/NatureLibrary.cs b/PkmnLibSharp/Generated/Pkmnlib/NatureLibrary.cs new file mode 100644 index 0000000..57f6233 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/NatureLibrary.cs @@ -0,0 +1,46 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class NatureLibrary + { + /// long unsigned int + /// NatureLibrary * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Construct")] + internal static extern IntPtr Construct(ulong initialCapacity); + + /// const NatureLibrary * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// NatureLibrary * + /// const char * + /// const Nature * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_LoadNature")] + internal static extern byte LoadNature(IntPtr p, string name, IntPtr nature); + + /// NatureLibrary * + /// const char * + /// const Nature *& + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByName")] + internal static extern byte GetNatureByName(IntPtr p, string name, ref IntPtr @out); + + /// NatureLibrary * + /// Random * + /// const char * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetRandomNatureName")] + internal static extern string GetRandomNatureName(IntPtr p, IntPtr rand); + + /// NatureLibrary * + /// const Nature * + /// const char *& + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureName")] + internal static extern byte GetNatureName(IntPtr p, IntPtr nature, ref string @out); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/PkmnDamageSource.cs b/PkmnLibSharp/Generated/Pkmnlib/PkmnDamageSource.cs new file mode 100644 index 0000000..ebc524a --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/PkmnDamageSource.cs @@ -0,0 +1,10 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum PkmnDamageSource : byte + { + Struggle = 1, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/PkmnEventDataKind.cs b/PkmnLibSharp/Generated/Pkmnlib/PkmnEventDataKind.cs new file mode 100644 index 0000000..f948c97 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/PkmnEventDataKind.cs @@ -0,0 +1,10 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum PkmnEventDataKind : byte + { + WeatherChange = 4, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/PkmnScript.cs b/PkmnLibSharp/Generated/Pkmnlib/PkmnScript.cs new file mode 100644 index 0000000..9960560 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/PkmnScript.cs @@ -0,0 +1,18 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class PkmnScript + { + /// PkmnScript * + /// ExecutingAttack * + /// Creature * + /// unsigned char + /// unsigned char * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PkmnScript_ModifyCriticalStage")] + internal static extern byte ModifyCriticalStage(IntPtr script, IntPtr attack, IntPtr target, byte hit, IntPtr critStage); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/PkmnScriptCategory.cs b/PkmnLibSharp/Generated/Pkmnlib/PkmnScriptCategory.cs new file mode 100644 index 0000000..33bcc5f --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/PkmnScriptCategory.cs @@ -0,0 +1,10 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum PkmnScriptCategory : byte + { + Weather = 6, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/Pokemon.cs b/PkmnLibSharp/Generated/Pkmnlib/Pokemon.cs new file mode 100644 index 0000000..6c8ab49 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/Pokemon.cs @@ -0,0 +1,67 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class Pokemon + { + /// const BattleLibrary * + /// const PokemonSpecies * + /// const PokemonForme * + /// unsigned char + /// unsigned int + /// unsigned int + /// Gender + /// unsigned char + /// const Item * + /// const char * + /// bool + /// unsigned char + /// const LearnedAttack * * + /// long unsigned int + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// unsigned char + /// const Nature * + /// Pokemon * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Construct")] + internal static extern IntPtr Construct(IntPtr library, IntPtr species, IntPtr forme, byte level, uint experience, uint uid, Gender gender, byte coloring, IntPtr heldItem, string nickname, bool hiddenAbility, byte abilityIndex, IntPtr moves, ulong moveCount, byte hpIv, byte attIv, byte defIv, byte sAtIv, byte sDeIv, byte spIv, byte hpEv, byte attEv, byte defEv, byte sAtEv, byte sDeEv, byte spEv, IntPtr nature); + + /// const Pokemon * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const Pokemon * + /// bool + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_IsShiny")] + internal static extern bool IsShiny(IntPtr p); + + /// const Pokemon * + /// const Nature * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetNature")] + internal static extern IntPtr GetNature(IntPtr p); + + /// const Pokemon * + /// Statistic + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetIndividualValue")] + internal static extern byte GetIndividualValue(IntPtr p, Statistic stat); + + /// const Pokemon * + /// Statistic + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetEffortValue")] + internal static extern byte GetEffortValue(IntPtr p, Statistic stat); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/PokemonSpecies.cs b/PkmnLibSharp/Generated/Pkmnlib/PokemonSpecies.cs new file mode 100644 index 0000000..7657640 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/PokemonSpecies.cs @@ -0,0 +1,48 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class PokemonSpecies + { + /// unsigned short + /// const char * + /// const PokemonForme * + /// float + /// const char * + /// unsigned char + /// unsigned char + /// const PokemonSpecies * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_Construct")] + internal static extern IntPtr Construct(ushort id, string name, IntPtr defaultForme, float genderRatio, string growthRate, byte captureRate, byte baseHappiness); + + /// const PokemonSpecies * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// const PokemonSpecies * + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetBaseHappiness")] + internal static extern byte GetBaseHappiness(IntPtr p); + + /// PokemonSpecies * + /// EvolutionData * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_AddEvolution")] + internal static extern void AddEvolution(IntPtr p, IntPtr evo); + + /// const PokemonSpecies * + /// long unsigned int + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolutionCount")] + internal static extern ulong GetEvolutionCount(IntPtr p); + + /// const PokemonSpecies * + /// long unsigned int + /// const EvolutionData *& + /// unsigned char + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolution")] + internal static extern byte GetEvolution(IntPtr p, ulong index, ref IntPtr @out); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/ScriptCategory.cs b/PkmnLibSharp/Generated/Pkmnlib/ScriptCategory.cs new file mode 100644 index 0000000..c229b9e --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/ScriptCategory.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum ScriptCategory : byte + { + Attack = 0, + Talent = 1, + Status = 2, + Creature = 3, + Battle = 4, + Side = 5, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/StatCalculator.cs b/PkmnLibSharp/Generated/Pkmnlib/StatCalculator.cs new file mode 100644 index 0000000..038b1dc --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/StatCalculator.cs @@ -0,0 +1,18 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class StatCalculator + { + /// StatCalculator * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_StatCalculator_Construct")] + internal static extern IntPtr Construct(); + + /// StatCalculator * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_StatCalculator_Destruct")] + internal static extern void Destruct(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/Statistic.cs b/PkmnLibSharp/Generated/Pkmnlib/Statistic.cs new file mode 100644 index 0000000..0c6200f --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/Statistic.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum Statistic : byte + { + Health = 0, + PhysicalAttack = 1, + PhysicalDefense = 2, + MagicalAttack = 3, + MagicalDefense = 4, + Speed = 5, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/TimeOfDay.cs b/PkmnLibSharp/Generated/Pkmnlib/TimeOfDay.cs new file mode 100644 index 0000000..8852207 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/TimeOfDay.cs @@ -0,0 +1,13 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum TimeOfDay : byte + { + Night = 0, + Morning = 1, + Afternoon = 2, + Evening = 3, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/TurnChoiceKind.cs b/PkmnLibSharp/Generated/Pkmnlib/TurnChoiceKind.cs new file mode 100644 index 0000000..7bfa773 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/TurnChoiceKind.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum TurnChoiceKind : byte + { + Pass = 0, + Attack = 1, + Item = 2, + Switch = 3, + Flee = 4, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/WeatherChangeEvent.cs b/PkmnLibSharp/Generated/Pkmnlib/WeatherChangeEvent.cs new file mode 100644 index 0000000..fb36f84 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/WeatherChangeEvent.cs @@ -0,0 +1,19 @@ +using System; +using System.Runtime.InteropServices; + +namespace Pkmnlib.Generated +{ + internal static class WeatherChangeEvent + { + /// WeatherChangeEvent * + /// void + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_WeatherChangeEvent_Destruct")] + internal static extern void Destruct(IntPtr p); + + /// WeatherChangeEvent * + /// const char * + [DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_WeatherChangeEvent_GetWeatherName")] + internal static extern string GetWeatherName(IntPtr p); + + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asEBehaviours.cs b/PkmnLibSharp/Generated/Pkmnlib/asEBehaviours.cs new file mode 100644 index 0000000..f3ba0b2 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asEBehaviours.cs @@ -0,0 +1,24 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asEBehaviours : int + { + asBEHAVE_CONSTRUCT = 0, + asBEHAVE_LIST_CONSTRUCT = 1, + asBEHAVE_SETGCFLAG = 10, + asBEHAVE_GETGCFLAG = 11, + asBEHAVE_ENUMREFS = 12, + asBEHAVE_RELEASEREFS = 13, + asBEHAVE_MAX = 14, + asBEHAVE_DESTRUCT = 2, + asBEHAVE_FACTORY = 3, + asBEHAVE_LIST_FACTORY = 4, + asBEHAVE_ADDREF = 5, + asBEHAVE_RELEASE = 6, + asBEHAVE_GET_WEAKREF_FLAG = 7, + asBEHAVE_TEMPLATE_CALLBACK = 8, + asBEHAVE_FIRST_GC = 9, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asECallConvTypes.cs b/PkmnLibSharp/Generated/Pkmnlib/asECallConvTypes.cs new file mode 100644 index 0000000..9c66c3a --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asECallConvTypes.cs @@ -0,0 +1,18 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asECallConvTypes : int + { + asCALL_CDECL = 0, + asCALL_STDCALL = 1, + asCALL_THISCALL_ASGLOBAL = 2, + asCALL_THISCALL = 3, + asCALL_CDECL_OBJLAST = 4, + asCALL_CDECL_OBJFIRST = 5, + asCALL_GENERIC = 6, + asCALL_THISCALL_OBJLAST = 7, + asCALL_THISCALL_OBJFIRST = 8, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asEContextState.cs b/PkmnLibSharp/Generated/Pkmnlib/asEContextState.cs new file mode 100644 index 0000000..743ce1b --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asEContextState.cs @@ -0,0 +1,17 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asEContextState : int + { + asEXECUTION_FINISHED = 0, + asEXECUTION_SUSPENDED = 1, + asEXECUTION_ABORTED = 2, + asEXECUTION_EXCEPTION = 3, + asEXECUTION_PREPARED = 4, + asEXECUTION_UNINITIALIZED = 5, + asEXECUTION_ACTIVE = 6, + asEXECUTION_ERROR = 7, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asEEngineProp.cs b/PkmnLibSharp/Generated/Pkmnlib/asEEngineProp.cs new file mode 100644 index 0000000..fb5560d --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asEEngineProp.cs @@ -0,0 +1,41 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asEEngineProp : int + { + asEP_ALLOW_UNSAFE_REFERENCES = 1, + asEP_REQUIRE_ENUM_SCOPE = 10, + asEP_SCRIPT_SCANNER = 11, + asEP_INCLUDE_JIT_INSTRUCTIONS = 12, + asEP_STRING_ENCODING = 13, + asEP_PROPERTY_ACCESSOR_MODE = 14, + asEP_EXPAND_DEF_ARRAY_TO_TMPL = 15, + asEP_AUTO_GARBAGE_COLLECT = 16, + asEP_DISALLOW_GLOBAL_VARS = 17, + asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT = 18, + asEP_COMPILER_WARNINGS = 19, + asEP_OPTIMIZE_BYTECODE = 2, + asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE = 20, + asEP_ALTER_SYNTAX_NAMED_ARGS = 21, + asEP_DISABLE_INTEGER_DIVISION = 22, + asEP_DISALLOW_EMPTY_LIST_ELEMENTS = 23, + asEP_PRIVATE_PROP_AS_PROTECTED = 24, + asEP_ALLOW_UNICODE_IDENTIFIERS = 25, + asEP_HEREDOC_TRIM_MODE = 26, + asEP_MAX_NESTED_CALLS = 27, + asEP_GENERIC_CALL_MODE = 28, + asEP_INIT_STACK_SIZE = 29, + asEP_COPY_SCRIPT_SECTIONS = 3, + asEP_INIT_CALL_STACK_SIZE = 30, + asEP_MAX_CALL_STACK_SIZE = 31, + asEP_LAST_PROPERTY = 32, + asEP_MAX_STACK_SIZE = 4, + asEP_USE_CHARACTER_LITERALS = 5, + asEP_ALLOW_MULTILINE_STRINGS = 6, + asEP_ALLOW_IMPLICIT_HANDLE_TYPES = 7, + asEP_BUILD_WITHOUT_LINE_CUES = 8, + asEP_INIT_GLOBAL_VARS_AFTER_BUILD = 9, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asEFuncType.cs b/PkmnLibSharp/Generated/Pkmnlib/asEFuncType.cs new file mode 100644 index 0000000..d04f78a --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asEFuncType.cs @@ -0,0 +1,17 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asEFuncType : int + { + asFUNC_DUMMY = -1, + asFUNC_SYSTEM = 0, + asFUNC_SCRIPT = 1, + asFUNC_INTERFACE = 2, + asFUNC_VIRTUAL = 3, + asFUNC_FUNCDEF = 4, + asFUNC_IMPORTED = 5, + asFUNC_DELEGATE = 6, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asEGMFlags.cs b/PkmnLibSharp/Generated/Pkmnlib/asEGMFlags.cs new file mode 100644 index 0000000..653a9b9 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asEGMFlags.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asEGMFlags : int + { + asGM_ONLY_IF_EXISTS = 0, + asGM_CREATE_IF_NOT_EXISTS = 1, + asGM_ALWAYS_CREATE = 2, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asEMsgType.cs b/PkmnLibSharp/Generated/Pkmnlib/asEMsgType.cs new file mode 100644 index 0000000..888a6be --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asEMsgType.cs @@ -0,0 +1,12 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asEMsgType : int + { + asMSGTYPE_ERROR = 0, + asMSGTYPE_WARNING = 1, + asMSGTYPE_INFORMATION = 2, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asEObjTypeFlags.cs b/PkmnLibSharp/Generated/Pkmnlib/asEObjTypeFlags.cs new file mode 100644 index 0000000..615ce21 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asEObjTypeFlags.cs @@ -0,0 +1,56 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asEObjTypeFlags : int + { + asOBJ_REF = 1, + asOBJ_APP_CLASS_DESTRUCTOR = 1024, + asOBJ_IMPLICIT_HANDLE = 1048576, + asOBJ_APP_ALIGN16 = 1073741824, + asOBJ_ASHANDLE = 128, + asOBJ_APP_CLASS_D = 1280, + asOBJ_APP_CLASS_ALLFLOATS = 131072, + asOBJ_TEMPLATE_SUBTYPE = 134217728, + asOBJ_NOHANDLE = 16, + asOBJ_APP_FLOAT = 16384, + asOBJ_FUNCDEF = 16777216, + asOBJ_APP_CLASS_CD = 1792, + asOBJ_VALUE = 2, + asOBJ_APP_CLASS_ASSIGNMENT = 2048, + asOBJ_MASK_VALID_FLAGS = 2097151, + asOBJ_SCRIPT_OBJECT = 2097152, + asOBJ_APP_CLASS_A = 2304, + asOBJ_APP_CLASS = 256, + asOBJ_NOCOUNT = 262144, + asOBJ_TYPEDEF = 268435456, + asOBJ_APP_CLASS_CA = 2816, + asOBJ_SCOPED = 32, + asOBJ_APP_ARRAY = 32768, + asOBJ_APP_CLASS_DA = 3328, + asOBJ_LIST_PATTERN = 33554432, + asOBJ_APP_CLASS_CDA = 3840, + asOBJ_GC = 4, + asOBJ_APP_CLASS_COPY_CONSTRUCTOR = 4096, + asOBJ_SHARED = 4194304, + asOBJ_APP_CLASS_K = 4352, + asOBJ_APP_CLASS_CK = 4864, + asOBJ_APP_CLASS_CONSTRUCTOR = 512, + asOBJ_APP_CLASS_ALIGN8 = 524288, + asOBJ_ABSTRACT = 536870912, + asOBJ_APP_CLASS_DK = 5376, + asOBJ_APP_CLASS_CDK = 5888, + asOBJ_TEMPLATE = 64, + asOBJ_APP_CLASS_AK = 6400, + asOBJ_APP_CLASS_ALLINTS = 65536, + asOBJ_ENUM = 67108864, + asOBJ_APP_CLASS_CAK = 6912, + asOBJ_APP_CLASS_DAK = 7424, + asOBJ_APP_CLASS_C = 768, + asOBJ_APP_CLASS_CDAK = 7936, + asOBJ_POD = 8, + asOBJ_APP_PRIMITIVE = 8192, + asOBJ_NOINHERIT = 8388608, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asERetCodes.cs b/PkmnLibSharp/Generated/Pkmnlib/asERetCodes.cs new file mode 100644 index 0000000..2ff4abe --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asERetCodes.cs @@ -0,0 +1,38 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asERetCodes : int + { + asERROR = -1, + asINVALID_DECLARATION = -10, + asINVALID_OBJECT = -11, + asINVALID_TYPE = -12, + asALREADY_REGISTERED = -13, + asMULTIPLE_FUNCTIONS = -14, + asNO_MODULE = -15, + asNO_GLOBAL_VAR = -16, + asINVALID_CONFIGURATION = -17, + asINVALID_INTERFACE = -18, + asCANT_BIND_ALL_FUNCTIONS = -19, + asCONTEXT_ACTIVE = -2, + asLOWER_ARRAY_DIMENSION_NOT_REGISTERED = -20, + asWRONG_CONFIG_GROUP = -21, + asCONFIG_GROUP_IS_IN_USE = -22, + asILLEGAL_BEHAVIOUR_FOR_TYPE = -23, + asWRONG_CALLING_CONV = -24, + asBUILD_IN_PROGRESS = -25, + asINIT_GLOBAL_VARS_FAILED = -26, + asOUT_OF_MEMORY = -27, + asMODULE_IS_IN_USE = -28, + asCONTEXT_NOT_FINISHED = -3, + asCONTEXT_NOT_PREPARED = -4, + asINVALID_ARG = -5, + asNO_FUNCTION = -6, + asNOT_SUPPORTED = -7, + asINVALID_NAME = -8, + asNAME_TAKEN = -9, + asSUCCESS = 0, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asETokenClass.cs b/PkmnLibSharp/Generated/Pkmnlib/asETokenClass.cs new file mode 100644 index 0000000..a47a57e --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asETokenClass.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asETokenClass : int + { + asTC_UNKNOWN = 0, + asTC_KEYWORD = 1, + asTC_VALUE = 2, + asTC_IDENTIFIER = 3, + asTC_COMMENT = 4, + asTC_WHITESPACE = 5, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asETypeIdFlags.cs b/PkmnLibSharp/Generated/Pkmnlib/asETypeIdFlags.cs new file mode 100644 index 0000000..06bc2d3 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asETypeIdFlags.cs @@ -0,0 +1,28 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asETypeIdFlags : int + { + asTYPEID_VOID = 0, + asTYPEID_BOOL = 1, + asTYPEID_FLOAT = 10, + asTYPEID_OBJHANDLE = 1073741824, + asTYPEID_DOUBLE = 11, + asTYPEID_SCRIPTOBJECT = 134217728, + asTYPEID_INT8 = 2, + asTYPEID_TEMPLATE = 268435456, + asTYPEID_INT16 = 3, + asTYPEID_INT32 = 4, + asTYPEID_MASK_OBJECT = 469762048, + asTYPEID_INT64 = 5, + asTYPEID_HANDLETOCONST = 536870912, + asTYPEID_UINT8 = 6, + asTYPEID_MASK_SEQNBR = 67108863, + asTYPEID_APPOBJECT = 67108864, + asTYPEID_UINT16 = 7, + asTYPEID_UINT32 = 8, + asTYPEID_UINT64 = 9, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/asETypeModifiers.cs b/PkmnLibSharp/Generated/Pkmnlib/asETypeModifiers.cs new file mode 100644 index 0000000..292bfcc --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/asETypeModifiers.cs @@ -0,0 +1,14 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum asETypeModifiers : int + { + asTM_NONE = 0, + asTM_INREF = 1, + asTM_OUTREF = 2, + asTM_INOUTREF = 3, + asTM_CONST = 4, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/error_type.cs b/PkmnLibSharp/Generated/Pkmnlib/error_type.cs new file mode 100644 index 0000000..32f9cdc --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/error_type.cs @@ -0,0 +1,22 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum error_type : int + { + _S_error_collate = 0, + _S_error_ctype = 1, + _S_error_badrepeat = 10, + _S_error_complexity = 11, + _S_error_stack = 12, + _S_error_escape = 2, + _S_error_backref = 3, + _S_error_brack = 4, + _S_error_paren = 5, + _S_error_brace = 6, + _S_error_badbrace = 7, + _S_error_range = 8, + _S_error_space = 9, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/match_flag_type.cs b/PkmnLibSharp/Generated/Pkmnlib/match_flag_type.cs new file mode 100644 index 0000000..1267c06 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/match_flag_type.cs @@ -0,0 +1,9 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum match_flag_type : int + { + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/memory_order.cs b/PkmnLibSharp/Generated/Pkmnlib/memory_order.cs new file mode 100644 index 0000000..c373b54 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/memory_order.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum memory_order : int + { + memory_order_relaxed = 0, + memory_order_consume = 1, + memory_order_acquire = 2, + memory_order_release = 3, + memory_order_acq_rel = 4, + memory_order_seq_cst = 5, + } +} diff --git a/PkmnLibSharp/Generated/Pkmnlib/syntax_option_type.cs b/PkmnLibSharp/Generated/Pkmnlib/syntax_option_type.cs new file mode 100644 index 0000000..68e5d34 --- /dev/null +++ b/PkmnLibSharp/Generated/Pkmnlib/syntax_option_type.cs @@ -0,0 +1,9 @@ +using System.Diagnostics.CodeAnalysis; + +namespace Pkmnlib +{ + [SuppressMessage("ReSharper", "InconsistentNaming")] + public enum syntax_option_type : int + { + } +} diff --git a/PkmnLibSharp/Library/Forme.cs b/PkmnLibSharp/Library/Forme.cs new file mode 100644 index 0000000..7be0b9b --- /dev/null +++ b/PkmnLibSharp/Library/Forme.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Immutable; +using System.Linq; +using System.Runtime.InteropServices; +using Creatureliblibrary; +using Creatureliblibrary.Generated; + +namespace PkmnLibSharp.Library +{ + public class Forme : PointerWrapper + { + private string _name; + private ImmutableArray _types; + + public string Name => _name ??= SpeciesVariant.GetName(Ptr); + public float Height => SpeciesVariant.GetHeight(Ptr); + public float Weight => SpeciesVariant.GetWeight(Ptr); + public float BaseExperience => SpeciesVariant.GetBaseExperience(Ptr); + + public ImmutableArray Types + { + get + { + if (_types != null) + return _types; + + var typesCount = SpeciesVariant.GetTypeCount(Ptr); + var types = new byte[typesCount]; + for (ulong i = 0; i < typesCount; i++) + { + types[i] = SpeciesVariant.GetType(Ptr, i); + } + + _types = types.ToImmutableArray(); + return _types; + } + } + + public uint BaseHealth => SpeciesVariant.GetStatistic(Ptr, Statistic.Health); + public uint BaseAttack => SpeciesVariant.GetStatistic(Ptr, Statistic.PhysicalAttack); + public uint BaseDefense => SpeciesVariant.GetStatistic(Ptr, Statistic.PhysicalDefense); + public uint BaseSpecialAttack => SpeciesVariant.GetStatistic(Ptr, Statistic.MagicalAttack); + public uint BaseSpecialDefense => SpeciesVariant.GetStatistic(Ptr, Statistic.MagicalDefense); + public uint BaseSpeed => SpeciesVariant.GetStatistic(Ptr, Statistic.Speed); + + + public int GetPkmnType(int index) + { + return Types[index]; + } + + + public static unsafe Forme Create(string name, float height, float weight, uint baseExperience, byte[] types, + ushort baseHealth, ushort baseAttack, ushort baseDefense, ushort baseSpecialAttack, + ushort baseSpecialDefense, ushort baseSpeed, string[] abilities, string[] hiddenAbilities) + { + var abilitiesConverted = abilities.Select(Marshal.StringToHGlobalUni).ToArray(); + var hiddenAbilitiesConverted = hiddenAbilities.Select(Marshal.StringToHGlobalUni).ToArray(); + fixed (byte* t = types) + { + fixed (IntPtr* ab = abilitiesConverted) + { + fixed (IntPtr* hab = hiddenAbilitiesConverted) + { + var ptr = SpeciesVariant.Construct(name, height, weight, baseExperience, (IntPtr)t, + (ulong) types.Length, + baseHealth, baseAttack, baseDefense, baseSpecialAttack, baseSpecialDefense, + baseSpeed, (IntPtr)ab, (ulong) abilities.Length, (IntPtr)hab, + (ulong) hiddenAbilities.Length, IntPtr.Zero); + var f = new Forme(ptr); + foreach (var intPtr in abilitiesConverted) + Marshal.FreeHGlobal(intPtr); + foreach (var intPtr in hiddenAbilitiesConverted) + Marshal.FreeHGlobal(intPtr); + return f; + } + } + } + } + + private Forme(IntPtr parent) + : base(parent) + { + } + + internal override void DeletePtr() + { + SpeciesVariant.Destruct(Ptr); + } + } +} \ No newline at end of file diff --git a/PkmnLibSharp/Library/Species.cs b/PkmnLibSharp/Library/Species.cs new file mode 100644 index 0000000..13e2b63 --- /dev/null +++ b/PkmnLibSharp/Library/Species.cs @@ -0,0 +1,19 @@ +using System; +using Pkmnlib.Generated; + +namespace PkmnLibSharp.Library +{ + public class Species : PointerWrapper + { + // ReSharper disable once SuggestBaseTypeForParameter + public Species(ushort id, string name, Forme defaultForme, float genderRatio, string growthRate, byte captureRate, + byte baseHappiness) : base(PokemonSpecies.Construct(id, name, defaultForme.Ptr, genderRatio, growthRate, captureRate, baseHappiness)) + { + } + + internal override void DeletePtr() + { + Pokemon.Destruct(Ptr); + } + } +} \ No newline at end of file diff --git a/PkmnLibSharp/Native/libCreatureLibBattling.so b/PkmnLibSharp/Native/libCreatureLibBattling.so new file mode 100755 index 0000000..98ba4f1 --- /dev/null +++ b/PkmnLibSharp/Native/libCreatureLibBattling.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:875522256ec09a85120bed293eb5ea6874a8537f91e16808b22b993fd3c1ded7 +size 272584 diff --git a/PkmnLibSharp/Native/libCreatureLibLibrary.so b/PkmnLibSharp/Native/libCreatureLibLibrary.so new file mode 100755 index 0000000..88f0353 --- /dev/null +++ b/PkmnLibSharp/Native/libCreatureLibLibrary.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e8d82d722fb51d870c4d9da1b435424b2d8aa646f946490dd45ab9cfbddbcef +size 178304 diff --git a/PkmnLibSharp/Native/libpkmnLib.so b/PkmnLibSharp/Native/libpkmnLib.so new file mode 100755 index 0000000..556b90e --- /dev/null +++ b/PkmnLibSharp/Native/libpkmnLib.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d74ff5a90b6da73ec27acfc6cb81d4f5c2b5a1a59c6d2e22720cc0419e1d3ef5 +size 8930608 diff --git a/PkmnLibSharp/PkmnLibSharp.csproj b/PkmnLibSharp/PkmnLibSharp.csproj new file mode 100644 index 0000000..59340c3 --- /dev/null +++ b/PkmnLibSharp/PkmnLibSharp.csproj @@ -0,0 +1,24 @@ + + + + netstandard2.1 + + + + true + + + + true + + + + + + + + + ..\..\..\..\..\..\usr\share\dotnet\packs\Microsoft.NETCore.App.Ref\3.1.0\ref\netcoreapp3.1\System.Collections.Immutable.dll + + + diff --git a/PkmnLibSharp/PointerWrapper.cs b/PkmnLibSharp/PointerWrapper.cs new file mode 100644 index 0000000..34e7e68 --- /dev/null +++ b/PkmnLibSharp/PointerWrapper.cs @@ -0,0 +1,24 @@ +using System; + +namespace PkmnLibSharp +{ + public abstract class PointerWrapper : IDisposable + { + internal readonly IntPtr Ptr; + private bool _isDeleted = true; + + protected PointerWrapper(IntPtr ptr) + { + Ptr = ptr; + } + + internal abstract void DeletePtr(); + public virtual void Dispose() + { + if (_isDeleted) + return; + DeletePtr(); + _isDeleted = true; + } + } +} \ No newline at end of file diff --git a/PkmnLibSharp/creaturelib.json b/PkmnLibSharp/creaturelib.json new file mode 100644 index 0000000..bb88883 --- /dev/null +++ b/PkmnLibSharp/creaturelib.json @@ -0,0 +1 @@ +{"enums":[{"byteSize":1,"filename":"CreatureLibLibrary","name":"AttackCategory","values":{"0":"Physical","1":"Magical","2":"Status"}},{"byteSize":1,"filename":"CreatureLibLibrary","name":"AttackTarget","values":{"0":"Adjacent","1":"AdjacentAlly","10":"RandomOpponent","11":"Self","2":"AdjacentAllySelf","3":"AdjacentOpponent","4":"All","5":"AllAdjacent","6":"AllAdjacentOpponent","7":"AllAlly","8":"AllOpponent","9":"Any"}},{"byteSize":1,"filename":"CreatureLibLibrary","name":"EffectParameterType","values":{"0":"None","1":"Bool","2":"Int","3":"Float","4":"String"}},{"byteSize":4,"filename":"CreatureLibLibrary","name":"memory_order","values":{"0":"memory_order_relaxed","1":"memory_order_consume","2":"memory_order_acquire","3":"memory_order_release","4":"memory_order_acq_rel","5":"memory_order_seq_cst"}},{"byteSize":1,"filename":"CreatureLibLibrary","name":"ItemCategory","values":{"0":"MiscItem","1":"CaptureDevice","2":"Medicine","3":"Berry","4":"MoveLearner","5":"VariantChanger","6":"KeyItem","7":"Mail"}},{"byteSize":1,"filename":"CreatureLibLibrary","name":"BattleItemCategory","values":{"0":"None","1":"Healing","2":"StatusHealing","3":"CaptureDevice","4":"MiscBattleItem"}},{"byteSize":1,"filename":"CreatureLibLibrary","name":"Statistic","values":{"0":"Health","1":"PhysicalAttack","2":"PhysicalDefense","3":"MagicalAttack","4":"MagicalDefense","5":"Speed"}},{"byteSize":1,"filename":"CreatureLibLibrary","name":"Gender","values":{"0":"Male","1":"Female","2":"Genderless"}},{"byteSize":4,"filename":"CreatureLibBattling","name":"memory_order","values":{"0":"memory_order_relaxed","1":"memory_order_consume","2":"memory_order_acquire","3":"memory_order_release","4":"memory_order_acq_rel","5":"memory_order_seq_cst"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"ScriptCategory","values":{"0":"Attack","1":"Talent","2":"Status","3":"Creature","4":"Battle","5":"Side"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"Statistic","values":{"0":"Health","1":"PhysicalAttack","2":"PhysicalDefense","3":"MagicalAttack","4":"MagicalDefense","5":"Speed"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"Gender","values":{"0":"Male","1":"Female","2":"Genderless"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"ItemCategory","values":{"0":"MiscItem","1":"CaptureDevice","2":"Medicine","3":"Berry","4":"MoveLearner","5":"VariantChanger","6":"KeyItem","7":"Mail"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"BattleItemCategory","values":{"0":"None","1":"Healing","2":"StatusHealing","3":"CaptureDevice","4":"MiscBattleItem"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"DamageSource","values":{"0":"AttackDamage"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"EventDataKind","values":{"0":"Damage","1":"Heal","2":"Faint","3":"DisplayText"}},{"byteSize":4,"filename":"CreatureLibBattling","name":"AttackLearnMethod","values":{"0":"Unknown","1":"Level"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"TurnChoiceKind","values":{"0":"Pass","1":"Attack","2":"Item","3":"Switch","4":"Flee"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"EffectParameterType","values":{"0":"None","1":"Bool","2":"Int","3":"Float","4":"String"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"AttackCategory","values":{"0":"Physical","1":"Magical","2":"Status"}},{"byteSize":1,"filename":"CreatureLibBattling","name":"AttackTarget","values":{"0":"Adjacent","1":"AdjacentAlly","10":"RandomOpponent","11":"Self","2":"AdjacentAllySelf","3":"AdjacentOpponent","4":"All","5":"AllAdjacent","6":"AllAdjacentOpponent","7":"AllAlly","8":"AllOpponent","9":"Any"}}],"functions":[{"filename":"CreatureLibLibrary","name":"CreatureLib_C_GetLastException","parameters":[],"returns":"const char *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_Construct","parameters":[{"name":"out","type":"AttackData *&"},{"name":"name","type":"const char *"},{"name":"type","type":"unsigned char"},{"name":"category","type":"AttackCategory"},{"name":"power","type":"unsigned char"},{"name":"accuracy","type":"unsigned char"},{"name":"baseUsage","type":"unsigned char"},{"name":"target","type":"AttackTarget"},{"name":"priority","type":"signed char"},{"name":"effectChance","type":"float"},{"name":"effectName","type":"const char *"},{"name":"effectParameters","type":"EffectParameter * *"},{"name":"effectParameterCount","type":"long unsigned int"},{"name":"flags","type":"const char * *"},{"name":"flagsCount","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_Destruct","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetName","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"const char *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetType","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetCategory","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"AttackCategory"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetBasePower","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetAccuracy","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetBaseUsages","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetTarget","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"AttackTarget"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetPriority","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"signed char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_HasSecondaryEffect","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetSecondaryEffectChance","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"float"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_GetSecondaryEffectName","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"const char *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackData_HasFlag","parameters":[{"name":"p","type":"const AttackData *"},{"name":"key","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_Construct","parameters":[{"name":"library","type":"AttackLibrary *&"},{"name":"initialCapacity","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_Destruct","parameters":[{"name":"p","type":"const AttackLibrary *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_Insert","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"},{"name":"t","type":"AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_InsertWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"t","type":"AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_Delete","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_DeleteWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_TryGet","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const AttackData *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_TryGetWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const AttackData *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_Get","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const AttackData *&"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_GetWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const AttackData *&"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_AttackLibrary_GetCount","parameters":[{"name":"p","type":"AttackLibrary *"}],"returns":"long unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_Construct","parameters":[{"name":"out","type":"CreatureSpecies *&"},{"name":"id","type":"unsigned short"},{"name":"name","type":"const char *"},{"name":"defaultVariant","type":"SpeciesVariant *"},{"name":"genderRatio","type":"float"},{"name":"growthRate","type":"const char *"},{"name":"captureRate","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_Destruct","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetId","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"unsigned short"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetGenderRate","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"float"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetCaptureRate","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetName","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"const char *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetGrowthRate","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"const char *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_HasVariant","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"name","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_HasVariantWithHash","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"hash","type":"unsigned int"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_TryGetVariant","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"name","type":"const char *"},{"name":"out","type":"const SpeciesVariant *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_TryGetVariantWithHash","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"hash","type":"unsigned int"},{"name":"out","type":"const SpeciesVariant *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetVariant","parameters":[{"name":"out","type":"const SpeciesVariant *&"},{"name":"p","type":"const CreatureSpecies *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetVariantWithHash","parameters":[{"name":"out","type":"const SpeciesVariant *"},{"name":"p","type":"const CreatureSpecies *"},{"name":"hash","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_Construct","parameters":[{"name":"out","type":"const DataLibrary *&"},{"name":"settings","type":"LibrarySettings *"},{"name":"species","type":"SpeciesLibrary *"},{"name":"attacks","type":"AttackLibrary *"},{"name":"items","type":"ItemLibrary *"},{"name":"growthRates","type":"GrowthRateLibrary *"},{"name":"typeLibrary","type":"TypeLibrary *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_Destruct","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_GetSettings","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const LibrarySettings *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_GetSpeciesLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const SpeciesLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_GetAttackLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const AttackLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_GetItemLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const ItemLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_GetGrowthRates","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const GrowthRateLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_DataLibrary_GetTypeLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const TypeLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LookupGrowthRate_Construct","parameters":[{"name":"experiencePerLevel","type":"unsigned int *"},{"name":"count","type":"long unsigned int"}],"returns":"GrowthRate *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ExternGrowthRate_Construct","parameters":[{"name":"out","type":"GrowthRate *&"},{"name":"calcLevel","type":"Function *"},{"name":"calcExperience","type":"Function *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRate_Destruct","parameters":[{"name":"p","type":"const GrowthRate *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRate_CalculateLevel","parameters":[{"name":"out","type":"unsigned char&"},{"name":"p","type":"const GrowthRate *"},{"name":"experience","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRate_CalculateExperience","parameters":[{"name":"out","type":"unsigned int&"},{"name":"p","type":"const GrowthRate *"},{"name":"level","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"GrowthRateLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_Destruct","parameters":[{"name":"p","type":"GrowthRateLibrary *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_CalculateLevel","parameters":[{"name":"out","type":"unsigned char&"},{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRate","type":"const char *"},{"name":"experience","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_CalculateLevelWithHash","parameters":[{"name":"out","type":"unsigned char&"},{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRateHash","type":"unsigned int"},{"name":"experience","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_CalculateExperience","parameters":[{"name":"out","type":"unsigned int&"},{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRate","type":"const char *"},{"name":"level","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_CalculateExperienceWithHash","parameters":[{"name":"out","type":"unsigned int&"},{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRateHash","type":"unsigned int"},{"name":"level","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_AddGrowthRate","parameters":[{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRateName","type":"const char *"},{"name":"growthRate","type":"GrowthRate *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_GrowthRateLibrary_AddGrowthRateWithHash","parameters":[{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRateHash","type":"unsigned int"},{"name":"growthRate","type":"GrowthRate *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_Item_Construct","parameters":[{"name":"name","type":"const char *"},{"name":"category","type":"ItemCategory"},{"name":"battleCategory","type":"BattleItemCategory"},{"name":"price","type":"int"},{"name":"flags","type":"const char * *"},{"name":"flagsCount","type":"long unsigned int"}],"returns":"Item *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_Item_Destruct","parameters":[{"name":"p","type":"const Item *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_Item_GetName","parameters":[{"name":"p","type":"const Item *"}],"returns":"const char *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_Item_GetCategory","parameters":[{"name":"p","type":"const Item *"}],"returns":"ItemCategory"},{"filename":"CreatureLibLibrary","name":"CreatureLib_Item_GetBattleCategory","parameters":[{"name":"p","type":"const Item *"}],"returns":"BattleItemCategory"},{"filename":"CreatureLibLibrary","name":"CreatureLib_Item_GetPrice","parameters":[{"name":"p","type":"const Item *"}],"returns":"int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_Item_HasFlag","parameters":[{"name":"p","type":"const Item *"},{"name":"key","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"const ItemLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_Destruct","parameters":[{"name":"p","type":"const ItemLibrary *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_Insert","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"},{"name":"t","type":"Item *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_InsertWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"t","type":"Item *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_Delete","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_DeleteWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_TryGet","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const Item *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_TryGetWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const Item *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_Get","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const Item *&"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_GetWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const Item *&"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ItemLibrary_GetCount","parameters":[{"name":"p","type":"ItemLibrary *"}],"returns":"long unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LearnableAttacks_Construct","parameters":[{"name":"out","type":"LearnableAttacks *&"},{"name":"levelAttackCapacity","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LearnableAttacks_Destruct","parameters":[{"name":"p","type":"LearnableAttacks *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LearnableAttacks_AddLevelAttack","parameters":[{"name":"p","type":"LearnableAttacks *"},{"name":"level","type":"unsigned char"},{"name":"attack","type":"const AttackData *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LearnableAttacks_GetAttacksForLevel","parameters":[{"name":"p","type":"LearnableAttacks *"},{"name":"level","type":"unsigned char"}],"returns":"const const AttackData * *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LearnableAttacks_GetAttacksForLevelCount","parameters":[{"name":"p","type":"LearnableAttacks *"},{"name":"level","type":"unsigned char"}],"returns":"long unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LibrarySettings_Construct","parameters":[{"name":"maximalLevel","type":"unsigned char"},{"name":"maximalMoves","type":"unsigned char"}],"returns":"const LibrarySettings *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LibrarySettings_Destruct","parameters":[{"name":"p","type":"const LibrarySettings *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LibrarySettings_GetMaximalLevel","parameters":[{"name":"p","type":"const LibrarySettings *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_LibrarySettings_GetMaximalMoves","parameters":[{"name":"p","type":"const LibrarySettings *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"const SpeciesLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_Destruct","parameters":[{"name":"p","type":"const SpeciesLibrary *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_Insert","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"},{"name":"t","type":"CreatureSpecies *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_InsertWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"t","type":"CreatureSpecies *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_Delete","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_DeleteWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_TryGet","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const CreatureSpecies *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_TryGetWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const CreatureSpecies *&"}],"returns":"bool"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_Get","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const CreatureSpecies *&"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_GetWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const CreatureSpecies *&"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesLibrary_GetCount","parameters":[{"name":"p","type":"SpeciesLibrary *"}],"returns":"long unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_Construct","parameters":[{"name":"name","type":"const char *"},{"name":"height","type":"float"},{"name":"weight","type":"float"},{"name":"baseExperience","type":"unsigned int"},{"name":"types","type":"unsigned char *"},{"name":"typeLength","type":"long unsigned int"},{"name":"baseHealth","type":"unsigned short"},{"name":"baseAttack","type":"unsigned short"},{"name":"baseDefense","type":"unsigned short"},{"name":"baseMagicalAttack","type":"unsigned short"},{"name":"baseMagicalDefense","type":"unsigned short"},{"name":"baseSpeed","type":"unsigned short"},{"name":"talents","type":"const char * *"},{"name":"talentsLength","type":"long unsigned int"},{"name":"secretTalents","type":"const char * *"},{"name":"secretTalentsLength","type":"long unsigned int"},{"name":"attacks","type":"const LearnableAttacks *"}],"returns":"SpeciesVariant *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_Destruct","parameters":[{"name":"p","type":"SpeciesVariant *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetName","parameters":[{"name":"p","type":"SpeciesVariant *"}],"returns":"const char *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetHeight","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"float"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetWeight","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"float"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetBaseExperience","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetTypeCount","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"long unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetType","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"index","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetStatistic","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetTalentCount","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"long unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetSecretTalentCount","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"long unsigned int"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetTalent","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"secret","type":"bool"},{"name":"index","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetLearnableAttacks","parameters":[{"name":"p","type":"SpeciesVariant *"}],"returns":"const LearnableAttacks *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"TypeLibrary *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_Destruct","parameters":[{"name":"p","type":"const TypeLibrary *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_GetTypeId","parameters":[{"name":"out","type":"unsigned char&"},{"name":"p","type":"const TypeLibrary *"},{"name":"type","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_GetTypeIdWithHash","parameters":[{"name":"out","type":"unsigned char&"},{"name":"p","type":"const TypeLibrary *"},{"name":"type","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_RegisterType","parameters":[{"name":"out","type":"unsigned char&"},{"name":"p","type":"TypeLibrary *"},{"name":"type","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_RegisterTypeWithHash","parameters":[{"name":"out","type":"unsigned char&"},{"name":"p","type":"TypeLibrary *"},{"name":"type","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_SetEffectiveness","parameters":[{"name":"p","type":"TypeLibrary *"},{"name":"attacking","type":"unsigned char"},{"name":"defensive","type":"unsigned char"},{"name":"effectiveness","type":"float"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_GetSingleEffectiveness","parameters":[{"name":"out","type":"float&"},{"name":"p","type":"TypeLibrary *"},{"name":"attacking","type":"unsigned char"},{"name":"defensive","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_TypeLibrary_GetEffectiveness","parameters":[{"name":"out","type":"float&"},{"name":"p","type":"TypeLibrary *"},{"name":"attacking","type":"unsigned char"},{"name":"defensive","type":"unsigned char *"},{"name":"defensiveCount","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_Construct","parameters":[{"name":"out","type":"Battle *&"},{"name":"library","type":"const BattleLibrary *"},{"name":"partyArr","type":"BattleParty * *"},{"name":"numberOfParties","type":"long unsigned int"},{"name":"canFlee","type":"bool"},{"name":"numberOfSides","type":"unsigned char"},{"name":"creaturesPerSide","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_Destruct","parameters":[{"name":"p","type":"const Battle *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetLibrary","parameters":[{"name":"p","type":"const Battle *"}],"returns":"const BattleLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_CanUse","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"Battle *"},{"name":"turnChoice","type":"const BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_TrySetChoice","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"Battle *"},{"name":"turnChoice","type":"BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_CanFlee","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_CheckChoicesSetAndRun","parameters":[{"name":"p","type":"Battle *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetCurrentTurnQueue","parameters":[{"name":"p","type":"const Battle *"}],"returns":"ChoiceQueue *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetRandom","parameters":[{"name":"p","type":"Battle *"}],"returns":"BattleRandom *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_CreatureInField","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"const Battle *"},{"name":"c","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetCreature","parameters":[{"name":"out","type":"Creature *&"},{"name":"p","type":"const Battle *"},{"name":"side","type":"unsigned char"},{"name":"target","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_ForceRecall","parameters":[{"name":"p","type":"Battle *"},{"name":"side","type":"unsigned char"},{"name":"target","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_SwitchCreature","parameters":[{"name":"p","type":"Battle *"},{"name":"side","type":"unsigned char"},{"name":"target","type":"unsigned char"},{"name":"c","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_CanSlotBeFilled","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"const Battle *"},{"name":"side","type":"unsigned char"},{"name":"target","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_ValidateBattleState","parameters":[{"name":"p","type":"Battle *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_HasEnded","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_HasConclusiveResult","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetWinningSide","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetSidesCount","parameters":[{"name":"p","type":"const Battle *"}],"returns":"long unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetSides","parameters":[{"name":"p","type":"const Battle *"}],"returns":"const BattleSide * *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"Script *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_AddVolatileScriptByName","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_AddVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_RemoveVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_RemoveVolatileScriptWithScript","parameters":[{"name":"p","type":"Battle *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_HasVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_RegisterEventListener","parameters":[{"name":"p","type":"Battle *"},{"name":"func","type":"Function *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_TriggerEventListener","parameters":[{"name":"p","type":"Battle *"},{"name":"data","type":"EventData *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleLibrary_Construct","parameters":[{"name":"out","type":"const BattleLibrary *&"},{"name":"staticLib","type":"const DataLibrary *"},{"name":"statCalculator","type":"BattleStatCalculator *"},{"name":"damageLibrary","type":"DamageLibrary *"},{"name":"experienceLibrary","type":"ExperienceLibrary *"},{"name":"scriptResolver","type":"ScriptResolver *"},{"name":"miscLibrary","type":"MiscLibrary *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleLibrary_Destruct","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleLibrary_GetStaticLib","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const DataLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleLibrary_GetStatCalculator","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const BattleStatCalculator *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleLibrary_GetDamageLibrary","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const DamageLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleLibrary_GetMiscLibrary","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const MiscLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleLibrary_GetExperienceLibrary","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const ExperienceLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleParty_Construct","parameters":[{"name":"out","type":"BattleParty *&"},{"name":"p","type":"CreatureParty *"},{"name":"creatureIndices","type":"unsigned char *"},{"name":"numberOfIndices","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleParty_Destruct","parameters":[{"name":"p","type":"const BattleParty *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleParty_IsResponsibleForIndex","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"const BattleParty *"},{"name":"side","type":"unsigned char"},{"name":"creature","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleParty_HasCreaturesNotInField","parameters":[{"name":"p","type":"const BattleParty *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_Construct","parameters":[],"returns":"BattleRandom *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_ConstructWithSeed","parameters":[{"name":"seed","type":"long unsigned int"}],"returns":"BattleRandom *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_Destruct","parameters":[{"name":"p","type":"BattleRandom *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_EffectChance","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"BattleRandom *"},{"name":"chance","type":"float"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_Get","parameters":[{"name":"p","type":"BattleRandom *"}],"returns":"int"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_GetMax","parameters":[{"name":"p","type":"BattleRandom *"},{"name":"max","type":"int"}],"returns":"int"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_GetMinMax","parameters":[{"name":"p","type":"BattleRandom *"},{"name":"min","type":"int"},{"name":"max","type":"int"}],"returns":"int"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleRandom_GetSeed","parameters":[{"name":"p","type":"BattleRandom *"}],"returns":"long unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_Construct","parameters":[{"name":"index","type":"unsigned char"},{"name":"battle","type":"Battle *"},{"name":"creaturesPerSide","type":"unsigned char"}],"returns":"BattleSide *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_Destruct","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_AllChoicesSet","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_GetChoices","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"const BaseTurnChoice * *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_AllPossibleSlotsFilled","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"BattleSide *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_SetChoice","parameters":[{"name":"p","type":"BattleSide *"},{"name":"choice","type":"BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_ResetChoices","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_SetCreature","parameters":[{"name":"p","type":"BattleSide *"},{"name":"creature","type":"Creature *"},{"name":"index","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_GetCreature","parameters":[{"name":"out","type":"Creature *&"},{"name":"p","type":"BattleSide *"},{"name":"index","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_GetSideIndex","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_GetCreatureIndex","parameters":[{"name":"out","type":"unsigned char&"},{"name":"p","type":"BattleSide *"},{"name":"c","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_MarkSlotAsUnfillable","parameters":[{"name":"p","type":"BattleSide *"},{"name":"c","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_IsDefeated","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_HasFled","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleSide_MarkAsFled","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleStatCalculator_Construct","parameters":[],"returns":"const BattleStatCalculator *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleStatCalculator_Destruct","parameters":[{"name":"p","type":"const BattleStatCalculator *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleStatCalculator_CalculateFlatStat","parameters":[{"name":"out","type":"unsigned int&"},{"name":"p","type":"const BattleStatCalculator *"},{"name":"creature","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BattleStatCalculator_CalculateBoostedStat","parameters":[{"name":"out","type":"unsigned int&"},{"name":"p","type":"const BattleStatCalculator *"},{"name":"creature","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_Construct","parameters":[{"name":"out","type":"Creature *&"},{"name":"library","type":"const BattleLibrary *"},{"name":"species","type":"const CreatureSpecies *"},{"name":"variant","type":"const SpeciesVariant *"},{"name":"level","type":"unsigned char"},{"name":"experience","type":"unsigned int"},{"name":"uid","type":"unsigned int"},{"name":"gender","type":"Gender"},{"name":"coloring","type":"unsigned char"},{"name":"heldItem","type":"const Item *"},{"name":"nickname","type":"const char *"},{"name":"secretTalent","type":"bool"},{"name":"talent","type":"unsigned char"},{"name":"attacks","type":"LearnedAttack * *"},{"name":"attacksNum","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_Destruct","parameters":[{"name":"p","type":"const Creature *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetSpecies","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const CreatureSpecies *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetVariant","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const SpeciesVariant *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetLevel","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetExperience","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetGender","parameters":[{"name":"p","type":"const Creature *"}],"returns":"Gender"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetColoring","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_HasHeldItem","parameters":[{"name":"p","type":"const Creature *"},{"name":"name","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_HasHeldItemWithHash","parameters":[{"name":"p","type":"const Creature *"},{"name":"hash","type":"unsigned int"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetHeldItem","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const Item *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_SetHeldItem","parameters":[{"name":"p","type":"Creature *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_SetHeldItemWithHash","parameters":[{"name":"p","type":"Creature *"},{"name":"hash","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_SetHeldItemFromItem","parameters":[{"name":"p","type":"Creature *"},{"name":"item","type":"const Item *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetCurrentHealth","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetBattle","parameters":[{"name":"p","type":"const Creature *"}],"returns":"Battle *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetBattleSide","parameters":[{"name":"p","type":"const Creature *"}],"returns":"BattleSide *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_IsOnBattleField","parameters":[{"name":"p","type":"const Creature *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetNickname","parameters":[{"name":"p","type":"Creature *"}],"returns":"const char *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetTypesCount","parameters":[{"name":"p","type":"Creature *"}],"returns":"long unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetTypes","parameters":[{"name":"p","type":"Creature *"}],"returns":"const unsigned char *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_HasType","parameters":[{"name":"p","type":"Creature *"},{"name":"type","type":"unsigned char"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetMaxHealth","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_ChangeLevelBy","parameters":[{"name":"p","type":"Creature *"},{"name":"level","type":"signed char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_Damage","parameters":[{"name":"p","type":"Creature *"},{"name":"damage","type":"unsigned int"},{"name":"source","type":"DamageSource"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_Heal","parameters":[{"name":"p","type":"Creature *"},{"name":"health","type":"unsigned int"},{"name":"canRevive","type":"bool"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_OverrideActiveTalent","parameters":[{"name":"p","type":"Creature *"},{"name":"talent","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_AddExperience","parameters":[{"name":"p","type":"Creature *"},{"name":"experience","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_ClearVolatileScripts","parameters":[{"name":"p","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_AddVolatileScriptByName","parameters":[{"name":"p","type":"Creature *"},{"name":"scriptName","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_AddVolatileScript","parameters":[{"name":"p","type":"Creature *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_RemoveVolatileScriptByName","parameters":[{"name":"p","type":"Creature *"},{"name":"scriptName","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_RemoveVolatileScript","parameters":[{"name":"p","type":"Creature *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_HasVolatileScript","parameters":[{"name":"p","type":"Creature *"},{"name":"scriptName","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetAttacksCount","parameters":[{"name":"p","type":"Creature *"}],"returns":"long unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetAttacks","parameters":[{"name":"p","type":"Creature *"}],"returns":"const LearnedAttack * *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetDisplaySpecies","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const CreatureSpecies *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetDisplayVariant","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const SpeciesVariant *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_SetDisplaySpecies","parameters":[{"name":"p","type":"Creature *"},{"name":"species","type":"const CreatureSpecies *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_SetDisplayVariant","parameters":[{"name":"p","type":"Creature *"},{"name":"variant","type":"const SpeciesVariant *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_ChangeStatBoost","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"},{"name":"diffAmount","type":"signed char"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetFlatStat","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetBoostedStat","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetBaseStat","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetStatBoost","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"signed char"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_ConstructWithSize","parameters":[{"name":"size","type":"long unsigned int"}],"returns":"CreatureParty *"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_ConstructFromArray","parameters":[{"name":"creatures","type":"Creature * *"},{"name":"size","type":"long unsigned int"}],"returns":"CreatureParty *"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_Destruct","parameters":[{"name":"p","type":"const CreatureParty *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_GetAtIndex","parameters":[{"name":"out","type":"Creature *&"},{"name":"p","type":"const CreatureParty *"},{"name":"index","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_Switch","parameters":[{"name":"p","type":"CreatureParty *"},{"name":"a","type":"long unsigned int"},{"name":"b","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_HasAvailableCreatures","parameters":[{"name":"p","type":"const CreatureParty *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_GetLength","parameters":[{"name":"p","type":"const CreatureParty *"}],"returns":"long unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_CreatureParty_GetParty","parameters":[{"name":"p","type":"CreatureParty *"}],"returns":"const Creature * *"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageLibrary_Construct","parameters":[],"returns":"const DamageLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageLibrary_Destruct","parameters":[{"name":"p","type":"const DamageLibrary *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageLibrary_GetDamage","parameters":[{"name":"out","type":"unsigned int&"},{"name":"p","type":"const DamageLibrary *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitIndex","type":"unsigned char"},{"name":"hitData","type":"HitData *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageLibrary_GetBasePower","parameters":[{"name":"out","type":"unsigned char&"},{"name":"p","type":"const DamageLibrary *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitIndex","type":"unsigned char"},{"name":"hitData","type":"HitData *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageLibrary_GetStatModifier","parameters":[{"name":"out","type":"float&"},{"name":"p","type":"const DamageLibrary *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitIndex","type":"unsigned char"},{"name":"hitData","type":"HitData *"}],"returns":"float"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageLibrary_GetDamageModifier","parameters":[{"name":"out","type":"float&"},{"name":"p","type":"const DamageLibrary *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitIndex","type":"unsigned char"},{"name":"hitData","type":"HitData *"}],"returns":"float"},{"filename":"CreatureLibBattling","name":"CreatureLib_EventData_Destruct","parameters":[{"name":"p","type":"const EventData *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_EventData_GetKind","parameters":[{"name":"p","type":"const EventData *"}],"returns":"EventDataKind"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageEvent_GetCreature","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"Creature *"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageEvent_GetDamageSource","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"DamageSource"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageEvent_GetOriginalHealth","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_DamageEvent_GetNewHealth","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_HealEvent_GetCreature","parameters":[{"name":"p","type":"const HealEvent *"}],"returns":"Creature *"},{"filename":"CreatureLibBattling","name":"CreatureLib_HealEvent_GetOriginalHealth","parameters":[{"name":"p","type":"const HealEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_HealEvent_GetNewHealth","parameters":[{"name":"p","type":"const HealEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_FaintEvent_GetCreature","parameters":[{"name":"p","type":"const FaintEvent *"}],"returns":"Creature *"},{"filename":"CreatureLibBattling","name":"CreatureLib_DisplayTextEvent_GetText","parameters":[{"name":"p","type":"const DisplayTextEvent *"}],"returns":"const char *"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExecutingAttack_Construct","parameters":[{"name":"out","type":"ExecutingAttack *&"},{"name":"targets","type":"const Creature * *"},{"name":"targetCount","type":"long unsigned int"},{"name":"numberHits","type":"unsigned char"},{"name":"user","type":"Creature *"},{"name":"attack","type":"LearnedAttack *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExecutingAttack_Destruct","parameters":[{"name":"p","type":"ExecutingAttack *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExecutingAttack_GetHitData","parameters":[{"name":"out","type":"HitData *&"},{"name":"p","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hit","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExecutingAttack_IsCreatureTarget","parameters":[{"name":"p","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExecutingAttack_GetUser","parameters":[{"name":"p","type":"ExecutingAttack *"}],"returns":"Creature *"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExecutingAttack_GetAttack","parameters":[{"name":"p","type":"ExecutingAttack *"}],"returns":"LearnedAttack *"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_IsCritical","parameters":[{"name":"p","type":"const HitData *"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_GetBasePower","parameters":[{"name":"p","type":"const HitData *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_GetEffectiveness","parameters":[{"name":"p","type":"const HitData *"}],"returns":"float"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_GetDamage","parameters":[{"name":"p","type":"const HitData *"}],"returns":"unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_GetType","parameters":[{"name":"p","type":"const HitData *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_SetCritical","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"bool"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_SetBasePower","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_SetEffectiveness","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"float"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_SetDamage","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"unsigned int"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_HitData_SetType","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExperienceLibrary_Construct","parameters":[],"returns":"const ExperienceLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExperienceLibrary_Destruct","parameters":[{"name":"p","type":"const ExperienceLibrary *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_ExperienceLibrary_HandleExperienceGain","parameters":[{"name":"p","type":"const ExperienceLibrary *"},{"name":"faintedMon","type":"Creature *"},{"name":"opponents","type":"Creature * *"},{"name":"opponentsCount","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_Construct","parameters":[{"name":"out","type":"LearnedAttack *&"},{"name":"attack","type":"AttackData *"},{"name":"maxUses","type":"unsigned char"},{"name":"learnMethod","type":"AttackLearnMethod"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_Destruct","parameters":[{"name":"p","type":"LearnedAttack *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_GetAttack","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"const AttackData *"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_GetMaxUses","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_GetRemainingUses","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_GetLearnMethod","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"AttackLearnMethod"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_TryUse","parameters":[{"name":"p","type":"LearnedAttack *"},{"name":"uses","type":"unsigned char"}],"returns":"bool"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_DecreaseUses","parameters":[{"name":"p","type":"LearnedAttack *"},{"name":"uses","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_RestoreUses","parameters":[{"name":"p","type":"LearnedAttack *"},{"name":"uses","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_LearnedAttack_RestoreAllUses","parameters":[{"name":"p","type":"LearnedAttack *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_MiscLibrary_Construct","parameters":[],"returns":"MiscLibrary *"},{"filename":"CreatureLibBattling","name":"CreatureLib_MiscLibrary_Destruct","parameters":[{"name":"p","type":"const MiscLibrary *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_MiscLibrary_IsCritical","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"MiscLibrary *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hit","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_MiscLibrary_CanFlee","parameters":[{"name":"out","type":"bool&"},{"name":"p","type":"MiscLibrary *"},{"name":"switchChoice","type":"FleeTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_MiscLibrary_ReplacementAttack","parameters":[{"name":"out","type":"BaseTurnChoice *&"},{"name":"p","type":"MiscLibrary *"},{"name":"user","type":"Creature *"},{"name":"sideTarget","type":"unsigned char"},{"name":"creatureTarget","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_Destruct","parameters":[{"name":"p","type":"Script *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_Stack","parameters":[{"name":"p","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OnRemove","parameters":[{"name":"p","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_GetName","parameters":[{"name":"p","type":"Script *"}],"returns":"const char *"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OnBeforeTurn","parameters":[{"name":"p","type":"Script *"},{"name":"choice","type":"const BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_ChangeAttack","parameters":[{"name":"p","type":"Script *"},{"name":"choice","type":"AttackTurnChoice *"},{"name":"outAttack","type":"CaseInsensitiveConstString *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_PreventAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_FailAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_StopBeforeAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OnBeforeAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_FailIncomingAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_IsInvulnerable","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OnAttackMiss","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_ChangeAttackType","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"outType","type":"unsigned char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OverrideBasePower","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"basePower","type":"unsigned char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_ChangeDamageStatsUser","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"statsUser","type":"Creature * *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_BypassDefensiveStat","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"bypass","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_BypassOffensiveStat","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"bypass","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_ModifyStatModifier","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"modifier","type":"float *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_ModifyDamageModifier","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"modifier","type":"float *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OverrideDamage","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"damage","type":"unsigned int *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_PreventSecondaryEffects","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OnSecondaryEffect","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"hitNumber","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_OnAfterHits","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_PreventSelfSwitch","parameters":[{"name":"p","type":"Script *"},{"name":"choice","type":"const SwitchTurnChoice *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_ModifyEffectChance","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"const ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"chance","type":"float *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Script_ModifyIncomingEffectChance","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"const ExecutingAttack *"},{"name":"target","type":"Creature *"},{"name":"chance","type":"float *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_ScriptResolver_Construct","parameters":[],"returns":"ScriptResolver *"},{"filename":"CreatureLibBattling","name":"CreatureLib_ScriptResolver_Destruct","parameters":[{"name":"p","type":"const ScriptResolver *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_ScriptResolver_Initialize","parameters":[{"name":"p","type":"ScriptResolver *"},{"name":"library","type":"BattleLibrary *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_ScriptResolver_LoadScript","parameters":[{"name":"out","type":"Script *&"},{"name":"p","type":"ScriptResolver *"},{"name":"category","type":"ScriptCategory"},{"name":"scriptName","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_AttackTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"},{"name":"attack","type":"LearnedAttack *"},{"name":"sideIndex","type":"unsigned char"},{"name":"targetIndex","type":"unsigned char"}],"returns":"AttackTurnChoice *"},{"filename":"CreatureLibBattling","name":"CreatureLib_FleeTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"}],"returns":"FleeTurnChoice *"},{"filename":"CreatureLibBattling","name":"CreatureLib_PassTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"}],"returns":"PassTurnChoice *"},{"filename":"CreatureLibBattling","name":"CreatureLib_SwitchTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"},{"name":"newCreature","type":"Creature *"}],"returns":"SwitchTurnChoice *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BaseTurnChoice_Destruct","parameters":[{"name":"p","type":"const BaseTurnChoice *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_BaseTurnChoice_GetKind","parameters":[{"name":"p","type":"const BaseTurnChoice *"}],"returns":"TurnChoiceKind"},{"filename":"CreatureLibBattling","name":"CreatureLib_BaseTurnChoice_GetUser","parameters":[{"name":"p","type":"const BaseTurnChoice *"}],"returns":"Creature *"},{"filename":"CreatureLibBattling","name":"CreatureLib_AttackTurnChoice_GetAttack","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"LearnedAttack *"},{"filename":"CreatureLibBattling","name":"CreatureLib_AttackTurnChoice_GetKind","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"TurnChoiceKind"},{"filename":"CreatureLibBattling","name":"CreatureLib_BaseTurnChoice_GetPriority","parameters":[{"name":"out","type":"signed char&"},{"name":"p","type":"AttackTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_AttackTurnChoice_GetAttackScript","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"Script *"},{"filename":"CreatureLibBattling","name":"CreatureLib_BaseTurnChoice_GetTargetSideIndex","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_BaseTurnChoice_GetTargetCreatureIndex","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_SwitchTurnChoice_GetNewCreature","parameters":[{"name":"p","type":"const SwitchTurnChoice *"}],"returns":"Creature *"},{"filename":"CreatureLibBattling","name":"CreatureLib_C_GetLastException","parameters":[],"returns":"const char *"}]} diff --git a/PkmnLibSharp/generator.py b/PkmnLibSharp/generator.py new file mode 100644 index 0000000..752d0da --- /dev/null +++ b/PkmnLibSharp/generator.py @@ -0,0 +1,133 @@ +import json +import os + +def resolve_enum_size(size): + if (size == 1): + return "byte" + if (size == 4): + return "int" + raise Exception("Unknown size {}".format(size)) + +def write_enum(enum, enumNames): + namespace = str.capitalize(enum["filename"]) + filename = "Generated/{}/{}.cs".format(namespace, enum["name"]) + os.makedirs(os.path.dirname(filename), exist_ok=True) + with open(filename, "w") as f: + f.write("using System.Diagnostics.CodeAnalysis;\n\n") + f.write("namespace {}\n{{\n".format(namespace)) + f.write(" [SuppressMessage(\"ReSharper\", \"InconsistentNaming\")]\n") + f.write(" public enum {} : {}\n {{\n".format(enum["name"], resolve_enum_size(enum["byteSize"]) )) + for k, v in enum["values"].items(): + f.write(" {} = {},\n".format(v, k)) + f.write(" }\n") + f.write("}\n") + enumNames.add(enum["name"]) + +class funcDef: + def __init__(self, name, returns, parameters): + self.name = name + self.returns = returns + self.parameters = parameters + +class classDef: + def __init__(self, namespace, name, file): + self.namespace = namespace + self.file = file + self.name = name + self.functions = [] + + def register_function(self, func): + self.functions.append(func) + +def parse_function(function, classDict): + splitName = function["name"].split("_") + classKey = "{}_{}".format(function["filename"], splitName[1]) + if (not classKey in classDict): + classDict[classKey] = classDef(function["filename"].capitalize(), splitName[1], function["filename"]) + + classDict[classKey].register_function(funcDef(function["name"], function["returns"], function["parameters"])) + +def parse_type(type, enumSet): + if (type == "void"): + return "void" + if (type == "unsigned char"): + return "byte" + if (type == "signed char"): + return "sbyte" + if (type == "unsigned short"): + return "ushort" + if (type == "bool"): + return "bool" + if (type == "float"): + return "float" + if (type == "long unsigned int"): + return "ulong" + if (type == "unsigned int"): + return "uint" + if (type == "int"): + return "int" + if (type == "const char *"): + return "string" + + if (type.endswith("*")): + return "IntPtr" + if (type.endswith("&")): + return "ref " + parse_type(type[:-1], enumSet) + if (type in enumSet): + return type + print("Unhandled type '{}'".format(type)) + return "void" + +def clean_name(name): + if (name == "out"): + return "@out" + return name + +def write_class(c, enumSet): + filename = "Generated/{}/{}.cs".format(c.file.capitalize(), c.name) + os.makedirs(os.path.dirname(filename), exist_ok=True) + with open(filename, "w") as f: + f.write("using System;\n") + f.write("using System.Runtime.InteropServices;\n\n") + f.write("namespace {}.Generated\n{{\n".format(c.namespace)) + f.write(" internal static class {}\n {{\n".format(c.name)) + for function in c.functions: + for parameter in function.parameters: + f.write(" /// {}\n".format(parameter["name"], parameter["type"])) + f.write(" /// {}\n".format(function.returns)) + f.write(" [DllImport(\"{}\", CallingConvention = CallingConvention.Cdecl, EntryPoint= \"{}\")]\n".format(c.file, function.name)) + f.write(" internal static extern {} {}(".format(parse_type(function.returns, enumSet), function.name.split("_")[2])) + isFirst = True + for parameter in function.parameters: + if (not isFirst): + f.write(", ") + else: + isFirst = False + f.write("{} {}".format(parse_type(parameter["type"], enumSet), clean_name(parameter["name"]))) + + f.write(");\n\n") + f.write(" }\n") + f.write("}\n") + + +def parse_create(data): + enumSet = set() + for enum in data["enums"]: + write_enum(enum, enumSet) + classDict = dict() + for function in data["functions"]: + parse_function(function, classDict) + print("Registered {} classes.".format(len(classDict))) + for _, v in classDict.items(): + write_class(v, enumSet) + +def handle_file(filepath): + with open(filepath) as json_file: + data = json.load(json_file) + parse_create(data) + +def main(): + handle_file("creaturelib.json") + handle_file("pkmnlib.json") + +main() \ No newline at end of file diff --git a/PkmnLibSharp/pkmnlib.json b/PkmnLibSharp/pkmnlib.json new file mode 100644 index 0000000..7ad7b3b --- /dev/null +++ b/PkmnLibSharp/pkmnlib.json @@ -0,0 +1,1813 @@ +{ + "enums": [ + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "memory_order", + "values": { + "0": "memory_order_relaxed", + "1": "memory_order_consume", + "2": "memory_order_acquire", + "3": "memory_order_release", + "4": "memory_order_acq_rel", + "5": "memory_order_seq_cst" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "ScriptCategory", + "values": { + "0": "Attack", + "1": "Talent", + "2": "Status", + "3": "Creature", + "4": "Battle", + "5": "Side" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asEObjTypeFlags", + "values": { + "1": "asOBJ_REF", + "1024": "asOBJ_APP_CLASS_DESTRUCTOR", + "1048576": "asOBJ_IMPLICIT_HANDLE", + "1073741824": "asOBJ_APP_ALIGN16", + "128": "asOBJ_ASHANDLE", + "1280": "asOBJ_APP_CLASS_D", + "131072": "asOBJ_APP_CLASS_ALLFLOATS", + "134217728": "asOBJ_TEMPLATE_SUBTYPE", + "16": "asOBJ_NOHANDLE", + "16384": "asOBJ_APP_FLOAT", + "16777216": "asOBJ_FUNCDEF", + "1792": "asOBJ_APP_CLASS_CD", + "2": "asOBJ_VALUE", + "2048": "asOBJ_APP_CLASS_ASSIGNMENT", + "2097151": "asOBJ_MASK_VALID_FLAGS", + "2097152": "asOBJ_SCRIPT_OBJECT", + "2304": "asOBJ_APP_CLASS_A", + "256": "asOBJ_APP_CLASS", + "262144": "asOBJ_NOCOUNT", + "268435456": "asOBJ_TYPEDEF", + "2816": "asOBJ_APP_CLASS_CA", + "32": "asOBJ_SCOPED", + "32768": "asOBJ_APP_ARRAY", + "3328": "asOBJ_APP_CLASS_DA", + "33554432": "asOBJ_LIST_PATTERN", + "3840": "asOBJ_APP_CLASS_CDA", + "4": "asOBJ_GC", + "4096": "asOBJ_APP_CLASS_COPY_CONSTRUCTOR", + "4194304": "asOBJ_SHARED", + "4352": "asOBJ_APP_CLASS_K", + "4864": "asOBJ_APP_CLASS_CK", + "512": "asOBJ_APP_CLASS_CONSTRUCTOR", + "524288": "asOBJ_APP_CLASS_ALIGN8", + "536870912": "asOBJ_ABSTRACT", + "5376": "asOBJ_APP_CLASS_DK", + "5888": "asOBJ_APP_CLASS_CDK", + "64": "asOBJ_TEMPLATE", + "6400": "asOBJ_APP_CLASS_AK", + "65536": "asOBJ_APP_CLASS_ALLINTS", + "67108864": "asOBJ_ENUM", + "6912": "asOBJ_APP_CLASS_CAK", + "7424": "asOBJ_APP_CLASS_DAK", + "768": "asOBJ_APP_CLASS_C", + "7936": "asOBJ_APP_CLASS_CDAK", + "8": "asOBJ_POD", + "8192": "asOBJ_APP_PRIMITIVE", + "8388608": "asOBJ_NOINHERIT" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asECallConvTypes", + "values": { + "0": "asCALL_CDECL", + "1": "asCALL_STDCALL", + "2": "asCALL_THISCALL_ASGLOBAL", + "3": "asCALL_THISCALL", + "4": "asCALL_CDECL_OBJLAST", + "5": "asCALL_CDECL_OBJFIRST", + "6": "asCALL_GENERIC", + "7": "asCALL_THISCALL_OBJLAST", + "8": "asCALL_THISCALL_OBJFIRST" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "Statistic", + "values": { + "0": "Health", + "1": "PhysicalAttack", + "2": "PhysicalDefense", + "3": "MagicalAttack", + "4": "MagicalDefense", + "5": "Speed" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "MoveCategory", + "values": { + "0": "Physical", + "1": "Special", + "2": "Status" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "AttackTarget", + "values": { + "0": "Adjacent", + "1": "AdjacentAlly", + "10": "RandomOpponent", + "11": "Self", + "2": "AdjacentAllySelf", + "3": "AdjacentOpponent", + "4": "All", + "5": "AllAdjacent", + "6": "AllAdjacentOpponent", + "7": "AllAlly", + "8": "AllOpponent", + "9": "Any" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "EffectParameterType", + "values": { + "0": "None", + "1": "Bool", + "2": "Int", + "3": "Float", + "4": "String" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "AttackLearnMethod", + "values": { + "0": "Unknown", + "1": "Level" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "Gender", + "values": { + "0": "Male", + "1": "Female", + "2": "Genderless" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "EvolutionMethod", + "values": { + "0": "Level", + "1": "HighFriendship", + "10": "TradeWithHeldItem", + "11": "TradeWithSpecificPokemon", + "12": "Custom", + "2": "KnownMove", + "3": "LocationBased", + "4": "TimeBased", + "5": "HoldsItem", + "6": "IsGenderAndLevel", + "7": "EvolutionItemUse", + "8": "EvolutionItemUseWithGender", + "9": "Trade" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "TimeOfDay", + "values": { + "0": "Night", + "1": "Morning", + "2": "Afternoon", + "3": "Evening" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "ItemCategory", + "values": { + "0": "MiscItem", + "1": "CaptureDevice", + "2": "Medicine", + "3": "Berry", + "4": "MoveLearner", + "5": "VariantChanger", + "6": "KeyItem", + "7": "Mail" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "BattleItemCategory", + "values": { + "0": "None", + "1": "Healing", + "2": "StatusHealing", + "3": "CaptureDevice", + "4": "MiscBattleItem" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asETypeIdFlags", + "values": { + "0": "asTYPEID_VOID", + "1": "asTYPEID_BOOL", + "10": "asTYPEID_FLOAT", + "1073741824": "asTYPEID_OBJHANDLE", + "11": "asTYPEID_DOUBLE", + "134217728": "asTYPEID_SCRIPTOBJECT", + "2": "asTYPEID_INT8", + "268435456": "asTYPEID_TEMPLATE", + "3": "asTYPEID_INT16", + "4": "asTYPEID_INT32", + "469762048": "asTYPEID_MASK_OBJECT", + "5": "asTYPEID_INT64", + "536870912": "asTYPEID_HANDLETOCONST", + "6": "asTYPEID_UINT8", + "67108863": "asTYPEID_MASK_SEQNBR", + "67108864": "asTYPEID_APPOBJECT", + "7": "asTYPEID_UINT16", + "8": "asTYPEID_UINT32", + "9": "asTYPEID_UINT64" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asEContextState", + "values": { + "0": "asEXECUTION_FINISHED", + "1": "asEXECUTION_SUSPENDED", + "2": "asEXECUTION_ABORTED", + "3": "asEXECUTION_EXCEPTION", + "4": "asEXECUTION_PREPARED", + "5": "asEXECUTION_UNINITIALIZED", + "6": "asEXECUTION_ACTIVE", + "7": "asEXECUTION_ERROR" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asERetCodes", + "values": { + "-1": "asERROR", + "-10": "asINVALID_DECLARATION", + "-11": "asINVALID_OBJECT", + "-12": "asINVALID_TYPE", + "-13": "asALREADY_REGISTERED", + "-14": "asMULTIPLE_FUNCTIONS", + "-15": "asNO_MODULE", + "-16": "asNO_GLOBAL_VAR", + "-17": "asINVALID_CONFIGURATION", + "-18": "asINVALID_INTERFACE", + "-19": "asCANT_BIND_ALL_FUNCTIONS", + "-2": "asCONTEXT_ACTIVE", + "-20": "asLOWER_ARRAY_DIMENSION_NOT_REGISTERED", + "-21": "asWRONG_CONFIG_GROUP", + "-22": "asCONFIG_GROUP_IS_IN_USE", + "-23": "asILLEGAL_BEHAVIOUR_FOR_TYPE", + "-24": "asWRONG_CALLING_CONV", + "-25": "asBUILD_IN_PROGRESS", + "-26": "asINIT_GLOBAL_VARS_FAILED", + "-27": "asOUT_OF_MEMORY", + "-28": "asMODULE_IS_IN_USE", + "-3": "asCONTEXT_NOT_FINISHED", + "-4": "asCONTEXT_NOT_PREPARED", + "-5": "asINVALID_ARG", + "-6": "asNO_FUNCTION", + "-7": "asNOT_SUPPORTED", + "-8": "asINVALID_NAME", + "-9": "asNAME_TAKEN", + "0": "asSUCCESS" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asETypeModifiers", + "values": { + "0": "asTM_NONE", + "1": "asTM_INREF", + "2": "asTM_OUTREF", + "3": "asTM_INOUTREF", + "4": "asTM_CONST" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asEBehaviours", + "values": { + "0": "asBEHAVE_CONSTRUCT", + "1": "asBEHAVE_LIST_CONSTRUCT", + "10": "asBEHAVE_SETGCFLAG", + "11": "asBEHAVE_GETGCFLAG", + "12": "asBEHAVE_ENUMREFS", + "13": "asBEHAVE_RELEASEREFS", + "14": "asBEHAVE_MAX", + "2": "asBEHAVE_DESTRUCT", + "3": "asBEHAVE_FACTORY", + "4": "asBEHAVE_LIST_FACTORY", + "5": "asBEHAVE_ADDREF", + "6": "asBEHAVE_RELEASE", + "7": "asBEHAVE_GET_WEAKREF_FLAG", + "8": "asBEHAVE_TEMPLATE_CALLBACK", + "9": "asBEHAVE_FIRST_GC" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asEMsgType", + "values": { + "0": "asMSGTYPE_ERROR", + "1": "asMSGTYPE_WARNING", + "2": "asMSGTYPE_INFORMATION" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asEEngineProp", + "values": { + "1": "asEP_ALLOW_UNSAFE_REFERENCES", + "10": "asEP_REQUIRE_ENUM_SCOPE", + "11": "asEP_SCRIPT_SCANNER", + "12": "asEP_INCLUDE_JIT_INSTRUCTIONS", + "13": "asEP_STRING_ENCODING", + "14": "asEP_PROPERTY_ACCESSOR_MODE", + "15": "asEP_EXPAND_DEF_ARRAY_TO_TMPL", + "16": "asEP_AUTO_GARBAGE_COLLECT", + "17": "asEP_DISALLOW_GLOBAL_VARS", + "18": "asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT", + "19": "asEP_COMPILER_WARNINGS", + "2": "asEP_OPTIMIZE_BYTECODE", + "20": "asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE", + "21": "asEP_ALTER_SYNTAX_NAMED_ARGS", + "22": "asEP_DISABLE_INTEGER_DIVISION", + "23": "asEP_DISALLOW_EMPTY_LIST_ELEMENTS", + "24": "asEP_PRIVATE_PROP_AS_PROTECTED", + "25": "asEP_ALLOW_UNICODE_IDENTIFIERS", + "26": "asEP_HEREDOC_TRIM_MODE", + "27": "asEP_MAX_NESTED_CALLS", + "28": "asEP_GENERIC_CALL_MODE", + "29": "asEP_INIT_STACK_SIZE", + "3": "asEP_COPY_SCRIPT_SECTIONS", + "30": "asEP_INIT_CALL_STACK_SIZE", + "31": "asEP_MAX_CALL_STACK_SIZE", + "32": "asEP_LAST_PROPERTY", + "4": "asEP_MAX_STACK_SIZE", + "5": "asEP_USE_CHARACTER_LITERALS", + "6": "asEP_ALLOW_MULTILINE_STRINGS", + "7": "asEP_ALLOW_IMPLICIT_HANDLE_TYPES", + "8": "asEP_BUILD_WITHOUT_LINE_CUES", + "9": "asEP_INIT_GLOBAL_VARS_AFTER_BUILD" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asEGMFlags", + "values": { + "0": "asGM_ONLY_IF_EXISTS", + "1": "asGM_CREATE_IF_NOT_EXISTS", + "2": "asGM_ALWAYS_CREATE" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asETokenClass", + "values": { + "0": "asTC_UNKNOWN", + "1": "asTC_KEYWORD", + "2": "asTC_VALUE", + "3": "asTC_IDENTIFIER", + "4": "asTC_COMMENT", + "5": "asTC_WHITESPACE" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "METADATATYPE", + "values": { + "1": "MDT_TYPE", + "2": "MDT_FUNC", + "3": "MDT_VAR", + "4": "MDT_VIRTPROP", + "5": "MDT_FUNC_OR_VAR" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "asEFuncType", + "values": { + "-1": "asFUNC_DUMMY", + "0": "asFUNC_SYSTEM", + "1": "asFUNC_SCRIPT", + "2": "asFUNC_INTERFACE", + "3": "asFUNC_VIRTUAL", + "4": "asFUNC_FUNCDEF", + "5": "asFUNC_IMPORTED", + "6": "asFUNC_DELEGATE" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "PkmnScriptCategory", + "values": { + "6": "Weather" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "EventDataKind", + "values": { + "0": "Damage", + "1": "Heal", + "2": "Faint", + "3": "DisplayText" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "PkmnEventDataKind", + "values": { + "4": "WeatherChange" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "TurnChoiceKind", + "values": { + "0": "Pass", + "1": "Attack", + "2": "Item", + "3": "Switch", + "4": "Flee" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "AttackCategory", + "values": { + "0": "Physical", + "1": "Magical", + "2": "Status" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "syntax_option_type", + "values": {} + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "error_type", + "values": { + "0": "_S_error_collate", + "1": "_S_error_ctype", + "10": "_S_error_badrepeat", + "11": "_S_error_complexity", + "12": "_S_error_stack", + "2": "_S_error_escape", + "3": "_S_error_backref", + "4": "_S_error_brack", + "5": "_S_error_paren", + "6": "_S_error_brace", + "7": "_S_error_badbrace", + "8": "_S_error_range", + "9": "_S_error_space" + } + }, + { + "byteSize": 4, + "filename": "pkmnLib", + "name": "match_flag_type", + "values": {} + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "DamageSource", + "values": { + "0": "AttackDamage" + } + }, + { + "byteSize": 1, + "filename": "pkmnLib", + "name": "PkmnDamageSource", + "values": { + "1": "Struggle" + } + } + ], + "functions": [ + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_Construct", + "parameters": [], + "returns": "AngelScriptResolver *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_Destruct", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_Initialize", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "lib", + "type": "BattleLibrary *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_CreateScript", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "name", + "type": "const char *" + }, + { + "name": "script", + "type": "const char *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_FinalizeModule", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_LoadScript", + "parameters": [ + { + "name": "out", + "type": "Script *&" + }, + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "category", + "type": "ScriptCategory" + }, + { + "name": "scriptName", + "type": "const char *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_WriteByteCodeToFile", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "file", + "type": "const char *" + }, + { + "name": "stripDebugInfo", + "type": "bool" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_LoadByteCodeFromFile", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "file", + "type": "const char *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_WriteByteCodeToMemory", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "stripDebugInfo", + "type": "bool" + }, + { + "name": "size", + "type": "long unsigned int&" + }, + { + "name": "out", + "type": "unsigned char *&" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_LoadByteCodeFromMemory", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "memory", + "type": "unsigned char *" + }, + { + "name": "size", + "type": "long unsigned int" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_RegisterType", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "typeName", + "type": "const char *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_RegisterTypeMethod", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "typeName", + "type": "const char *" + }, + { + "name": "decl", + "type": "const char *" + }, + { + "name": "func", + "type": "Function *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_AngelScriptResolver_RegisterGlobalMethod", + "parameters": [ + { + "name": "p", + "type": "AngelScriptResolver *" + }, + { + "name": "decl", + "type": "const char *" + }, + { + "name": "func", + "type": "Function *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Battle_Construct", + "parameters": [ + { + "name": "out", + "type": "Battle *&" + }, + { + "name": "library", + "type": "const BattleLibrary *" + }, + { + "name": "parties", + "type": "const BattleParty * *" + }, + { + "name": "partiesCount", + "type": "long unsigned int" + }, + { + "name": "canFlee", + "type": "bool" + }, + { + "name": "numberOfSides", + "type": "unsigned char" + }, + { + "name": "creaturesPerSide", + "type": "unsigned char" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Battle_Destruct", + "parameters": [ + { + "name": "p", + "type": "Battle *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Battle_SetWeather", + "parameters": [ + { + "name": "p", + "type": "Battle *" + }, + { + "name": "name", + "type": "const char *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Battle_ClearWeather", + "parameters": [ + { + "name": "p", + "type": "Battle *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Battle_GetWeatherName", + "parameters": [ + { + "name": "p", + "type": "Battle *" + } + ], + "returns": "const char *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_BattleLibrary_Construct", + "parameters": [ + { + "name": "out", + "type": "BattleLibrary *&" + }, + { + "name": "staticLib", + "type": "PokemonLibrary *" + }, + { + "name": "statCalculator", + "type": "StatCalculator *" + }, + { + "name": "damageLibrary", + "type": "DamageLibrary *" + }, + { + "name": "experienceLibrary", + "type": "ExperienceLibrary *" + }, + { + "name": "scriptResolver", + "type": "ScriptResolver *" + }, + { + "name": "miscLibrary", + "type": "MiscLibrary *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_BattleLibrary_Destruct", + "parameters": [ + { + "name": "p", + "type": "BattleLibrary *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_DamageLibrary_Construct", + "parameters": [], + "returns": "DamageLibrary *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_DamageLibrary_Destruct", + "parameters": [ + { + "name": "p", + "type": "DamageLibrary *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_WeatherChangeEvent_Destruct", + "parameters": [ + { + "name": "p", + "type": "WeatherChangeEvent *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_WeatherChangeEvent_GetWeatherName", + "parameters": [ + { + "name": "p", + "type": "WeatherChangeEvent *" + } + ], + "returns": "const char *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_MiscLibrary_Construct", + "parameters": [], + "returns": "MiscLibrary *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_MiscLibrary_Destruct", + "parameters": [ + { + "name": "p", + "type": "MiscLibrary *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_PkmnScript_ModifyCriticalStage", + "parameters": [ + { + "name": "script", + "type": "PkmnScript *" + }, + { + "name": "attack", + "type": "ExecutingAttack *" + }, + { + "name": "target", + "type": "Creature *" + }, + { + "name": "hit", + "type": "unsigned char" + }, + { + "name": "critStage", + "type": "unsigned char *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Pokemon_Construct", + "parameters": [ + { + "name": "library", + "type": "const BattleLibrary *" + }, + { + "name": "species", + "type": "const PokemonSpecies *" + }, + { + "name": "forme", + "type": "const PokemonForme *" + }, + { + "name": "level", + "type": "unsigned char" + }, + { + "name": "experience", + "type": "unsigned int" + }, + { + "name": "uid", + "type": "unsigned int" + }, + { + "name": "gender", + "type": "Gender" + }, + { + "name": "coloring", + "type": "unsigned char" + }, + { + "name": "heldItem", + "type": "const Item *" + }, + { + "name": "nickname", + "type": "const char *" + }, + { + "name": "hiddenAbility", + "type": "bool" + }, + { + "name": "abilityIndex", + "type": "unsigned char" + }, + { + "name": "moves", + "type": "const LearnedAttack * *" + }, + { + "name": "moveCount", + "type": "long unsigned int" + }, + { + "name": "hpIv", + "type": "unsigned char" + }, + { + "name": "attIv", + "type": "unsigned char" + }, + { + "name": "defIv", + "type": "unsigned char" + }, + { + "name": "sAtIv", + "type": "unsigned char" + }, + { + "name": "sDeIv", + "type": "unsigned char" + }, + { + "name": "spIv", + "type": "unsigned char" + }, + { + "name": "hpEv", + "type": "unsigned char" + }, + { + "name": "attEv", + "type": "unsigned char" + }, + { + "name": "defEv", + "type": "unsigned char" + }, + { + "name": "sAtEv", + "type": "unsigned char" + }, + { + "name": "sDeEv", + "type": "unsigned char" + }, + { + "name": "spEv", + "type": "unsigned char" + }, + { + "name": "nature", + "type": "const Nature *" + } + ], + "returns": "Pokemon *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Pokemon_Destruct", + "parameters": [ + { + "name": "p", + "type": "const Pokemon *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Pokemon_IsShiny", + "parameters": [ + { + "name": "p", + "type": "const Pokemon *" + } + ], + "returns": "bool" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Pokemon_GetNature", + "parameters": [ + { + "name": "p", + "type": "const Pokemon *" + } + ], + "returns": "const Nature *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Pokemon_GetIndividualValue", + "parameters": [ + { + "name": "p", + "type": "const Pokemon *" + }, + { + "name": "stat", + "type": "Statistic" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Pokemon_GetEffortValue", + "parameters": [ + { + "name": "p", + "type": "const Pokemon *" + }, + { + "name": "stat", + "type": "Statistic" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_StatCalculator_Construct", + "parameters": [], + "returns": "StatCalculator *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_StatCalculator_Destruct", + "parameters": [ + { + "name": "p", + "type": "StatCalculator *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_C_GetLastException", + "parameters": [], + "returns": "const char *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_EvolutionData_CreateLevelEvolution", + "parameters": [ + { + "name": "level", + "type": "unsigned char" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_EvolutionData_CreateFriendshipEvolution", + "parameters": [ + { + "name": "friendship", + "type": "unsigned char" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_EvolutionData_CreateKnownMoveEvolution", + "parameters": [ + { + "name": "move", + "type": "const MoveData *" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_EvolutionData_CreateLocationEvolution", + "parameters": [ + { + "name": "location", + "type": "const char *" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateTimeEvolution", + "parameters": [ + { + "name": "time", + "type": "TimeOfDay" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateItemEvolution", + "parameters": [ + { + "name": "item", + "type": "const Item *" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateGenderBasedEvolution", + "parameters": [ + { + "name": "gender", + "type": "Gender" + }, + { + "name": "level", + "type": "unsigned char" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateItemUseEvolution", + "parameters": [ + { + "name": "item", + "type": "const Item *" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateItemUseWithGenderEvolution", + "parameters": [ + { + "name": "item", + "type": "const Item *" + }, + { + "name": "gender", + "type": "Gender" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateTradeEvolution", + "parameters": [ + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateTradeWithItemEvolution", + "parameters": [ + { + "name": "item", + "type": "const Item *" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateTradeWithSpeciesEvolution", + "parameters": [ + { + "name": "traded", + "type": "const PokemonSpecies *" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_CreateCustomEvolution", + "parameters": [ + { + "name": "data", + "type": "const EffectParameter * *" + }, + { + "name": "dataLength", + "type": "long unsigned int" + }, + { + "name": "into", + "type": "const PokemonSpecies *" + } + ], + "returns": "const EvolutionData *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_GetMethod", + "parameters": [ + { + "name": "data", + "type": "const EvolutionData *" + } + ], + "returns": "EvolutionMethod" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_GetNewSpecies", + "parameters": [ + { + "name": "data", + "type": "const EvolutionData *" + } + ], + "returns": "const PokemonSpecies *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_GetDataCount", + "parameters": [ + { + "name": "data", + "type": "const EvolutionData *" + } + ], + "returns": "long unsigned int" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Evolution_GetData", + "parameters": [ + { + "name": "data", + "type": "const EvolutionData *" + }, + { + "name": "index", + "type": "long unsigned int" + }, + { + "name": "out", + "type": "const EffectParameter *&" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Item_Construct", + "parameters": [ + { + "name": "name", + "type": "const char *" + }, + { + "name": "category", + "type": "ItemCategory" + }, + { + "name": "battleCategory", + "type": "BattleItemCategory" + }, + { + "name": "price", + "type": "int" + }, + { + "name": "flags", + "type": "const char * *" + }, + { + "name": "flagsCount", + "type": "long unsigned int" + }, + { + "name": "flingPower", + "type": "unsigned char" + } + ], + "returns": "Item *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Item_Destruct", + "parameters": [ + { + "name": "p", + "type": "const Item *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Item_GetFlingPower", + "parameters": [ + { + "name": "p", + "type": "const Item *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_LibrarySettings_Construct", + "parameters": [ + { + "name": "maximalLevel", + "type": "unsigned char" + }, + { + "name": "maximalMoves", + "type": "unsigned char" + }, + { + "name": "shinyRate", + "type": "unsigned short" + } + ], + "returns": "const LibrarySettings *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_LibrarySettings_Destruct", + "parameters": [ + { + "name": "p", + "type": "const LibrarySettings *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_LibrarySettings_GetShinyRate", + "parameters": [ + { + "name": "p", + "type": "const LibrarySettings *" + } + ], + "returns": "unsigned short" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Nature_Construct", + "parameters": [ + { + "name": "increasedStat", + "type": "Statistic" + }, + { + "name": "decreasedStat", + "type": "Statistic" + }, + { + "name": "increasedModifier", + "type": "float" + }, + { + "name": "decreasedModifier", + "type": "float" + } + ], + "returns": "Nature *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Nature_Destruct", + "parameters": [ + { + "name": "p", + "type": "const Nature *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Nature_GetIncreaseModifier", + "parameters": [ + { + "name": "p", + "type": "const Nature *" + } + ], + "returns": "float" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Nature_GetDecreaseModifier", + "parameters": [ + { + "name": "p", + "type": "const Nature *" + } + ], + "returns": "float" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Nature_GetIncreasedStat", + "parameters": [ + { + "name": "p", + "type": "const Nature *" + } + ], + "returns": "Statistic" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Nature_GetDecreasedStat", + "parameters": [ + { + "name": "p", + "type": "const Nature *" + } + ], + "returns": "Statistic" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_Nature_GetStatModifier", + "parameters": [ + { + "name": "nature", + "type": "const Nature *" + }, + { + "name": "stat", + "type": "Statistic" + } + ], + "returns": "float" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_NatureLibrary_Construct", + "parameters": [ + { + "name": "initialCapacity", + "type": "long unsigned int" + } + ], + "returns": "NatureLibrary *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_NatureLibrary_Destruct", + "parameters": [ + { + "name": "p", + "type": "const NatureLibrary *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_NatureLibrary_LoadNature", + "parameters": [ + { + "name": "p", + "type": "NatureLibrary *" + }, + { + "name": "name", + "type": "const char *" + }, + { + "name": "nature", + "type": "const Nature *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_NatureLibrary_GetNatureByName", + "parameters": [ + { + "name": "p", + "type": "NatureLibrary *" + }, + { + "name": "name", + "type": "const char *" + }, + { + "name": "out", + "type": "const Nature *&" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_NatureLibrary_GetRandomNatureName", + "parameters": [ + { + "name": "p", + "type": "NatureLibrary *" + }, + { + "name": "rand", + "type": "Random *" + } + ], + "returns": "const char *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_NatureLibrary_GetNatureName", + "parameters": [ + { + "name": "p", + "type": "NatureLibrary *" + }, + { + "name": "nature", + "type": "const Nature *" + }, + { + "name": "out", + "type": "const char *&" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_PokemonSpecies_Construct", + "parameters": [ + { + "name": "id", + "type": "unsigned short" + }, + { + "name": "name", + "type": "const char *" + }, + { + "name": "defaultForme", + "type": "const PokemonForme *" + }, + { + "name": "genderRatio", + "type": "float" + }, + { + "name": "growthRate", + "type": "const char *" + }, + { + "name": "captureRate", + "type": "unsigned char" + }, + { + "name": "baseHappiness", + "type": "unsigned char" + } + ], + "returns": "const PokemonSpecies *" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_PokemonSpecies_Destruct", + "parameters": [ + { + "name": "p", + "type": "const PokemonSpecies *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_PokemonSpecies_GetBaseHappiness", + "parameters": [ + { + "name": "p", + "type": "const PokemonSpecies *" + } + ], + "returns": "unsigned char" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_PokemonSpecies_AddEvolution", + "parameters": [ + { + "name": "p", + "type": "PokemonSpecies *" + }, + { + "name": "evo", + "type": "EvolutionData *" + } + ], + "returns": "void" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_PokemonSpecies_GetEvolutionCount", + "parameters": [ + { + "name": "p", + "type": "const PokemonSpecies *" + } + ], + "returns": "long unsigned int" + }, + { + "filename": "pkmnLib", + "name": "PkmnLib_PokemonSpecies_GetEvolution", + "parameters": [ + { + "name": "p", + "type": "const PokemonSpecies *" + }, + { + "name": "index", + "type": "long unsigned int" + }, + { + "name": "out", + "type": "const EvolutionData *&" + } + ], + "returns": "unsigned char" + } + ] +} \ No newline at end of file diff --git a/PkmnLibSharpTests/FormeTests.cs b/PkmnLibSharpTests/FormeTests.cs new file mode 100644 index 0000000..4b982ff --- /dev/null +++ b/PkmnLibSharpTests/FormeTests.cs @@ -0,0 +1,69 @@ +using NUnit.Framework; +using PkmnLibSharp.Library; + + +namespace PkmnLibSharpTests +{ + public class FormeTests + { + [Test] + public void ConstructDestruct() + { + var forme = Forme.Create("foo", 1, 2, 100, new byte[] {0}, 10, 10, 10, 10, 10, 10, new[] {"foo"}, + new[] {"bar"}); + forme.Dispose(); + } + + [Test] + public void GetName() + { + var forme = Forme.Create("foo", 1, 2, 100, new byte[] {0}, 10, 10, 10, 10, 10, 10, new[] {"foo"}, + new[] {"bar"}); + Assert.AreEqual("foo", forme.Name); + forme.Dispose(); + } + + [Test] + public void GetHeight() + { + var forme = Forme.Create("foo", 1, 2, 100, new byte[] {0}, 10, 10, 10, 10, 10, 10, new[] {"foo"}, + new[] {"bar"}); + Assert.AreEqual(1f, forme.Height); + forme.Dispose(); + } + + [Test] + public void GetWeight() + { + var forme = Forme.Create("foo", 1, 2, 100, new byte[] {0}, 10, 10, 10, 10, 10, 10, new[] {"foo"}, + new[] {"bar"}); + Assert.AreEqual(2f, forme.Weight); + forme.Dispose(); + } + + [Test] + public void GetBaseExperience() + { + var forme = Forme.Create("foo", 1, 2, 100, new byte[] {0}, 10, 10, 10, 10, 10, 10, new[] {"foo"}, + new[] {"bar"}); + Assert.AreEqual(100, forme.BaseExperience); + forme.Dispose(); + } + + [Test] + public void GetTypes() + { + var forme = Forme.Create("foo", 1, 2, 100, new byte[] {0}, 10, 10, 10, 10, 10, 10, new[] {"foo"}, + new[] {"bar"}); + Assert.AreEqual(0, forme.GetPkmnType(0)); + forme.Dispose(); + + forme = Forme.Create("foo", 1, 2, 100, new byte[] {0, 1}, 10, 10, 10, 10, 10, 10, new[] {"foo"}, + new[] {"bar"}); + Assert.AreEqual(0, forme.GetPkmnType(0)); + Assert.AreEqual(1, forme.GetPkmnType(1)); + forme.Dispose(); + } + + } +} \ No newline at end of file diff --git a/PkmnLibSharpTests/PkmnLibSharpTests.csproj b/PkmnLibSharpTests/PkmnLibSharpTests.csproj new file mode 100644 index 0000000..b0dd7e8 --- /dev/null +++ b/PkmnLibSharpTests/PkmnLibSharpTests.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp3.1 + + false + + + + + + + + + + + + +