From 00c5f51c5574963b7c332fd41427bcdf34a4f40b Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 31 Jul 2020 14:19:21 +0200 Subject: [PATCH] Update to latest CreatureLib, more work on battle tests. --- PkmnLibSharp.sln | 2 + PkmnLibSharp/Battling/Battle/Battle.cs | 54 +++++------ PkmnLibSharp/Battling/Battle/BattleParty.cs | 22 ++++- PkmnLibSharp/Battling/Battle/BattleRandom.cs | 16 ++-- .../Battling/ChoiceTurn/BaseTurnChoice.cs | 4 +- .../Battling/ChoiceTurn/FleeTurnChoice.cs | 4 +- .../Battling/ChoiceTurn/MoveTurnChoice.cs | 14 +-- .../Battling/ChoiceTurn/SwitchTurnChoice.cs | 4 +- .../Battling/Events/BattleEventListener.cs | 4 +- PkmnLibSharp/Battling/LearnedMove.cs | 10 +- .../Battling/Library/BattleLibrary.cs | 10 +- .../Battling/Library/DamageLibrary.cs | 8 +- .../Battling/Library/StatCalculator.cs | 8 +- PkmnLibSharp/Battling/MiscLibrary.cs | 6 +- PkmnLibSharp/Battling/Pokemon.cs | 86 ++++++++--------- PkmnLibSharp/Battling/PokemonParty.cs | 20 ++-- .../AttackCategory.cs | 2 +- .../AttackData.cs | 30 +++--- .../AttackLearnMethod.cs | 2 +- .../AttackLibrary.cs | 24 ++--- .../AttackTarget.cs | 2 +- .../AttackTurnChoice.cs | 18 ++-- .../BaseTurnChoice.cs | 6 +- .../Battle.cs | 62 ++++++------ .../BattleItemCategory.cs | 2 +- .../BattleLibrary.cs | 16 ++-- .../BattleParty.cs | 15 ++- .../BattleRandom.cs | 18 ++-- .../BattleSide.cs | 30 +++--- .../BattleStatCalculator.cs | 10 +- .../{Creatureliblibrary => Creaturelib}/C.cs | 4 +- .../Creature.cs | 94 +++++++++---------- .../CreatureParty.cs | 20 ++-- .../CreatureSpecies.cs | 32 +++---- .../DamageEvent.cs | 10 +- .../DamageLibrary.cs | 14 +-- .../DamageSource.cs | 2 +- .../DataLibrary.cs | 18 ++-- .../DisplayTextEvent.cs | 4 +- .../EffectParameter.cs | 22 ++--- .../EffectParameterType.cs | 2 +- .../EventData.cs | 6 +- .../EventDataKind.cs | 2 +- .../ExecutingAttack.cs | 14 +-- .../ExperienceLibrary.cs | 8 +- .../ExternGrowthRate.cs | 6 +- .../FaintEvent.cs | 4 +- .../FleeTurnChoice.cs | 6 +- .../Gender.cs | 2 +- .../GrowthRate.cs | 8 +- .../GrowthRateLibrary.cs | 18 ++-- .../HealEvent.cs | 8 +- .../HitData.cs | 22 ++--- .../Item.cs | 16 ++-- .../ItemCategory.cs | 2 +- .../ItemLibrary.cs | 24 ++--- .../LearnableAttacks.cs | 12 +-- .../LearnedAttack.cs | 22 ++--- .../LibrarySettings.cs | 10 +- .../LookupGrowthRate.cs | 6 +- .../MiscLibrary.cs | 12 +-- .../PassTurnChoice.cs | 6 +- .../Script.cs | 56 +++++------ .../ScriptCategory.cs | 2 +- .../ScriptResolver.cs | 10 +- .../SpeciesLibrary.cs | 24 ++--- .../SpeciesVariant.cs | 30 +++--- .../Statistic.cs | 2 +- .../SwitchTurnChoice.cs | 8 +- .../TurnChoiceKind.cs | 2 +- .../TypeLibrary.cs | 20 ++-- .../Creaturelibbattling/AttackCategory.cs | 13 --- .../Creaturelibbattling/AttackTarget.cs | 22 ----- .../Creaturelibbattling/BattleItemCategory.cs | 15 --- .../Generated/Creaturelibbattling/C.cs | 14 --- .../EffectParameterType.cs | 15 --- .../Generated/Creaturelibbattling/Gender.cs | 13 --- .../Creaturelibbattling/ItemCategory.cs | 18 ---- .../Creaturelibbattling/Statistic.cs | 16 ---- .../Creaturelibbattling/memory_order.cs | 16 ---- .../Creatureliblibrary/memory_order.cs | 16 ---- PkmnLibSharp/Library/EffectParameter.cs | 20 ++-- PkmnLibSharp/Library/Forme.cs | 34 +++---- .../Library/GrowthRates/ExternGrowthRate.cs | 4 +- .../Library/GrowthRates/GrowthRate.cs | 4 +- .../Library/GrowthRates/GrowthRateLibrary.cs | 10 +- .../Library/GrowthRates/LookupGrowthRate.cs | 4 +- PkmnLibSharp/Library/Items/Item.cs | 10 +- PkmnLibSharp/Library/Items/ItemLibrary.cs | 14 +-- PkmnLibSharp/Library/LearnableMoves.cs | 2 +- PkmnLibSharp/Library/LibrarySettings.cs | 4 +- PkmnLibSharp/Library/Moves/MoveData.cs | 4 +- PkmnLibSharp/Library/Moves/MoveLibrary.cs | 2 +- PkmnLibSharp/Library/PokemonLibrary.cs | 2 +- PkmnLibSharp/Library/Species.cs | 2 +- PkmnLibSharp/Library/SpeciesLibrary.cs | 14 +-- PkmnLibSharp/Library/TypeLibrary.cs | 14 +-- PkmnLibSharp/Native/libArbutils.so | 4 +- PkmnLibSharp/Native/libCreatureLib.so | 3 + PkmnLibSharp/Native/libCreatureLibBattling.so | 3 - PkmnLibSharp/Native/libCreatureLibLibrary.so | 3 - PkmnLibSharp/Native/libpkmnLib.so | 4 +- PkmnLibSharp/PkmnLibSharp.csproj | 8 +- PkmnLibSharp/Utilities/PointerWrapper.cs | 5 + PkmnLibSharp/Utilities/ReadOnlyArray.cs | 41 ++++++++ PkmnLibSharp/Utilities/ResultChecker.cs | 13 +-- PkmnLibSharp/creaturelib.json | 2 +- .../Battling/BattleLibraryHelper.cs | 3 + .../Battling/BattleTests/BasicBattleTests.cs | 43 +++++++-- .../Library/EffectParameterTests.cs | 2 +- PkmnLibSharpTests/Library/SpeciesTests.cs | 2 +- PkmnLibSharpTests/PkmnLibSharpTests.csproj | 1 + PkmnLibSharpTests/TestClass.cs | 18 ++++ 113 files changed, 758 insertions(+), 798 deletions(-) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/AttackCategory.cs (89%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/AttackData.cs (64%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/AttackLearnMethod.cs (88%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/AttackLibrary.cs (65%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/AttackTarget.cs (94%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/AttackTurnChoice.cs (59%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/BaseTurnChoice.cs (60%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/Battle.cs (62%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/BattleItemCategory.cs (91%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/BattleLibrary.cs (64%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/BattleParty.cs (58%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/BattleRandom.cs (59%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/BattleSide.cs (60%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/BattleStatCalculator.cs (64%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/C.cs (58%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/Creature.cs (61%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/CreatureParty.cs (61%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/CreatureSpecies.cs (64%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/DamageEvent.cs (57%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/DamageLibrary.cs (73%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/DamageSource.cs (87%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/DataLibrary.cs (63%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/DisplayTextEvent.cs (63%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/EffectParameter.cs (58%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/EffectParameterType.cs (90%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/EventData.cs (59%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/EventDataKind.cs (90%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/ExecutingAttack.cs (66%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/ExperienceLibrary.cs (63%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/ExternGrowthRate.cs (66%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/FaintEvent.cs (63%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/FleeTurnChoice.cs (58%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/Gender.cs (89%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/GrowthRate.cs (66%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/GrowthRateLibrary.cs (69%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/HealEvent.cs (57%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/HitData.cs (57%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/Item.cs (63%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/ItemCategory.cs (92%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/ItemLibrary.cs (64%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/LearnableAttacks.cs (63%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/LearnedAttack.cs (59%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/LibrarySettings.cs (59%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/LookupGrowthRate.cs (63%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/MiscLibrary.cs (68%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/PassTurnChoice.cs (58%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/Script.cs (70%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/ScriptCategory.cs (91%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/ScriptResolver.cs (62%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/SpeciesLibrary.cs (64%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/SpeciesVariant.cs (66%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/Statistic.cs (92%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/SwitchTurnChoice.cs (60%) rename PkmnLibSharp/Generated/{Creaturelibbattling => Creaturelib}/TurnChoiceKind.cs (90%) rename PkmnLibSharp/Generated/{Creatureliblibrary => Creaturelib}/TypeLibrary.cs (68%) delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/AttackCategory.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/AttackTarget.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/BattleItemCategory.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/C.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/EffectParameterType.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/Gender.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/ItemCategory.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/Statistic.cs delete mode 100644 PkmnLibSharp/Generated/Creaturelibbattling/memory_order.cs delete mode 100644 PkmnLibSharp/Generated/Creatureliblibrary/memory_order.cs create mode 100755 PkmnLibSharp/Native/libCreatureLib.so delete mode 100755 PkmnLibSharp/Native/libCreatureLibBattling.so delete mode 100755 PkmnLibSharp/Native/libCreatureLibLibrary.so create mode 100644 PkmnLibSharp/Utilities/ReadOnlyArray.cs create mode 100644 PkmnLibSharpTests/TestClass.cs diff --git a/PkmnLibSharp.sln b/PkmnLibSharp.sln index 443d8e1..9b55d8e 100644 --- a/PkmnLibSharp.sln +++ b/PkmnLibSharp.sln @@ -12,7 +12,9 @@ Global 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 = Debug|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 = Debug|Any CPU EndGlobalSection EndGlobal diff --git a/PkmnLibSharp/Battling/Battle/Battle.cs b/PkmnLibSharp/Battling/Battle/Battle.cs index f943494..ee39dd5 100644 --- a/PkmnLibSharp/Battling/Battle/Battle.cs +++ b/PkmnLibSharp/Battling/Battle/Battle.cs @@ -23,7 +23,7 @@ namespace PkmnLibSharp.Battling get { if (_library != null) return _library; - var ptr = Creaturelibbattling.Generated.Battle.GetLibrary(Ptr); + var ptr = Creaturelib.Generated.Battle.GetLibrary(Ptr); if (TryResolvePointer(ptr, out _library)) { return _library; @@ -38,7 +38,7 @@ namespace PkmnLibSharp.Battling get { if (_random != null) return _random; - var ptr = Creaturelibbattling.Generated.Battle.GetRandom(Ptr); + var ptr = Creaturelib.Generated.Battle.GetRandom(Ptr); if (TryResolvePointer(ptr, out _random)) { return _random; @@ -48,19 +48,19 @@ namespace PkmnLibSharp.Battling } } - public bool CanFlee => Creaturelibbattling.Generated.Battle.CanFlee(Ptr) == 1; - public bool HasEnded => Creaturelibbattling.Generated.Battle.HasEnded(Ptr) == 1; - public bool HasConclusiveResult => Creaturelibbattling.Generated.Battle.HasConclusiveResult(Ptr) == 1; - public byte WinningSide => Creaturelibbattling.Generated.Battle.GetWinningSide(Ptr); - public ulong SidesCount => Creaturelibbattling.Generated.Battle.GetSidesCount(Ptr); - public ulong PartiesCount => Creaturelibbattling.Generated.Battle.GetPartiesCount(Ptr); + public bool CanFlee => Creaturelib.Generated.Battle.CanFlee(Ptr) == 1; + public bool HasEnded => Creaturelib.Generated.Battle.HasEnded(Ptr) == 1; + public bool HasConclusiveResult => Creaturelib.Generated.Battle.HasConclusiveResult(Ptr) == 1; + public byte WinningSide => Creaturelib.Generated.Battle.GetWinningSide(Ptr); + public ulong SidesCount => Creaturelib.Generated.Battle.GetSidesCount(Ptr); + public ulong PartiesCount => Creaturelib.Generated.Battle.GetPartiesCount(Ptr); public ReadOnlyNativePtrArray Sides { get { if (_sides != null) return _sides; - var ptr = Creaturelibbattling.Generated.Battle.GetSides(Ptr); + var ptr = Creaturelib.Generated.Battle.GetSides(Ptr); _sides = new ReadOnlyNativePtrArray(ptr, (int) SidesCount); return _sides; } @@ -71,7 +71,7 @@ namespace PkmnLibSharp.Battling get { if (_parties != null) return _parties; - var ptr = Creaturelibbattling.Generated.Battle.GetParties(Ptr); + var ptr = Creaturelib.Generated.Battle.GetParties(Ptr); _parties = new ReadOnlyNativePtrArray(ptr, (int) PartiesCount); return _parties; } @@ -83,61 +83,61 @@ namespace PkmnLibSharp.Battling public bool CanUse(BaseTurnChoice turnChoice) { byte b = 0; - Creaturelibbattling.Generated.Battle.CanUse(ref b, Ptr, turnChoice.Ptr).Assert(); + Creaturelib.Generated.Battle.CanUse(ref b, Ptr, turnChoice.Ptr).Assert(); return b == 1; } public bool TrySetChoice(BaseTurnChoice turnChoice) { byte b = 0; - Creaturelibbattling.Generated.Battle.TrySetChoice(ref b, Ptr, turnChoice.Ptr).Assert(); + Creaturelib.Generated.Battle.TrySetChoice(ref b, Ptr, turnChoice.Ptr).Assert(); return b == 1; } public void CheckChoicesSetAndRun() { - Creaturelibbattling.Generated.Battle.CheckChoicesSetAndRun(Ptr); + Creaturelib.Generated.Battle.CheckChoicesSetAndRun(Ptr); } public bool IsPokemonInField(Pokemon pokemon) { byte b = 0; - Creaturelibbattling.Generated.Battle.CreatureInField(ref b, Ptr, pokemon.Ptr).Assert(); + Creaturelib.Generated.Battle.CreatureInField(ref b, Ptr, pokemon.Ptr).Assert(); return b == 1; } public Pokemon GetPokemonInField(byte side, byte index) { var ptr = IntPtr.Zero; - Creaturelibbattling.Generated.Battle.GetCreature(ref ptr, Ptr, side, index).Assert(); + Creaturelib.Generated.Battle.GetCreature(ref ptr, Ptr, side, index).Assert(); return TryResolvePointer(ptr, out Pokemon pokemon) ? pokemon : new Pokemon(ptr); } public void ForceRecall(byte side, byte index) { - Creaturelibbattling.Generated.Battle.ForceRecall(Ptr, side, index).Assert(); + Creaturelib.Generated.Battle.ForceRecall(Ptr, side, index).Assert(); } public void SwitchPokemon(byte side, byte index, Pokemon newPokemon) { - Creaturelibbattling.Generated.Battle.SwitchCreature(Ptr, side, index, newPokemon.Ptr).Assert(); + Creaturelib.Generated.Battle.SwitchCreature(Ptr, side, index, newPokemon.Ptr).Assert(); } public bool CanSlotBeFilled(byte side, byte index) { byte b = 0; - Creaturelibbattling.Generated.Battle.CanSlotBeFilled(ref b, Ptr, side, index).Assert(); + Creaturelib.Generated.Battle.CanSlotBeFilled(ref b, Ptr, side, index).Assert(); return b == 1; } public void ValidateBattleState() { - Creaturelibbattling.Generated.Battle.ValidateBattleState(Ptr).Assert(); + Creaturelib.Generated.Battle.ValidateBattleState(Ptr).Assert(); } public Script GetVolatileScript(string key) { - var ptr = Creaturelibbattling.Generated.Battle.GetVolatileScript(Ptr, key.ToPtr()); + var ptr = Creaturelib.Generated.Battle.GetVolatileScript(Ptr, key.ToPtr()); if (TryResolvePointer(ptr, out Script script)) { return script; @@ -148,37 +148,37 @@ namespace PkmnLibSharp.Battling public void AddVolatileScript(string key) { - Creaturelibbattling.Generated.Battle.AddVolatileScriptByName(Ptr, key.ToPtr()).Assert(); + Creaturelib.Generated.Battle.AddVolatileScriptByName(Ptr, key.ToPtr()).Assert(); } public void AddVolatileScript(Script script) { - Creaturelibbattling.Generated.Battle.AddVolatileScript(Ptr, script.Ptr).Assert(); + Creaturelib.Generated.Battle.AddVolatileScript(Ptr, script.Ptr).Assert(); } public void RemoveVolatileScript(string key) { - Creaturelibbattling.Generated.Battle.RemoveVolatileScript(Ptr, key.ToPtr()).Assert(); + Creaturelib.Generated.Battle.RemoveVolatileScript(Ptr, key.ToPtr()).Assert(); } public void RemoveVolatileScript(Script script) { - Creaturelibbattling.Generated.Battle.RemoveVolatileScriptWithScript(Ptr, script.Ptr).Assert(); + Creaturelib.Generated.Battle.RemoveVolatileScriptWithScript(Ptr, script.Ptr).Assert(); } public bool HasVolatileScript(string key) { - return Creaturelibbattling.Generated.Battle.HasVolatileScript(Ptr, key.ToPtr()) == 1; + return Creaturelib.Generated.Battle.HasVolatileScript(Ptr, key.ToPtr()) == 1; } public void RegisterEventListener(BattleEventListener listener) { - Creaturelibbattling.Generated.Battle.RegisterEventListener(Ptr, listener.FunctionPtr).Assert(); + Creaturelib.Generated.Battle.RegisterEventListener(Ptr, listener.FunctionPtr).Assert(); } public void TriggerEventListener(BattleEvent evt) { - Creaturelibbattling.Generated.Battle.TriggerEventListener(Ptr, evt.Ptr).Assert(); + Creaturelib.Generated.Battle.TriggerEventListener(Ptr, evt.Ptr).Assert(); } public void SetWeather(string weatherName) diff --git a/PkmnLibSharp/Battling/Battle/BattleParty.cs b/PkmnLibSharp/Battling/Battle/BattleParty.cs index b9db01c..3e5a52f 100644 --- a/PkmnLibSharp/Battling/Battle/BattleParty.cs +++ b/PkmnLibSharp/Battling/Battle/BattleParty.cs @@ -10,26 +10,40 @@ namespace PkmnLibSharp.Battling public BattleParty(PokemonParty party, byte[] responsibleIndices) { var ptr = IntPtr.Zero; - Creaturelibbattling.Generated.BattleParty.Construct(ref ptr, party.Ptr, responsibleIndices.ArrayPtr(), + Creaturelib.Generated.BattleParty.Construct(ref ptr, party.Ptr, responsibleIndices.ArrayPtr(), (ulong) responsibleIndices.Length / 2).Assert(); Initialize(ptr); } + private PokemonParty _party; + public PokemonParty Party + { + get + { + if (_party != null) return _party; + var ptr = Creaturelib.Generated.BattleParty.GetParty(Ptr); + if (TryResolvePointer(ptr, out _party)) + return _party; + _party = new PokemonParty(ptr); + return _party; + } + } + public bool IsResponsibleForIndex(byte side, byte index) { byte result = 0; - Creaturelibbattling.Generated.BattleParty.IsResponsibleForIndex(ref result, Ptr, side, index).Assert(); + Creaturelib.Generated.BattleParty.IsResponsibleForIndex(ref result, Ptr, side, index).Assert(); return result == 1; } public bool HasPokemonNotInField() { - return Creaturelibbattling.Generated.BattleParty.HasCreaturesNotInField(Ptr) == 1; + return Creaturelib.Generated.BattleParty.HasCreaturesNotInField(Ptr) == 1; } protected override void DeletePtr() { - Creaturelibbattling.Generated.BattleParty.Destruct(Ptr); + Creaturelib.Generated.BattleParty.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Battling/Battle/BattleRandom.cs b/PkmnLibSharp/Battling/Battle/BattleRandom.cs index fbe1a9e..e09058b 100644 --- a/PkmnLibSharp/Battling/Battle/BattleRandom.cs +++ b/PkmnLibSharp/Battling/Battle/BattleRandom.cs @@ -5,38 +5,38 @@ namespace PkmnLibSharp.Battling { public class BattleRandom : PointerWrapper { - public BattleRandom() : base(Creaturelibbattling.Generated.BattleRandom.Construct()) + public BattleRandom() : base(Creaturelib.Generated.BattleRandom.Construct()) {} - public BattleRandom(ulong seed) : base(Creaturelibbattling.Generated.BattleRandom.ConstructWithSeed(seed)) + public BattleRandom(ulong seed) : base(Creaturelib.Generated.BattleRandom.ConstructWithSeed(seed)) {} internal BattleRandom(IntPtr ptr) : base(ptr){} - public ulong Seed => Creaturelibbattling.Generated.BattleRandom.GetSeed(Ptr); + public ulong Seed => Creaturelib.Generated.BattleRandom.GetSeed(Ptr); public bool EffectChance(float chance, ExecutingMove move,Pokemon target) { byte b = 0; - Creaturelibbattling.Generated.BattleRandom.EffectChance(ref b, Ptr, chance, move.Ptr, target.Ptr); + Creaturelib.Generated.BattleRandom.EffectChance(ref b, Ptr, chance, move.Ptr, target.Ptr); return b == 1; } public int Get() { - return Creaturelibbattling.Generated.BattleRandom.Get(Ptr); + return Creaturelib.Generated.BattleRandom.Get(Ptr); } public int Get(int max) { - return Creaturelibbattling.Generated.BattleRandom.GetMax(Ptr, max); + return Creaturelib.Generated.BattleRandom.GetMax(Ptr, max); } public int Get(int min, int max) { - return Creaturelibbattling.Generated.BattleRandom.GetMinMax(Ptr, min, max); + return Creaturelib.Generated.BattleRandom.GetMinMax(Ptr, min, max); } protected override void DeletePtr() { - Creaturelibbattling.Generated.BattleRandom.Destruct(Ptr); + Creaturelib.Generated.BattleRandom.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Battling/ChoiceTurn/BaseTurnChoice.cs b/PkmnLibSharp/Battling/ChoiceTurn/BaseTurnChoice.cs index 0b5e3bd..237353c 100644 --- a/PkmnLibSharp/Battling/ChoiceTurn/BaseTurnChoice.cs +++ b/PkmnLibSharp/Battling/ChoiceTurn/BaseTurnChoice.cs @@ -7,14 +7,14 @@ namespace PkmnLibSharp.Battling.ChoiceTurn { protected BaseTurnChoice(IntPtr ptr) : base(ptr){} - public TurnChoiceKind Kind => (TurnChoiceKind) Creaturelibbattling.Generated.BaseTurnChoice.GetKind(Ptr); + public TurnChoiceKind Kind => (TurnChoiceKind) Creaturelib.Generated.BaseTurnChoice.GetKind(Ptr); public Pokemon User { get { if (_user != null) return _user; - var ptr = Creaturelibbattling.Generated.BaseTurnChoice.GetUser(Ptr); + var ptr = Creaturelib.Generated.BaseTurnChoice.GetUser(Ptr); if (TryResolvePointer(ptr, out _user)) return _user; _user = new Pokemon(ptr); diff --git a/PkmnLibSharp/Battling/ChoiceTurn/FleeTurnChoice.cs b/PkmnLibSharp/Battling/ChoiceTurn/FleeTurnChoice.cs index 9b581ff..5e18adc 100644 --- a/PkmnLibSharp/Battling/ChoiceTurn/FleeTurnChoice.cs +++ b/PkmnLibSharp/Battling/ChoiceTurn/FleeTurnChoice.cs @@ -4,13 +4,13 @@ namespace PkmnLibSharp.Battling.ChoiceTurn { public class FleeTurnChoice : BaseTurnChoice { - public FleeTurnChoice(Pokemon user) : base(Creaturelibbattling.Generated.FleeTurnChoice.Construct(user.Ptr)) + public FleeTurnChoice(Pokemon user) : base(Creaturelib.Generated.FleeTurnChoice.Construct(user.Ptr)) { } protected override void DeletePtr() { - Creaturelibbattling.Generated.FleeTurnChoice.Destruct(Ptr); + Creaturelib.Generated.FleeTurnChoice.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Battling/ChoiceTurn/MoveTurnChoice.cs b/PkmnLibSharp/Battling/ChoiceTurn/MoveTurnChoice.cs index e661dc0..1a55eab 100644 --- a/PkmnLibSharp/Battling/ChoiceTurn/MoveTurnChoice.cs +++ b/PkmnLibSharp/Battling/ChoiceTurn/MoveTurnChoice.cs @@ -4,8 +4,8 @@ namespace PkmnLibSharp.Battling.ChoiceTurn { public class MoveTurnChoice : BaseTurnChoice { - public MoveTurnChoice(Pokemon user, LearnedMove move, byte side, byte index) - : base(Creaturelibbattling.Generated.AttackTurnChoice.Construct(user.Ptr, move.Ptr, side, index)) + public MoveTurnChoice(Pokemon user, LearnedMove move, byte targetSide, byte targetIndex) + : base(Creaturelib.Generated.AttackTurnChoice.Construct(user.Ptr, move.Ptr, targetSide, targetIndex)) { } @@ -14,7 +14,7 @@ namespace PkmnLibSharp.Battling.ChoiceTurn get { if (_move != null) return _move; - var ptr = Creaturelibbattling.Generated.AttackTurnChoice.GetAttack(Ptr); + var ptr = Creaturelib.Generated.AttackTurnChoice.GetAttack(Ptr); if (TryResolvePointer(ptr, out _move)) return _move; _move = new LearnedMove(ptr); @@ -27,13 +27,13 @@ namespace PkmnLibSharp.Battling.ChoiceTurn get { sbyte b = 0; - Creaturelibbattling.Generated.AttackTurnChoice.GetPriority(ref b, Ptr).Assert(); + Creaturelib.Generated.AttackTurnChoice.GetPriority(ref b, Ptr).Assert(); return b; } } - public byte TargetSide => Creaturelibbattling.Generated.AttackTurnChoice.GetTargetSideIndex(Ptr); - public byte TargetIndex => Creaturelibbattling.Generated.AttackTurnChoice.GetTargetCreatureIndex(Ptr); + public byte TargetSide => Creaturelib.Generated.AttackTurnChoice.GetTargetSideIndex(Ptr); + public byte TargetIndex => Creaturelib.Generated.AttackTurnChoice.GetTargetCreatureIndex(Ptr); // TODO: Move Script getter @@ -41,7 +41,7 @@ namespace PkmnLibSharp.Battling.ChoiceTurn protected override void DeletePtr() { - Creaturelibbattling.Generated.AttackTurnChoice.Destruct(Ptr); + Creaturelib.Generated.AttackTurnChoice.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Battling/ChoiceTurn/SwitchTurnChoice.cs b/PkmnLibSharp/Battling/ChoiceTurn/SwitchTurnChoice.cs index f4ce718..dd847b1 100644 --- a/PkmnLibSharp/Battling/ChoiceTurn/SwitchTurnChoice.cs +++ b/PkmnLibSharp/Battling/ChoiceTurn/SwitchTurnChoice.cs @@ -5,13 +5,13 @@ namespace PkmnLibSharp.Battling.ChoiceTurn public class SwitchTurnChoice : BaseTurnChoice { public SwitchTurnChoice(Pokemon user, Pokemon newPokemon) : base( - Creaturelibbattling.Generated.SwitchTurnChoice.Construct(user.Ptr, newPokemon.Ptr)) + Creaturelib.Generated.SwitchTurnChoice.Construct(user.Ptr, newPokemon.Ptr)) { } protected override void DeletePtr() { - Creaturelibbattling.Generated.SwitchTurnChoice.Destruct(Ptr); + Creaturelib.Generated.SwitchTurnChoice.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Battling/Events/BattleEventListener.cs b/PkmnLibSharp/Battling/Events/BattleEventListener.cs index 7c1367e..f1c5a45 100644 --- a/PkmnLibSharp/Battling/Events/BattleEventListener.cs +++ b/PkmnLibSharp/Battling/Events/BattleEventListener.cs @@ -1,6 +1,6 @@ using System; using System.Runtime.InteropServices; -using Creaturelibbattling; +using Creaturelib; namespace PkmnLibSharp.Battling.Events { @@ -29,7 +29,7 @@ namespace PkmnLibSharp.Battling.Events private static BattleEvent WrapEventPtr(IntPtr ptr) { - var evtType = Creaturelibbattling.Generated.EventData.GetKind(ptr); + var evtType = Creaturelib.Generated.EventData.GetKind(ptr); switch (evtType) { case EventDataKind.Damage: diff --git a/PkmnLibSharp/Battling/LearnedMove.cs b/PkmnLibSharp/Battling/LearnedMove.cs index dc00408..35f911a 100644 --- a/PkmnLibSharp/Battling/LearnedMove.cs +++ b/PkmnLibSharp/Battling/LearnedMove.cs @@ -1,6 +1,6 @@ using System; -using Creaturelibbattling; -using Creaturelibbattling.Generated; +using Creaturelib; +using Creaturelib.Generated; using PkmnLibSharp.Library.Moves; using PkmnLibSharp.Utilities; @@ -31,10 +31,10 @@ namespace PkmnLibSharp.Battling } } - public byte MaxUses => Creaturelibbattling.Generated.LearnedAttack.GetMaxUses(Ptr); - public byte RemainingUses => Creaturelibbattling.Generated.LearnedAttack.GetRemainingUses(Ptr); + public byte MaxUses => Creaturelib.Generated.LearnedAttack.GetMaxUses(Ptr); + public byte RemainingUses => Creaturelib.Generated.LearnedAttack.GetRemainingUses(Ptr); public MoveLearnMethod LearnMethod => - (MoveLearnMethod) Creaturelibbattling.Generated.LearnedAttack.GetLearnMethod(Ptr); + (MoveLearnMethod) Creaturelib.Generated.LearnedAttack.GetLearnMethod(Ptr); private MoveData _move; diff --git a/PkmnLibSharp/Battling/Library/BattleLibrary.cs b/PkmnLibSharp/Battling/Library/BattleLibrary.cs index 46f5dab..9541870 100644 --- a/PkmnLibSharp/Battling/Library/BattleLibrary.cs +++ b/PkmnLibSharp/Battling/Library/BattleLibrary.cs @@ -17,7 +17,7 @@ namespace PkmnLibSharp.Battling get { if (_static != null) return _static; - var ptr = Creaturelibbattling.Generated.BattleLibrary.GetStaticLib(Ptr); + var ptr = Creaturelib.Generated.BattleLibrary.GetStaticLib(Ptr); if (TryResolvePointer(ptr, out _static)) return _static; _static = new PokemonLibrary(ptr); @@ -30,7 +30,7 @@ namespace PkmnLibSharp.Battling get { if (_statCalculator != null) return _statCalculator; - var ptr = Creaturelibbattling.Generated.BattleLibrary.GetStatCalculator(Ptr); + var ptr = Creaturelib.Generated.BattleLibrary.GetStatCalculator(Ptr); if (TryResolvePointer(ptr, out _statCalculator)) return _statCalculator; _statCalculator = new StatCalculator(ptr); @@ -43,7 +43,7 @@ namespace PkmnLibSharp.Battling get { if (_damageLibrary != null) return _damageLibrary; - var ptr = Creaturelibbattling.Generated.BattleLibrary.GetDamageLibrary(Ptr); + var ptr = Creaturelib.Generated.BattleLibrary.GetDamageLibrary(Ptr); if (TryResolvePointer(ptr, out _damageLibrary)) return _damageLibrary; _damageLibrary = new DamageLibrary(ptr); @@ -56,7 +56,7 @@ namespace PkmnLibSharp.Battling get { if (_miscLibrary != null) return _miscLibrary; - var ptr = Creaturelibbattling.Generated.BattleLibrary.GetMiscLibrary(Ptr); + var ptr = Creaturelib.Generated.BattleLibrary.GetMiscLibrary(Ptr); if (TryResolvePointer(ptr, out _miscLibrary)) return _miscLibrary; _miscLibrary = new MiscLibrary(ptr); @@ -69,7 +69,7 @@ namespace PkmnLibSharp.Battling get { if (_experienceLibrary != null) return _experienceLibrary; - var ptr = Creaturelibbattling.Generated.BattleLibrary.GetExperienceLibrary(Ptr); + var ptr = Creaturelib.Generated.BattleLibrary.GetExperienceLibrary(Ptr); if (TryResolvePointer(ptr, out _experienceLibrary)) return _experienceLibrary; _experienceLibrary = new ExperienceLibrary(ptr); diff --git a/PkmnLibSharp/Battling/Library/DamageLibrary.cs b/PkmnLibSharp/Battling/Library/DamageLibrary.cs index 4a02306..0cb7713 100644 --- a/PkmnLibSharp/Battling/Library/DamageLibrary.cs +++ b/PkmnLibSharp/Battling/Library/DamageLibrary.cs @@ -15,7 +15,7 @@ namespace PkmnLibSharp.Battling public uint GetDamage(IntPtr attack, Pokemon target, byte hitIndex, IntPtr hitData) { uint val = 0; - Creaturelibbattling.Generated.DamageLibrary.GetDamage(ref val, Ptr, attack, target.Ptr, hitIndex, hitData) + Creaturelib.Generated.DamageLibrary.GetDamage(ref val, Ptr, attack, target.Ptr, hitIndex, hitData) .Assert(); return val; } @@ -23,7 +23,7 @@ namespace PkmnLibSharp.Battling public byte GetBasePower(IntPtr attack, Pokemon target, byte hitIndex, IntPtr hitData) { byte val = 0; - Creaturelibbattling.Generated.DamageLibrary.GetBasePower(ref val, Ptr, attack, target.Ptr, hitIndex, hitData) + Creaturelib.Generated.DamageLibrary.GetBasePower(ref val, Ptr, attack, target.Ptr, hitIndex, hitData) .Assert(); return val; } @@ -31,7 +31,7 @@ namespace PkmnLibSharp.Battling public float GetStatModifier(IntPtr attack, Pokemon target, byte hitIndex, IntPtr hitData) { float val = 0; - Creaturelibbattling.Generated.DamageLibrary.GetStatModifier(ref val, Ptr, attack, target.Ptr, hitIndex, hitData) + Creaturelib.Generated.DamageLibrary.GetStatModifier(ref val, Ptr, attack, target.Ptr, hitIndex, hitData) .Assert(); return val; } @@ -39,7 +39,7 @@ namespace PkmnLibSharp.Battling public float GetDamageModifier(IntPtr attack, Pokemon target, byte hitIndex, IntPtr hitData) { float val = 0; - Creaturelibbattling.Generated.DamageLibrary + Creaturelib.Generated.DamageLibrary .GetDamageModifier(ref val, Ptr, attack, target.Ptr, hitIndex, hitData) .Assert(); return val; diff --git a/PkmnLibSharp/Battling/Library/StatCalculator.cs b/PkmnLibSharp/Battling/Library/StatCalculator.cs index 2dc8218..498c15a 100644 --- a/PkmnLibSharp/Battling/Library/StatCalculator.cs +++ b/PkmnLibSharp/Battling/Library/StatCalculator.cs @@ -17,16 +17,16 @@ namespace PkmnLibSharp.Battling public uint CalculateFlatStat(Pokemon pokemon, Statistic stat) { uint val = 0; - Creaturelibbattling.Generated.BattleStatCalculator - .CalculateFlatStat(ref val, Ptr, pokemon.Ptr, (Creaturelibbattling.Statistic) stat).Assert(); + Creaturelib.Generated.BattleStatCalculator + .CalculateFlatStat(ref val, Ptr, pokemon.Ptr, (Creaturelib.Statistic) stat).Assert(); return val; } public uint CalculateBoostedStat(Pokemon pokemon, Statistic stat) { uint val = 0; - Creaturelibbattling.Generated.BattleStatCalculator - .CalculateBoostedStat(ref val, Ptr, pokemon.Ptr, (Creaturelibbattling.Statistic) stat).Assert(); + Creaturelib.Generated.BattleStatCalculator + .CalculateBoostedStat(ref val, Ptr, pokemon.Ptr, (Creaturelib.Statistic) stat).Assert(); return val; } diff --git a/PkmnLibSharp/Battling/MiscLibrary.cs b/PkmnLibSharp/Battling/MiscLibrary.cs index b952ebc..e6a81f4 100644 --- a/PkmnLibSharp/Battling/MiscLibrary.cs +++ b/PkmnLibSharp/Battling/MiscLibrary.cs @@ -15,21 +15,21 @@ namespace PkmnLibSharp.Battling public bool IsCritical(IntPtr move, Pokemon target, byte hitNumber) { byte b = 0; - Creaturelibbattling.Generated.MiscLibrary.IsCritical(ref b, Ptr, move, target.Ptr, hitNumber).Assert(); + Creaturelib.Generated.MiscLibrary.IsCritical(ref b, Ptr, move, target.Ptr, hitNumber).Assert(); return b == MarshalHelper.True; } public bool CanFlee(IntPtr switchChoice) { byte b = 0; - Creaturelibbattling.Generated.MiscLibrary.CanFlee(ref b, Ptr, switchChoice).Assert(); + Creaturelib.Generated.MiscLibrary.CanFlee(ref b, Ptr, switchChoice).Assert(); return b == MarshalHelper.True; } public IntPtr ReplacementAttack(Pokemon user, byte sideTarget, byte creatureTarget) { var b = IntPtr.Zero; - Creaturelibbattling.Generated.MiscLibrary.ReplacementAttack(ref b, Ptr, user.Ptr, sideTarget, creatureTarget) + Creaturelib.Generated.MiscLibrary.ReplacementAttack(ref b, Ptr, user.Ptr, sideTarget, creatureTarget) .Assert(); return b; } diff --git a/PkmnLibSharp/Battling/Pokemon.cs b/PkmnLibSharp/Battling/Pokemon.cs index 8435709..e90a8d5 100644 --- a/PkmnLibSharp/Battling/Pokemon.cs +++ b/PkmnLibSharp/Battling/Pokemon.cs @@ -40,7 +40,7 @@ namespace PkmnLibSharp.Battling protected internal override void Initialize(IntPtr ptr) { base.Initialize(ptr); - Library = new BattleLibrary(Creaturelibbattling.Generated.Creature.GetLibrary(Ptr)); + Library = new BattleLibrary(Creaturelib.Generated.Creature.GetLibrary(Ptr)); } public BattleLibrary Library { get; private set; } @@ -49,7 +49,7 @@ namespace PkmnLibSharp.Battling get { if (_species != null) return _species; - var ptr = Creaturelibbattling.Generated.Creature.GetSpecies(Ptr); + var ptr = Creaturelib.Generated.Creature.GetSpecies(Ptr); if (TryResolvePointer(ptr, out _species)) return _species; _species = new Species(ptr); @@ -61,7 +61,7 @@ namespace PkmnLibSharp.Battling get { if (_forme != null) return _forme; - var ptr = Creaturelibbattling.Generated.Creature.GetVariant(Ptr); + var ptr = Creaturelib.Generated.Creature.GetVariant(Ptr); if (TryResolvePointer(ptr, out _forme)) return _forme; _forme = new Forme(ptr); @@ -73,54 +73,54 @@ namespace PkmnLibSharp.Battling get { if (_displaySpecies != null) return _displaySpecies; - var ptr = Creaturelibbattling.Generated.Creature.GetDisplaySpecies(Ptr); + var ptr = Creaturelib.Generated.Creature.GetDisplaySpecies(Ptr); if (TryResolvePointer(ptr, out _displaySpecies)) return _displaySpecies; _displaySpecies = new Species(ptr); return _displaySpecies; } - set => Creaturelibbattling.Generated.Creature.SetDisplaySpecies(Ptr, value.Ptr); + set => Creaturelib.Generated.Creature.SetDisplaySpecies(Ptr, value.Ptr); } public Forme DisplayForme { get { if (_displayForme != null) return _displayForme; - var ptr = Creaturelibbattling.Generated.Creature.GetDisplayVariant(Ptr); + var ptr = Creaturelib.Generated.Creature.GetDisplayVariant(Ptr); if (TryResolvePointer(ptr, out _displayForme)) return _displayForme; _displayForme = new Forme(ptr); return _displayForme; } - set => Creaturelibbattling.Generated.Creature.SetDisplayVariant(Ptr, value.Ptr); + set => Creaturelib.Generated.Creature.SetDisplayVariant(Ptr, value.Ptr); } - public byte Level => Creaturelibbattling.Generated.Creature.GetLevel(Ptr); - public uint Experience => Creaturelibbattling.Generated.Creature.GetExperience(Ptr); - public Gender Gender => (Gender) Creaturelibbattling.Generated.Creature.GetGender(Ptr); - public byte Coloring => Creaturelibbattling.Generated.Creature.GetColoring(Ptr); + public byte Level => Creaturelib.Generated.Creature.GetLevel(Ptr); + public uint Experience => Creaturelib.Generated.Creature.GetExperience(Ptr); + public Gender Gender => (Gender) Creaturelib.Generated.Creature.GetGender(Ptr); + public byte Coloring => Creaturelib.Generated.Creature.GetColoring(Ptr); public bool IsShiny => Pkmnlib.Generated.Pokemon.IsShiny(Ptr) == 1; - public uint CurrentHealth => Creaturelibbattling.Generated.Creature.GetCurrentHealth(Ptr); - public uint MaxHealth => Creaturelibbattling.Generated.Creature.GetMaxHealth(Ptr); + public uint CurrentHealth => Creaturelib.Generated.Creature.GetCurrentHealth(Ptr); + public uint MaxHealth => Creaturelib.Generated.Creature.GetMaxHealth(Ptr); public string ActiveAbility { get { var ptr = IntPtr.Zero; - Creaturelibbattling.Generated.Creature.GetActiveTalent(Ptr, ref ptr).Assert(); + Creaturelib.Generated.Creature.GetActiveTalent(Ptr, ref ptr).Assert(); return ptr.PtrString(); } } // TODO: Change to wrapped - public IntPtr Battle => Creaturelibbattling.Generated.Creature.GetBattle(Ptr); + public IntPtr Battle => Creaturelib.Generated.Creature.GetBattle(Ptr); // TODO: Change to wrapped - public IntPtr BattleSide => Creaturelibbattling.Generated.Creature.GetBattleSide(Ptr); - public bool IsOnBattleField => Creaturelibbattling.Generated.Creature.IsOnBattleField(Ptr) == 1; + public IntPtr BattleSide => Creaturelib.Generated.Creature.GetBattleSide(Ptr); + public bool IsOnBattleField => Creaturelib.Generated.Creature.IsOnBattleField(Ptr) == 1; public Item HeldItem { get { - var ptr = Creaturelibbattling.Generated.Creature.GetHeldItem(Ptr); + var ptr = Creaturelib.Generated.Creature.GetHeldItem(Ptr); if (ptr == IntPtr.Zero) return null; if (!TryResolvePointer(ptr, out Item item)) { @@ -129,7 +129,7 @@ namespace PkmnLibSharp.Battling return item; } set => - Creaturelibbattling.Generated.Creature.SetHeldItemFromItem(Ptr, + Creaturelib.Generated.Creature.SetHeldItemFromItem(Ptr, value?.Ptr ?? IntPtr.Zero); } public string Nickname @@ -137,7 +137,7 @@ namespace PkmnLibSharp.Battling get { if (_nickname != null) return _nickname; - _nickname = Creaturelibbattling.Generated.Creature.GetNickname(Ptr).PtrString(); + _nickname = Creaturelib.Generated.Creature.GetNickname(Ptr).PtrString(); return _nickname; } } @@ -146,8 +146,8 @@ namespace PkmnLibSharp.Battling get { if (_moves != null) return _moves; - var movesLength = Creaturelibbattling.Generated.Creature.GetAttacksCount(Ptr); - var movesPtr = Creaturelibbattling.Generated.Creature.GetAttacks(Ptr); + var movesLength = Creaturelib.Generated.Creature.GetAttacksCount(Ptr); + var movesPtr = Creaturelib.Generated.Creature.GetAttacks(Ptr); _moves = new ReadOnlyNativePtrArray(movesPtr, (int) movesLength); return _moves; } @@ -211,89 +211,89 @@ namespace PkmnLibSharp.Battling public void ChangeForme(Forme forme) { _forme = null; - Creaturelibbattling.Generated.Creature.ChangeVariant(Ptr, forme.Ptr); + Creaturelib.Generated.Creature.ChangeVariant(Ptr, forme.Ptr); } public bool HasHeldItem(string itemName) { - return Creaturelibbattling.Generated.Creature.HasHeldItem(Ptr, itemName.ToPtr()) == 1; + return Creaturelib.Generated.Creature.HasHeldItem(Ptr, itemName.ToPtr()) == 1; } public void SetHeldItem(string item) { if (string.IsNullOrEmpty(item)) - Creaturelibbattling.Generated.Creature.SetHeldItemFromItem(Ptr, IntPtr.Zero); + Creaturelib.Generated.Creature.SetHeldItemFromItem(Ptr, IntPtr.Zero); else - Creaturelibbattling.Generated.Creature.SetHeldItem(Ptr, item.ToPtr()); + Creaturelib.Generated.Creature.SetHeldItem(Ptr, item.ToPtr()); } public bool HasType(string type) { var typeByte = Library.StaticLibrary.TypeLibrary.GetTypeId(type); - return Creaturelibbattling.Generated.Creature.HasType(Ptr, typeByte) == 1; + return Creaturelib.Generated.Creature.HasType(Ptr, typeByte) == 1; } public void ChangeLevelBy(sbyte amount) { - Creaturelibbattling.Generated.Creature.ChangeLevelBy(Ptr, amount).Assert(); + Creaturelib.Generated.Creature.ChangeLevelBy(Ptr, amount).Assert(); } public void AddExperience(uint experience) { - Creaturelibbattling.Generated.Creature.AddExperience(Ptr, experience).Assert(); + Creaturelib.Generated.Creature.AddExperience(Ptr, experience).Assert(); } public void Damage(uint damage, DamageSource source) { - Creaturelibbattling.Generated.Creature.Damage(Ptr, damage, (Creaturelibbattling.DamageSource) source); + Creaturelib.Generated.Creature.Damage(Ptr, damage, (Creaturelib.DamageSource) source); } public void Heal(uint damage, bool canRevive) { - Creaturelibbattling.Generated.Creature.Heal(Ptr, damage, canRevive.ToNative()); + Creaturelib.Generated.Creature.Heal(Ptr, damage, canRevive.ToNative()); } public void OverrideActiveAbility(string ability) { - Creaturelibbattling.Generated.Creature.OverrideActiveTalent(Ptr, ability.ToPtr()).Assert(); + Creaturelib.Generated.Creature.OverrideActiveTalent(Ptr, ability.ToPtr()).Assert(); } public void ClearVolatileScripts() { - Creaturelibbattling.Generated.Creature.ClearVolatileScripts(Ptr).Assert(); + Creaturelib.Generated.Creature.ClearVolatileScripts(Ptr).Assert(); } public void AddVolatileScript(string scriptName) { - Creaturelibbattling.Generated.Creature.AddVolatileScriptByName(Ptr, scriptName.ToPtr()).Assert(); + Creaturelib.Generated.Creature.AddVolatileScriptByName(Ptr, scriptName.ToPtr()).Assert(); } public void AddVolatileScript(Script script) { - Creaturelibbattling.Generated.Creature.AddVolatileScript(Ptr, script.Ptr).Assert(); + Creaturelib.Generated.Creature.AddVolatileScript(Ptr, script.Ptr).Assert(); } public void RemoveVolatileScript(string scriptName) { - Creaturelibbattling.Generated.Creature.RemoveVolatileScriptByName(Ptr, scriptName.ToPtr()).Assert(); + Creaturelib.Generated.Creature.RemoveVolatileScriptByName(Ptr, scriptName.ToPtr()).Assert(); } public void RemoveVolatileScript(Script script) { - Creaturelibbattling.Generated.Creature.RemoveVolatileScript(Ptr, script.Ptr).Assert(); + Creaturelib.Generated.Creature.RemoveVolatileScript(Ptr, script.Ptr).Assert(); } public bool HasVolatileScript(string scriptName) { - return Creaturelibbattling.Generated.Creature.HasVolatileScript(Ptr, scriptName.ToPtr()) == 1; + return Creaturelib.Generated.Creature.HasVolatileScript(Ptr, scriptName.ToPtr()) == 1; } public sbyte GetStatBoost(Statistic stat) { - return Creaturelibbattling.Generated.Creature.GetStatBoost(Ptr, (Creaturelibbattling.Statistic) stat); + return Creaturelib.Generated.Creature.GetStatBoost(Ptr, (Creaturelib.Statistic) stat); } public void ChangeStatBoost(Statistic stat, sbyte amount) { - Creaturelibbattling.Generated.Creature.ChangeStatBoost(Ptr, (Creaturelibbattling.Statistic) stat, amount); + Creaturelib.Generated.Creature.ChangeStatBoost(Ptr, (Creaturelib.Statistic) stat, amount); } public uint GetBaseStat(Statistic stat) { - return Creaturelibbattling.Generated.Creature.GetBaseStat(Ptr, (Creaturelibbattling.Statistic) stat); + return Creaturelib.Generated.Creature.GetBaseStat(Ptr, (Creaturelib.Statistic) stat); } public uint GetFlatStat(Statistic stat) { - return Creaturelibbattling.Generated.Creature.GetFlatStat(Ptr, (Creaturelibbattling.Statistic) stat); + return Creaturelib.Generated.Creature.GetFlatStat(Ptr, (Creaturelib.Statistic) stat); } public uint GetBoostedStat(Statistic stat) { - return Creaturelibbattling.Generated.Creature.GetBoostedStat(Ptr, (Creaturelibbattling.Statistic) stat); + return Creaturelib.Generated.Creature.GetBoostedStat(Ptr, (Creaturelib.Statistic) stat); } public byte GetIndividualValue(Statistic stat) { diff --git a/PkmnLibSharp/Battling/PokemonParty.cs b/PkmnLibSharp/Battling/PokemonParty.cs index 0f8b67d..51252b4 100644 --- a/PkmnLibSharp/Battling/PokemonParty.cs +++ b/PkmnLibSharp/Battling/PokemonParty.cs @@ -7,28 +7,30 @@ namespace PkmnLibSharp.Battling { private ReadOnlyNativePtrArray _party; - public PokemonParty(ulong size = 6) : base(Creaturelibbattling.Generated.CreatureParty.ConstructWithSize(size)) + internal PokemonParty(IntPtr ptr) : base(ptr){} + + public PokemonParty(byte size = 6) : base(Creaturelib.Generated.CreatureParty.ConstructWithSize(size)) {} public PokemonParty(Pokemon[] pokemon) : base( - Creaturelibbattling.Generated.CreatureParty.ConstructFromArray(pokemon.ArrayPtr(), (ulong) pokemon.Length)) + Creaturelib.Generated.CreatureParty.ConstructFromArray(pokemon.ArrayPtr(), (ulong) pokemon.Length)) {} public Pokemon GetAtIndex(ulong index) { var ptr = IntPtr.Zero; - Creaturelibbattling.Generated.CreatureParty.GetAtIndex(ref ptr, Ptr, index); + Creaturelib.Generated.CreatureParty.GetAtIndex(ref ptr, Ptr, index).Assert(); return TryResolvePointer(ptr, out Pokemon pkmn) ? pkmn : new Pokemon(ptr); } public void Switch(ulong indexA, ulong indexB) { - Creaturelibbattling.Generated.CreatureParty.Switch(Ptr, indexA, indexB); + Creaturelib.Generated.CreatureParty.Switch(Ptr, indexA, indexB); } public Pokemon SwapInto(ulong indexA, Pokemon pokemon) { - var ptr = Creaturelibbattling.Generated.CreatureParty.SwapInto(Ptr, indexA, pokemon.Ptr); + var ptr = Creaturelib.Generated.CreatureParty.SwapInto(Ptr, indexA, pokemon.Ptr); if (TryResolvePointer(ptr, out Pokemon newPokemon)) { return newPokemon; @@ -38,7 +40,7 @@ namespace PkmnLibSharp.Battling public bool HasAvailablePokemon() { - return Creaturelibbattling.Generated.CreatureParty.HasAvailableCreatures(Ptr) == 1; + return Creaturelib.Generated.CreatureParty.HasAvailableCreatures(Ptr) == 1; } public ReadOnlyNativePtrArray Party @@ -46,17 +48,17 @@ namespace PkmnLibSharp.Battling get { if (_party != null) return _party; - var ptr = Creaturelibbattling.Generated.CreatureParty.GetParty(Ptr); + var ptr = Creaturelib.Generated.CreatureParty.GetParty(Ptr); _party = new ReadOnlyNativePtrArray(ptr, (int) Length); return _party; } } - public ulong Length => Creaturelibbattling.Generated.CreatureParty.GetLength(Ptr); + public ulong Length => Creaturelib.Generated.CreatureParty.GetLength(Ptr); protected override void DeletePtr() { - Creaturelibbattling.Generated.CreatureParty.Destruct(Ptr); + Creaturelib.Generated.CreatureParty.Destruct(Ptr); } protected internal override void MarkAsDeleted() diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/AttackCategory.cs b/PkmnLibSharp/Generated/Creaturelib/AttackCategory.cs similarity index 89% rename from PkmnLibSharp/Generated/Creatureliblibrary/AttackCategory.cs rename to PkmnLibSharp/Generated/Creaturelib/AttackCategory.cs index 617a005..2c1067f 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/AttackCategory.cs +++ b/PkmnLibSharp/Generated/Creaturelib/AttackCategory.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creatureliblibrary +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum AttackCategory : byte diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/AttackData.cs b/PkmnLibSharp/Generated/Creaturelib/AttackData.cs similarity index 64% rename from PkmnLibSharp/Generated/Creatureliblibrary/AttackData.cs rename to PkmnLibSharp/Generated/Creaturelib/AttackData.cs index f31595b..8ffd0ef 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/AttackData.cs +++ b/PkmnLibSharp/Generated/Creaturelib/AttackData.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class AttackData { @@ -22,73 +22,73 @@ namespace Creatureliblibrary.Generated /// const char * * /// long unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Construct")] internal static extern byte Construct(ref IntPtr @out, IntPtr name, byte type, AttackCategory category, byte power, byte accuracy, byte baseUsage, AttackTarget target, sbyte priority, float effectChance, IntPtr effectName, IntPtr effectParameters, ulong effectParameterCount, IntPtr flags, ulong flagsCount); /// const AttackData * /// void - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetName")] internal static extern IntPtr GetName(IntPtr p); /// const AttackData * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetType")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasSecondaryEffect")] internal static extern byte HasSecondaryEffect(IntPtr p); /// const AttackData * /// float - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectChance")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectName")] internal static extern IntPtr GetSecondaryEffectName(IntPtr p); /// const AttackData * /// const char * /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasFlag")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasFlag")] internal static extern byte HasFlag(IntPtr p, IntPtr key); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/AttackLearnMethod.cs b/PkmnLibSharp/Generated/Creaturelib/AttackLearnMethod.cs similarity index 88% rename from PkmnLibSharp/Generated/Creaturelibbattling/AttackLearnMethod.cs rename to PkmnLibSharp/Generated/Creaturelib/AttackLearnMethod.cs index 63e6f94..640762f 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/AttackLearnMethod.cs +++ b/PkmnLibSharp/Generated/Creaturelib/AttackLearnMethod.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creaturelibbattling +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum AttackLearnMethod : int diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/AttackLibrary.cs b/PkmnLibSharp/Generated/Creaturelib/AttackLibrary.cs similarity index 65% rename from PkmnLibSharp/Generated/Creatureliblibrary/AttackLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/AttackLibrary.cs index 800dd14..07479bf 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/AttackLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/AttackLibrary.cs @@ -2,78 +2,78 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class AttackLibrary { /// AttackLibrary * & /// long unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Insert")] internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t); /// AttackLibrary * /// unsigned int /// AttackData * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_InsertWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Delete")] internal static extern byte Delete(IntPtr p, IntPtr name); /// AttackLibrary * /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_DeleteWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGet")] internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out); /// AttackLibrary * /// unsigned int /// const AttackData * & /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGetWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGetWithHash")] internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); /// AttackLibrary * /// const char * /// const AttackData * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Get")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Get")] internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out); /// AttackLibrary * /// unsigned int /// const AttackData * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/AttackTarget.cs similarity index 94% rename from PkmnLibSharp/Generated/Creatureliblibrary/AttackTarget.cs rename to PkmnLibSharp/Generated/Creaturelib/AttackTarget.cs index cb2a688..0f312ef 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/AttackTarget.cs +++ b/PkmnLibSharp/Generated/Creaturelib/AttackTarget.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creatureliblibrary +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum AttackTarget : byte diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/AttackTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelib/AttackTurnChoice.cs similarity index 59% rename from PkmnLibSharp/Generated/Creaturelibbattling/AttackTurnChoice.cs rename to PkmnLibSharp/Generated/Creaturelib/AttackTurnChoice.cs index 55b28b3..11c18a5 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/AttackTurnChoice.cs +++ b/PkmnLibSharp/Generated/Creaturelib/AttackTurnChoice.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class AttackTurnChoice { @@ -11,43 +11,43 @@ namespace Creaturelibbattling.Generated /// unsigned char /// unsigned char /// AttackTurnChoice * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Construct")] internal static extern IntPtr Construct(IntPtr user, IntPtr attack, byte sideIndex, byte targetIndex); /// AttackTurnChoice * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Destruct")] internal static extern void Destruct(IntPtr p); /// const AttackTurnChoice * /// LearnedAttack * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttack")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetKind")] internal static extern TurnChoiceKind GetKind(IntPtr p); /// signed char & /// AttackTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetPriority")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetPriority")] internal static extern byte GetPriority(ref sbyte @out, IntPtr p); /// const AttackTurnChoice * /// Script * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttackScript")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttackScript")] internal static extern IntPtr GetAttackScript(IntPtr p); /// const AttackTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetSideIndex")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetSideIndex")] internal static extern byte GetTargetSideIndex(IntPtr p); /// const AttackTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetCreatureIndex")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetCreatureIndex")] internal static extern byte GetTargetCreatureIndex(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BaseTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelib/BaseTurnChoice.cs similarity index 60% rename from PkmnLibSharp/Generated/Creaturelibbattling/BaseTurnChoice.cs rename to PkmnLibSharp/Generated/Creaturelib/BaseTurnChoice.cs index 1fbb7fc..857c609 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/BaseTurnChoice.cs +++ b/PkmnLibSharp/Generated/Creaturelib/BaseTurnChoice.cs @@ -2,18 +2,18 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class BaseTurnChoice { /// const BaseTurnChoice * /// TurnChoiceKind - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetKind")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetUser")] internal static extern IntPtr GetUser(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Battle.cs b/PkmnLibSharp/Generated/Creaturelib/Battle.cs similarity index 62% rename from PkmnLibSharp/Generated/Creaturelibbattling/Battle.cs rename to PkmnLibSharp/Generated/Creaturelib/Battle.cs index 1e5029e..a6ba14b 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/Battle.cs +++ b/PkmnLibSharp/Generated/Creaturelib/Battle.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class Battle { @@ -15,58 +15,58 @@ namespace Creaturelibbattling.Generated /// unsigned char /// long unsigned int /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Construct")] internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr partyArr, ulong numberOfParties, byte canFlee, byte numberOfSides, byte creaturesPerSide, ulong randomSeed); /// const Battle * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetLibrary")] internal static extern IntPtr GetLibrary(IntPtr p); /// bool & /// Battle * /// BaseTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanUse")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanUse")] internal static extern byte CanUse(ref byte @out, IntPtr p, IntPtr turnChoice); /// bool & /// Battle * /// BaseTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_TrySetChoice")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_TrySetChoice")] internal static extern byte TrySetChoice(ref byte @out, IntPtr p, IntPtr turnChoice); /// const Battle * /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanFlee")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanFlee")] internal static extern byte CanFlee(IntPtr p); /// Battle * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CheckChoicesSetAndRun")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CreatureInField")] internal static extern byte CreatureInField(ref byte @out, IntPtr p, IntPtr c); /// Creature * & @@ -74,14 +74,14 @@ namespace Creaturelibbattling.Generated /// unsigned char /// unsigned char /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCreature")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ForceRecall")] internal static extern byte ForceRecall(IntPtr p, byte side, byte target); /// Battle * @@ -89,7 +89,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// Creature * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_SwitchCreature")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_SwitchCreature")] internal static extern byte SwitchCreature(IntPtr p, byte side, byte target, IntPtr c); /// bool & @@ -97,95 +97,95 @@ namespace Creaturelibbattling.Generated /// unsigned char /// unsigned char /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanSlotBeFilled")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanSlotBeFilled")] internal static extern byte CanSlotBeFilled(ref byte @out, IntPtr p, byte side, byte target); /// Battle * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ValidateBattleState")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasEnded")] internal static extern byte HasEnded(IntPtr p); /// const Battle * /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasConclusiveResult")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasConclusiveResult")] internal static extern byte HasConclusiveResult(IntPtr p); /// const Battle * /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetWinningSide")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetWinningSide")] internal static extern byte GetWinningSide(IntPtr p); /// const Battle * /// long unsigned int - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSidesCount")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSides")] internal static extern IntPtr GetSides(IntPtr p); /// const Battle * /// long unsigned int - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetPartiesCount")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetPartiesCount")] internal static extern ulong GetPartiesCount(IntPtr p); /// const Battle * /// const BattleParty * * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetParties")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetParties")] internal static extern IntPtr GetParties(IntPtr p); /// Battle * /// const char * /// Script * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetVolatileScript")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetVolatileScript")] internal static extern IntPtr GetVolatileScript(IntPtr p, IntPtr key); /// Battle * /// const char * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScriptByName")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScriptByName")] internal static extern byte AddVolatileScriptByName(IntPtr p, IntPtr key); /// Battle * /// Script * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScript")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScript")] internal static extern byte RemoveVolatileScript(IntPtr p, IntPtr key); /// Battle * /// Script * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScriptWithScript")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasVolatileScript")] internal static extern byte HasVolatileScript(IntPtr p, IntPtr key); /// Battle * /// Function * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RegisterEventListener")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_TriggerEventListener")] internal static extern byte TriggerEventListener(IntPtr p, IntPtr data); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/BattleItemCategory.cs b/PkmnLibSharp/Generated/Creaturelib/BattleItemCategory.cs similarity index 91% rename from PkmnLibSharp/Generated/Creatureliblibrary/BattleItemCategory.cs rename to PkmnLibSharp/Generated/Creaturelib/BattleItemCategory.cs index c732429..c1cfa91 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/BattleItemCategory.cs +++ b/PkmnLibSharp/Generated/Creaturelib/BattleItemCategory.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creatureliblibrary +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum BattleItemCategory : byte diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleLibrary.cs b/PkmnLibSharp/Generated/Creaturelib/BattleLibrary.cs similarity index 64% rename from PkmnLibSharp/Generated/Creaturelibbattling/BattleLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/BattleLibrary.cs index 278a213..68a38dd 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/BattleLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/BattleLibrary.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class BattleLibrary { @@ -14,37 +14,37 @@ namespace Creaturelibbattling.Generated /// ScriptResolver * /// MiscLibrary * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/BattleParty.cs similarity index 58% rename from PkmnLibSharp/Generated/Creaturelibbattling/BattleParty.cs rename to PkmnLibSharp/Generated/Creaturelib/BattleParty.cs index 1ec7437..7c85e58 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/BattleParty.cs +++ b/PkmnLibSharp/Generated/Creaturelib/BattleParty.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class BattleParty { @@ -11,25 +11,30 @@ namespace Creaturelibbattling.Generated /// unsigned char * /// long unsigned int /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Destruct")] internal static extern void Destruct(IntPtr p); + /// const BattleParty * + /// CreatureParty * + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_GetParty")] + internal static extern IntPtr GetParty(IntPtr p); + /// bool & /// const BattleParty * /// unsigned char /// unsigned char /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_IsResponsibleForIndex")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_IsResponsibleForIndex")] internal static extern byte IsResponsibleForIndex(ref byte @out, IntPtr p, byte side, byte creature); /// const BattleParty * /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_HasCreaturesNotInField")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_HasCreaturesNotInField")] internal static extern byte HasCreaturesNotInField(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/BattleRandom.cs b/PkmnLibSharp/Generated/Creaturelib/BattleRandom.cs similarity index 59% rename from PkmnLibSharp/Generated/Creaturelibbattling/BattleRandom.cs rename to PkmnLibSharp/Generated/Creaturelib/BattleRandom.cs index 136e100..bd5a2ee 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/BattleRandom.cs +++ b/PkmnLibSharp/Generated/Creaturelib/BattleRandom.cs @@ -2,22 +2,22 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class BattleRandom { /// BattleRandom * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Destruct")] internal static extern void Destruct(IntPtr p); /// bool & @@ -26,30 +26,30 @@ namespace Creaturelibbattling.Generated /// ExecutingAttack * /// Creature * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_EffectChance")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_EffectChance")] internal static extern byte EffectChance(ref byte @out, IntPtr p, float chance, IntPtr attack, IntPtr target); /// BattleRandom * /// int - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Get")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/BattleSide.cs similarity index 60% rename from PkmnLibSharp/Generated/Creaturelibbattling/BattleSide.cs rename to PkmnLibSharp/Generated/Creaturelib/BattleSide.cs index 7b47432..30a2f8d 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/BattleSide.cs +++ b/PkmnLibSharp/Generated/Creaturelib/BattleSide.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class BattleSide { @@ -10,81 +10,81 @@ namespace Creaturelibbattling.Generated /// Battle * /// unsigned char /// BattleSide * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllChoicesSet")] internal static extern byte AllChoicesSet(IntPtr p); /// bool & /// BattleSide * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllPossibleSlotsFilled")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllPossibleSlotsFilled")] internal static extern byte AllPossibleSlotsFilled(ref byte @out, IntPtr p); /// BattleSide * /// BaseTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetChoice")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_IsDefeated")] internal static extern byte IsDefeated(IntPtr p); /// BattleSide * /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_HasFled")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_HasFled")] internal static extern byte HasFled(IntPtr p); /// BattleSide * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_MarkAsFled")] + [DllImport("CreatureLib", 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/Creaturelib/BattleStatCalculator.cs similarity index 64% rename from PkmnLibSharp/Generated/Creaturelibbattling/BattleStatCalculator.cs rename to PkmnLibSharp/Generated/Creaturelib/BattleStatCalculator.cs index a71e989..200a7cd 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/BattleStatCalculator.cs +++ b/PkmnLibSharp/Generated/Creaturelib/BattleStatCalculator.cs @@ -2,17 +2,17 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class BattleStatCalculator { /// const BattleStatCalculator * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Construct")] internal static extern IntPtr Construct(); /// const BattleStatCalculator * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Destruct")] internal static extern void Destruct(IntPtr p); /// unsigned int & @@ -20,7 +20,7 @@ namespace Creaturelibbattling.Generated /// Creature * /// Statistic /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateFlatStat")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateFlatStat")] internal static extern byte CalculateFlatStat(ref uint @out, IntPtr p, IntPtr creature, Statistic stat); /// unsigned int & @@ -28,7 +28,7 @@ namespace Creaturelibbattling.Generated /// Creature * /// Statistic /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateBoostedStat")] + [DllImport("CreatureLib", 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/Creatureliblibrary/C.cs b/PkmnLibSharp/Generated/Creaturelib/C.cs similarity index 58% rename from PkmnLibSharp/Generated/Creatureliblibrary/C.cs rename to PkmnLibSharp/Generated/Creaturelib/C.cs index 627f1d1..58074d7 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/C.cs +++ b/PkmnLibSharp/Generated/Creaturelib/C.cs @@ -2,12 +2,12 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class C { /// const char * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastException")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastException")] internal static extern IntPtr GetLastException(); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Creature.cs b/PkmnLibSharp/Generated/Creaturelib/Creature.cs similarity index 61% rename from PkmnLibSharp/Generated/Creaturelibbattling/Creature.cs rename to PkmnLibSharp/Generated/Creaturelib/Creature.cs index b9827a7..488a152 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/Creature.cs +++ b/PkmnLibSharp/Generated/Creaturelib/Creature.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class Creature { @@ -23,260 +23,260 @@ namespace Creaturelibbattling.Generated /// long unsigned int /// bool /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Construct")] + [DllImport("CreatureLib", 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, IntPtr nickname, byte secretTalent, byte talent, IntPtr attacks, ulong attacksNum, byte allowedExperienceGain); /// const Creature * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Destruct")] internal static extern void Destruct(IntPtr p); /// const Creature * /// const BattleLibrary * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLibrary")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLibrary")] internal static extern IntPtr GetLibrary(IntPtr p); /// const Creature * /// const CreatureSpecies * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetSpecies")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetVariant")] internal static extern IntPtr GetVariant(IntPtr p); /// Creature * /// const SpeciesVariant * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeVariant")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeVariant")] internal static extern byte ChangeVariant(IntPtr p, IntPtr variant); /// const Creature * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLevel")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItem")] internal static extern byte HasHeldItem(IntPtr p, IntPtr name); /// const Creature * /// unsigned int /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItemWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItemWithHash")] internal static extern byte HasHeldItemWithHash(IntPtr p, uint hash); /// const Creature * /// const Item * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetHeldItem")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItem")] internal static extern byte SetHeldItem(IntPtr p, IntPtr name); /// Creature * /// unsigned int /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_IsOnBattleField")] internal static extern byte IsOnBattleField(IntPtr p); /// Creature * /// const char * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetNickname")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetNickname")] internal static extern IntPtr GetNickname(IntPtr p); /// Creature * /// unsigned char /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasType")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasType")] internal static extern byte HasType(IntPtr p, byte type); /// const Creature * /// unsigned int - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetMaxHealth")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Heal")] internal static extern byte Heal(IntPtr p, uint health, byte canRevive); /// const Creature * /// const char * & /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetActiveTalent")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetActiveTalent")] internal static extern byte GetActiveTalent(IntPtr p, ref IntPtr @out); /// Creature * /// const char * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_OverrideActiveTalent")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_OverrideActiveTalent")] internal static extern byte OverrideActiveTalent(IntPtr p, IntPtr talent); /// Creature * /// unsigned int /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddExperience")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScriptByName")] internal static extern byte AddVolatileScriptByName(IntPtr p, IntPtr scriptName); /// Creature * /// Script * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScript")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScriptByName")] internal static extern byte RemoveVolatileScriptByName(IntPtr p, IntPtr scriptName); /// Creature * /// Script * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScript")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasVolatileScript")] internal static extern byte HasVolatileScript(IntPtr p, IntPtr scriptName); /// Creature * /// long unsigned int - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacksCount")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/CreatureParty.cs similarity index 61% rename from PkmnLibSharp/Generated/Creaturelibbattling/CreatureParty.cs rename to PkmnLibSharp/Generated/Creaturelib/CreatureParty.cs index 4c7fdd6..0d027ee 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/CreatureParty.cs +++ b/PkmnLibSharp/Generated/Creaturelib/CreatureParty.cs @@ -2,60 +2,60 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class CreatureParty { /// long unsigned int /// CreatureParty * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_ConstructWithSize")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Switch")] internal static extern byte Switch(IntPtr p, ulong a, ulong b); /// CreatureParty * /// long unsigned int /// Creature * /// Creature * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_SwapInto")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_SwapInto")] internal static extern IntPtr SwapInto(IntPtr p, ulong index, IntPtr creature); /// const CreatureParty * /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_HasAvailableCreatures")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_HasAvailableCreatures")] internal static extern byte HasAvailableCreatures(IntPtr p); /// const CreatureParty * /// long unsigned int - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetLength")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetParty")] internal static extern IntPtr GetParty(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/CreatureSpecies.cs b/PkmnLibSharp/Generated/Creaturelib/CreatureSpecies.cs similarity index 64% rename from PkmnLibSharp/Generated/Creatureliblibrary/CreatureSpecies.cs rename to PkmnLibSharp/Generated/Creaturelib/CreatureSpecies.cs index 8ea31ff..2308099 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/CreatureSpecies.cs +++ b/PkmnLibSharp/Generated/Creaturelib/CreatureSpecies.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class CreatureSpecies { @@ -14,90 +14,90 @@ namespace Creatureliblibrary.Generated /// const char * /// unsigned char /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Construct")] internal static extern byte Construct(ref IntPtr @out, ushort id, IntPtr name, IntPtr defaultVariant, float genderRatio, IntPtr growthRate, byte captureRate); /// const CreatureSpecies * /// void - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetName")] internal static extern IntPtr GetName(IntPtr p); /// const CreatureSpecies * /// const char * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGrowthRate")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGrowthRate")] internal static extern IntPtr GetGrowthRate(IntPtr p); /// const CreatureSpecies * /// const char * /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariant")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariant")] internal static extern byte HasVariant(IntPtr p, IntPtr name); /// const CreatureSpecies * /// unsigned int /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariantWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariantWithHash")] internal static extern byte HasVariantWithHash(IntPtr p, uint hash); /// const CreatureSpecies * /// const char * /// const SpeciesVariant * & /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariant")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariant")] internal static extern byte TryGetVariant(IntPtr p, IntPtr name, ref IntPtr @out); /// const CreatureSpecies * /// unsigned int /// const SpeciesVariant * & /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariantWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariantWithHash")] internal static extern byte 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariant")] internal static extern byte GetVariant(ref IntPtr @out, IntPtr p, IntPtr name); /// const SpeciesVariant * & /// const CreatureSpecies * /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantWithHash")] internal static extern byte GetVariantWithHash(ref IntPtr @out, IntPtr p, uint hash); /// CreatureSpecies * /// const char * /// SpeciesVariant * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_SetVariant")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_SetVariant")] internal static extern byte SetVariant(IntPtr p, IntPtr name, IntPtr variant); /// CreatureSpecies * /// Random * /// Gender - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetRandomGender")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetRandomGender")] internal static extern Gender GetRandomGender(IntPtr p, IntPtr random); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/DamageEvent.cs b/PkmnLibSharp/Generated/Creaturelib/DamageEvent.cs similarity index 57% rename from PkmnLibSharp/Generated/Creaturelibbattling/DamageEvent.cs rename to PkmnLibSharp/Generated/Creaturelib/DamageEvent.cs index 8a41f6a..b1ba8a0 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/DamageEvent.cs +++ b/PkmnLibSharp/Generated/Creaturelib/DamageEvent.cs @@ -2,28 +2,28 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class DamageEvent { /// const DamageEvent * /// Creature * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetCreature")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/DamageLibrary.cs similarity index 73% rename from PkmnLibSharp/Generated/Creaturelibbattling/DamageLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/DamageLibrary.cs index dcae9c2..5bf64a6 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/DamageLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/DamageLibrary.cs @@ -2,17 +2,17 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class DamageLibrary { /// const DamageLibrary * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Construct")] internal static extern IntPtr Construct(); /// const DamageLibrary * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Destruct")] internal static extern void Destruct(IntPtr p); /// unsigned int & @@ -22,7 +22,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// HitData * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamage")] + [DllImport("CreatureLib", 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 & @@ -32,7 +32,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// HitData * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetBasePower")] + [DllImport("CreatureLib", 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 & @@ -42,7 +42,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// HitData * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetStatModifier")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetStatModifier")] internal static extern byte GetStatModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData); /// float & @@ -52,7 +52,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// HitData * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamageModifier")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamageModifier")] internal static extern byte 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/Creaturelib/DamageSource.cs similarity index 87% rename from PkmnLibSharp/Generated/Creaturelibbattling/DamageSource.cs rename to PkmnLibSharp/Generated/Creaturelib/DamageSource.cs index c97d9d7..d3dbe6c 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/DamageSource.cs +++ b/PkmnLibSharp/Generated/Creaturelib/DamageSource.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creaturelibbattling +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum DamageSource : byte diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/DataLibrary.cs b/PkmnLibSharp/Generated/Creaturelib/DataLibrary.cs similarity index 63% rename from PkmnLibSharp/Generated/Creatureliblibrary/DataLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/DataLibrary.cs index 09bd126..70eee04 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/DataLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/DataLibrary.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class DataLibrary { @@ -14,42 +14,42 @@ namespace Creatureliblibrary.Generated /// GrowthRateLibrary * /// TypeLibrary * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetTypeLibrary")] internal static extern IntPtr GetTypeLibrary(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/DisplayTextEvent.cs b/PkmnLibSharp/Generated/Creaturelib/DisplayTextEvent.cs similarity index 63% rename from PkmnLibSharp/Generated/Creaturelibbattling/DisplayTextEvent.cs rename to PkmnLibSharp/Generated/Creaturelib/DisplayTextEvent.cs index fcaf5f9..68e6aee 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/DisplayTextEvent.cs +++ b/PkmnLibSharp/Generated/Creaturelib/DisplayTextEvent.cs @@ -2,13 +2,13 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class DisplayTextEvent { /// const DisplayTextEvent * /// const char * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DisplayTextEvent_GetText")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DisplayTextEvent_GetText")] internal static extern IntPtr GetText(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/EffectParameter.cs b/PkmnLibSharp/Generated/Creaturelib/EffectParameter.cs similarity index 58% rename from PkmnLibSharp/Generated/Creatureliblibrary/EffectParameter.cs rename to PkmnLibSharp/Generated/Creaturelib/EffectParameter.cs index 87e3b51..07956a0 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/EffectParameter.cs +++ b/PkmnLibSharp/Generated/Creaturelib/EffectParameter.cs @@ -2,62 +2,62 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class EffectParameter { /// bool /// EffectParameter * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromBool")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromBool")] internal static extern IntPtr FromBool(byte b); /// long int /// EffectParameter * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromInt")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromInt")] internal static extern IntPtr FromInt(long i); /// float /// EffectParameter * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromFloat")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromFloat")] internal static extern IntPtr FromFloat(float f); /// const char * /// EffectParameter * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromString")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromString")] internal static extern IntPtr FromString(IntPtr c); /// const EffectParameter * /// void - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_Destruct")] internal static extern void Destruct(IntPtr p); /// const EffectParameter * /// EffectParameterType - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_GetType")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_GetType")] internal static extern EffectParameterType GetType(IntPtr p); /// const EffectParameter * /// bool & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsBool")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsBool")] internal static extern byte AsBool(IntPtr p, ref byte @out); /// const EffectParameter * /// long int & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsInt")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsInt")] internal static extern byte AsInt(IntPtr p, ref long @out); /// const EffectParameter * /// float & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsFloat")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsFloat")] internal static extern byte AsFloat(IntPtr p, ref float @out); /// const EffectParameter * /// const char * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsString")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsString")] internal static extern byte AsString(IntPtr p, ref IntPtr @out); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/EffectParameterType.cs b/PkmnLibSharp/Generated/Creaturelib/EffectParameterType.cs similarity index 90% rename from PkmnLibSharp/Generated/Creatureliblibrary/EffectParameterType.cs rename to PkmnLibSharp/Generated/Creaturelib/EffectParameterType.cs index c002a33..b59e57d 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/EffectParameterType.cs +++ b/PkmnLibSharp/Generated/Creaturelib/EffectParameterType.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creatureliblibrary +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum EffectParameterType : byte diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/EventData.cs b/PkmnLibSharp/Generated/Creaturelib/EventData.cs similarity index 59% rename from PkmnLibSharp/Generated/Creaturelibbattling/EventData.cs rename to PkmnLibSharp/Generated/Creaturelib/EventData.cs index f336290..d40808c 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/EventData.cs +++ b/PkmnLibSharp/Generated/Creaturelib/EventData.cs @@ -2,18 +2,18 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class EventData { /// const EventData * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EventData_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/EventDataKind.cs similarity index 90% rename from PkmnLibSharp/Generated/Creaturelibbattling/EventDataKind.cs rename to PkmnLibSharp/Generated/Creaturelib/EventDataKind.cs index 6899b1a..a0a7a88 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/EventDataKind.cs +++ b/PkmnLibSharp/Generated/Creaturelib/EventDataKind.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creaturelibbattling +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum EventDataKind : byte diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ExecutingAttack.cs b/PkmnLibSharp/Generated/Creaturelib/ExecutingAttack.cs similarity index 66% rename from PkmnLibSharp/Generated/Creaturelibbattling/ExecutingAttack.cs rename to PkmnLibSharp/Generated/Creaturelib/ExecutingAttack.cs index 1873d18..8562a07 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/ExecutingAttack.cs +++ b/PkmnLibSharp/Generated/Creaturelib/ExecutingAttack.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class ExecutingAttack { @@ -14,12 +14,12 @@ namespace Creaturelibbattling.Generated /// LearnedAttack * /// Script * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")] internal static extern void Destruct(IntPtr p); /// HitData * & @@ -27,23 +27,23 @@ namespace Creaturelibbattling.Generated /// Creature * /// unsigned char /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetHitData")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_IsCreatureTarget")] internal static extern byte IsCreatureTarget(IntPtr p, IntPtr target); /// ExecutingAttack * /// Creature * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetUser")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/ExperienceLibrary.cs similarity index 63% rename from PkmnLibSharp/Generated/Creaturelibbattling/ExperienceLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/ExperienceLibrary.cs index 1e040c3..f367c92 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/ExperienceLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/ExperienceLibrary.cs @@ -2,17 +2,17 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class ExperienceLibrary { /// const ExperienceLibrary * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Construct")] internal static extern IntPtr Construct(); /// const ExperienceLibrary * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Destruct")] internal static extern void Destruct(IntPtr p); /// const ExperienceLibrary * @@ -20,7 +20,7 @@ namespace Creaturelibbattling.Generated /// Creature * * /// long unsigned int /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_HandleExperienceGain")] + [DllImport("CreatureLib", 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/Creatureliblibrary/ExternGrowthRate.cs b/PkmnLibSharp/Generated/Creaturelib/ExternGrowthRate.cs similarity index 66% rename from PkmnLibSharp/Generated/Creatureliblibrary/ExternGrowthRate.cs rename to PkmnLibSharp/Generated/Creaturelib/ExternGrowthRate.cs index 4a02c9e..133cae9 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/ExternGrowthRate.cs +++ b/PkmnLibSharp/Generated/Creaturelib/ExternGrowthRate.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class ExternGrowthRate { @@ -10,12 +10,12 @@ namespace Creatureliblibrary.Generated /// Function * /// Function * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Construct")] internal static extern byte Construct(ref IntPtr @out, IntPtr calcLevel, IntPtr calcExperience); /// const ExternGrowthRate * /// void - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Destruct")] internal static extern void Destruct(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/FaintEvent.cs b/PkmnLibSharp/Generated/Creaturelib/FaintEvent.cs similarity index 63% rename from PkmnLibSharp/Generated/Creaturelibbattling/FaintEvent.cs rename to PkmnLibSharp/Generated/Creaturelib/FaintEvent.cs index 5dbda89..e4708ad 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/FaintEvent.cs +++ b/PkmnLibSharp/Generated/Creaturelib/FaintEvent.cs @@ -2,13 +2,13 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class FaintEvent { /// const FaintEvent * /// Creature * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FaintEvent_GetCreature")] + [DllImport("CreatureLib", 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/Creaturelib/FleeTurnChoice.cs similarity index 58% rename from PkmnLibSharp/Generated/Creaturelibbattling/FleeTurnChoice.cs rename to PkmnLibSharp/Generated/Creaturelib/FleeTurnChoice.cs index 2e8d581..b834ea6 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/FleeTurnChoice.cs +++ b/PkmnLibSharp/Generated/Creaturelib/FleeTurnChoice.cs @@ -2,18 +2,18 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class FleeTurnChoice { /// Creature * /// FleeTurnChoice * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Construct")] internal static extern IntPtr Construct(IntPtr user); /// AttackTurnChoice * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Destruct")] internal static extern void Destruct(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/Gender.cs b/PkmnLibSharp/Generated/Creaturelib/Gender.cs similarity index 89% rename from PkmnLibSharp/Generated/Creatureliblibrary/Gender.cs rename to PkmnLibSharp/Generated/Creaturelib/Gender.cs index 98d03b9..c2ac542 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/Gender.cs +++ b/PkmnLibSharp/Generated/Creaturelib/Gender.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creatureliblibrary +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum Gender : byte diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRate.cs b/PkmnLibSharp/Generated/Creaturelib/GrowthRate.cs similarity index 66% rename from PkmnLibSharp/Generated/Creatureliblibrary/GrowthRate.cs rename to PkmnLibSharp/Generated/Creaturelib/GrowthRate.cs index c174008..ebd0a10 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRate.cs +++ b/PkmnLibSharp/Generated/Creaturelib/GrowthRate.cs @@ -2,27 +2,27 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class GrowthRate { /// const GrowthRate * /// void - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/GrowthRateLibrary.cs similarity index 69% rename from PkmnLibSharp/Generated/Creatureliblibrary/GrowthRateLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/GrowthRateLibrary.cs index 8e446d4..ffa1d15 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/GrowthRateLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/GrowthRateLibrary.cs @@ -2,18 +2,18 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class GrowthRateLibrary { /// long unsigned int /// GrowthRateLibrary * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Destruct")] internal static extern void Destruct(IntPtr p); /// unsigned char & @@ -21,7 +21,7 @@ namespace Creatureliblibrary.Generated /// const char * /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevel")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevel")] internal static extern byte CalculateLevel(ref byte @out, IntPtr library, IntPtr growthRate, uint experience); /// unsigned char & @@ -29,7 +29,7 @@ namespace Creatureliblibrary.Generated /// unsigned int /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevelWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevelWithHash")] internal static extern byte CalculateLevelWithHash(ref byte @out, IntPtr library, uint growthRateHash, uint experience); /// unsigned int & @@ -37,7 +37,7 @@ namespace Creatureliblibrary.Generated /// const char * /// unsigned char /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperience")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperience")] internal static extern byte CalculateExperience(ref uint @out, IntPtr library, IntPtr growthRate, byte level); /// unsigned int & @@ -45,21 +45,21 @@ namespace Creatureliblibrary.Generated /// unsigned int /// unsigned char /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperienceWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRate")] internal static extern byte AddGrowthRate(IntPtr library, IntPtr growthRateName, IntPtr growthRate); /// GrowthRateLibrary * /// unsigned int /// GrowthRate * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRateWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRateWithHash")] internal static extern byte AddGrowthRateWithHash(IntPtr library, uint growthRateHash, IntPtr growthRate); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/HealEvent.cs b/PkmnLibSharp/Generated/Creaturelib/HealEvent.cs similarity index 57% rename from PkmnLibSharp/Generated/Creaturelibbattling/HealEvent.cs rename to PkmnLibSharp/Generated/Creaturelib/HealEvent.cs index 379e20b..0154775 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/HealEvent.cs +++ b/PkmnLibSharp/Generated/Creaturelib/HealEvent.cs @@ -2,23 +2,23 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class HealEvent { /// const HealEvent * /// Creature * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetCreature")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/HitData.cs similarity index 57% rename from PkmnLibSharp/Generated/Creaturelibbattling/HitData.cs rename to PkmnLibSharp/Generated/Creaturelib/HitData.cs index 4b17c22..b5ad32e 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/HitData.cs +++ b/PkmnLibSharp/Generated/Creaturelib/HitData.cs @@ -2,63 +2,63 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class HitData { /// const HitData * /// bool - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_IsCritical")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_IsCritical")] internal static extern byte IsCritical(IntPtr p); /// const HitData * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetBasePower")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetCritical")] internal static extern void SetCritical(IntPtr p, byte val); /// HitData * /// unsigned char /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetBasePower")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetType")] internal static extern void SetType(IntPtr p, byte val); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/Item.cs b/PkmnLibSharp/Generated/Creaturelib/Item.cs similarity index 63% rename from PkmnLibSharp/Generated/Creatureliblibrary/Item.cs rename to PkmnLibSharp/Generated/Creaturelib/Item.cs index f9d1c09..8085bb1 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/Item.cs +++ b/PkmnLibSharp/Generated/Creaturelib/Item.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class Item { @@ -13,38 +13,38 @@ namespace Creatureliblibrary.Generated /// const char * * /// long unsigned int /// Item * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Construct")] internal static extern IntPtr Construct(IntPtr name, ItemCategory category, BattleItemCategory battleCategory, int price, IntPtr flags, ulong flagsCount); /// const Item * /// void - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetName")] internal static extern IntPtr GetName(IntPtr p); /// const Item * /// ItemCategory - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetCategory")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_HasFlag")] internal static extern byte HasFlag(IntPtr p, IntPtr key); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/ItemCategory.cs b/PkmnLibSharp/Generated/Creaturelib/ItemCategory.cs similarity index 92% rename from PkmnLibSharp/Generated/Creatureliblibrary/ItemCategory.cs rename to PkmnLibSharp/Generated/Creaturelib/ItemCategory.cs index aaedb5b..137b4b1 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/ItemCategory.cs +++ b/PkmnLibSharp/Generated/Creaturelib/ItemCategory.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creatureliblibrary +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum ItemCategory : byte diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/ItemLibrary.cs b/PkmnLibSharp/Generated/Creaturelib/ItemLibrary.cs similarity index 64% rename from PkmnLibSharp/Generated/Creatureliblibrary/ItemLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/ItemLibrary.cs index f01152a..6029aef 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/ItemLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/ItemLibrary.cs @@ -2,77 +2,77 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class ItemLibrary { /// long unsigned int /// const ItemLibrary * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Insert")] internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t); /// ItemLibrary * /// unsigned int /// Item * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_InsertWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Delete")] internal static extern byte Delete(IntPtr p, IntPtr name); /// ItemLibrary * /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_DeleteWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGet")] internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out); /// ItemLibrary * /// unsigned int /// const Item * & /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGetWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGetWithHash")] internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); /// ItemLibrary * /// const char * /// const Item * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Get")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Get")] internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out); /// ItemLibrary * /// unsigned int /// const Item * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/LearnableAttacks.cs similarity index 63% rename from PkmnLibSharp/Generated/Creatureliblibrary/LearnableAttacks.cs rename to PkmnLibSharp/Generated/Creaturelib/LearnableAttacks.cs index 2f64261..313c1af 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/LearnableAttacks.cs +++ b/PkmnLibSharp/Generated/Creaturelib/LearnableAttacks.cs @@ -2,38 +2,38 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class LearnableAttacks { /// LearnableAttacks * & /// long unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetAttacksForLevelCount")] internal static extern ulong GetAttacksForLevelCount(IntPtr p, byte level); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/LearnedAttack.cs b/PkmnLibSharp/Generated/Creaturelib/LearnedAttack.cs similarity index 59% rename from PkmnLibSharp/Generated/Creaturelibbattling/LearnedAttack.cs rename to PkmnLibSharp/Generated/Creaturelib/LearnedAttack.cs index 974eaa6..93b7452 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/LearnedAttack.cs +++ b/PkmnLibSharp/Generated/Creaturelib/LearnedAttack.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class LearnedAttack { @@ -11,55 +11,55 @@ namespace Creaturelibbattling.Generated /// unsigned char /// AttackLearnMethod /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_TryUse")] internal static extern byte TryUse(IntPtr p, byte uses); /// LearnedAttack * /// unsigned char /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_DecreaseUses")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_RestoreAllUses")] internal static extern void RestoreAllUses(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/LibrarySettings.cs b/PkmnLibSharp/Generated/Creaturelib/LibrarySettings.cs similarity index 59% rename from PkmnLibSharp/Generated/Creatureliblibrary/LibrarySettings.cs rename to PkmnLibSharp/Generated/Creaturelib/LibrarySettings.cs index 5a4748c..b1e4bd3 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/LibrarySettings.cs +++ b/PkmnLibSharp/Generated/Creaturelib/LibrarySettings.cs @@ -2,29 +2,29 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class LibrarySettings { /// unsigned char /// unsigned char /// const LibrarySettings * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/LookupGrowthRate.cs similarity index 63% rename from PkmnLibSharp/Generated/Creatureliblibrary/LookupGrowthRate.cs rename to PkmnLibSharp/Generated/Creaturelib/LookupGrowthRate.cs index 17be155..e410eea 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/LookupGrowthRate.cs +++ b/PkmnLibSharp/Generated/Creaturelib/LookupGrowthRate.cs @@ -2,19 +2,19 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class LookupGrowthRate { /// unsigned int * /// long unsigned int /// GrowthRate * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Construct")] internal static extern IntPtr Construct(IntPtr experiencePerLevel, ulong count); /// const LookupGrowthRate * /// void - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Destruct")] internal static extern void Destruct(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/MiscLibrary.cs b/PkmnLibSharp/Generated/Creaturelib/MiscLibrary.cs similarity index 68% rename from PkmnLibSharp/Generated/Creaturelibbattling/MiscLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/MiscLibrary.cs index 9f90ceb..79db629 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/MiscLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/MiscLibrary.cs @@ -2,17 +2,17 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class MiscLibrary { /// MiscLibrary * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Construct")] internal static extern IntPtr Construct(); /// const MiscLibrary * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Destruct")] internal static extern void Destruct(IntPtr p); /// bool & @@ -21,14 +21,14 @@ namespace Creaturelibbattling.Generated /// Creature * /// unsigned char /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_IsCritical")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_IsCritical")] internal static extern byte IsCritical(ref byte @out, IntPtr p, IntPtr attack, IntPtr target, byte hit); /// bool & /// MiscLibrary * /// FleeTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_CanFlee")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_CanFlee")] internal static extern byte CanFlee(ref byte @out, IntPtr p, IntPtr switchChoice); /// BaseTurnChoice * & @@ -37,7 +37,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// unsigned char /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_ReplacementAttack")] + [DllImport("CreatureLib", 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/Creaturelib/PassTurnChoice.cs similarity index 58% rename from PkmnLibSharp/Generated/Creaturelibbattling/PassTurnChoice.cs rename to PkmnLibSharp/Generated/Creaturelib/PassTurnChoice.cs index 5a54152..a10c7da 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/PassTurnChoice.cs +++ b/PkmnLibSharp/Generated/Creaturelib/PassTurnChoice.cs @@ -2,18 +2,18 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class PassTurnChoice { /// Creature * /// PassTurnChoice * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Construct")] internal static extern IntPtr Construct(IntPtr user); /// AttackTurnChoice * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Destruct")] internal static extern void Destruct(IntPtr p); } diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Script.cs b/PkmnLibSharp/Generated/Creaturelib/Script.cs similarity index 70% rename from PkmnLibSharp/Generated/Creaturelibbattling/Script.cs rename to PkmnLibSharp/Generated/Creaturelib/Script.cs index 4805059..20a58f3 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/Script.cs +++ b/PkmnLibSharp/Generated/Creaturelib/Script.cs @@ -2,68 +2,68 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class Script { /// Script * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_GetName")] internal static extern IntPtr GetName(IntPtr p); /// Script * /// const BaseTurnChoice * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeTurn")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeTurn")] internal static extern byte OnBeforeTurn(IntPtr p, IntPtr choice); /// Script * /// AttackTurnChoice * /// StringView * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttack")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeAttack")] internal static extern byte OnBeforeAttack(IntPtr p, IntPtr attack); /// Script * @@ -71,7 +71,7 @@ namespace Creaturelibbattling.Generated /// Creature * /// bool * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailIncomingAttack")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailIncomingAttack")] internal static extern byte FailIncomingAttack(IntPtr p, IntPtr attack, IntPtr target, IntPtr outResult); /// Script * @@ -79,14 +79,14 @@ namespace Creaturelibbattling.Generated /// Creature * /// bool * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_IsInvulnerable")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnAttackMiss")] internal static extern byte OnAttackMiss(IntPtr p, IntPtr attack, IntPtr target); /// Script * @@ -95,7 +95,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// unsigned char * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttackType")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttackType")] internal static extern byte ChangeAttackType(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outType); /// Script * @@ -104,7 +104,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// unsigned char * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideBasePower")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideBasePower")] internal static extern byte OverrideBasePower(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr basePower); /// Script * @@ -113,7 +113,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// Creature * * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeDamageStatsUser")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeDamageStatsUser")] internal static extern byte ChangeDamageStatsUser(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr statsUser); /// Script * @@ -122,7 +122,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// bool * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassDefensiveStat")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassDefensiveStat")] internal static extern byte BypassDefensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass); /// Script * @@ -131,7 +131,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// bool * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassOffensiveStat")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassOffensiveStat")] internal static extern byte BypassOffensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass); /// Script * @@ -140,7 +140,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// float * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyStatModifier")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyStatModifier")] internal static extern byte ModifyStatModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier); /// Script * @@ -149,7 +149,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// float * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyDamageModifier")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyDamageModifier")] internal static extern byte ModifyDamageModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier); /// Script * @@ -158,7 +158,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// unsigned int * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideDamage")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideDamage")] internal static extern byte OverrideDamage(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr damage); /// Script * @@ -167,7 +167,7 @@ namespace Creaturelibbattling.Generated /// unsigned char /// bool * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSecondaryEffects")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSecondaryEffects")] internal static extern byte PreventSecondaryEffects(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outResult); /// Script * @@ -175,21 +175,21 @@ namespace Creaturelibbattling.Generated /// Creature * /// unsigned char /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnSecondaryEffect")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSelfSwitch")] internal static extern byte PreventSelfSwitch(IntPtr p, IntPtr choice, IntPtr outResult); /// Script * @@ -197,7 +197,7 @@ namespace Creaturelibbattling.Generated /// Creature * /// float * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyEffectChance")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyEffectChance")] internal static extern byte ModifyEffectChance(IntPtr p, IntPtr attack, IntPtr target, IntPtr chance); /// Script * @@ -205,7 +205,7 @@ namespace Creaturelibbattling.Generated /// Creature * /// float * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyIncomingEffectChance")] + [DllImport("CreatureLib", 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/Creaturelib/ScriptCategory.cs similarity index 91% rename from PkmnLibSharp/Generated/Creaturelibbattling/ScriptCategory.cs rename to PkmnLibSharp/Generated/Creaturelib/ScriptCategory.cs index aca9931..5e06b06 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/ScriptCategory.cs +++ b/PkmnLibSharp/Generated/Creaturelib/ScriptCategory.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creaturelibbattling +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum ScriptCategory : byte diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ScriptResolver.cs b/PkmnLibSharp/Generated/Creaturelib/ScriptResolver.cs similarity index 62% rename from PkmnLibSharp/Generated/Creaturelibbattling/ScriptResolver.cs rename to PkmnLibSharp/Generated/Creaturelib/ScriptResolver.cs index 4cce529..20ff388 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/ScriptResolver.cs +++ b/PkmnLibSharp/Generated/Creaturelib/ScriptResolver.cs @@ -2,23 +2,23 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class ScriptResolver { /// ScriptResolver * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Construct")] internal static extern IntPtr Construct(); /// const ScriptResolver * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Destruct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Initialize")] internal static extern byte Initialize(IntPtr p, IntPtr library); /// Script * & @@ -26,7 +26,7 @@ namespace Creaturelibbattling.Generated /// ScriptCategory /// const char * /// unsigned char - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_LoadScript")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_LoadScript")] internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, ScriptCategory category, IntPtr scriptName); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesLibrary.cs b/PkmnLibSharp/Generated/Creaturelib/SpeciesLibrary.cs similarity index 64% rename from PkmnLibSharp/Generated/Creatureliblibrary/SpeciesLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/SpeciesLibrary.cs index d1875f2..f497629 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/SpeciesLibrary.cs @@ -2,77 +2,77 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class SpeciesLibrary { /// long unsigned int /// const SpeciesLibrary * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Insert")] internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t); /// SpeciesLibrary * /// unsigned int /// CreatureSpecies * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_InsertWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Delete")] internal static extern byte Delete(IntPtr p, IntPtr name); /// SpeciesLibrary * /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_DeleteWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGet")] internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out); /// SpeciesLibrary * /// unsigned int /// const CreatureSpecies * & /// bool - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGetWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGetWithHash")] internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); /// SpeciesLibrary * /// const char * /// const CreatureSpecies * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Get")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Get")] internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out); /// SpeciesLibrary * /// unsigned int /// const CreatureSpecies * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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/Creaturelib/SpeciesVariant.cs similarity index 66% rename from PkmnLibSharp/Generated/Creatureliblibrary/SpeciesVariant.cs rename to PkmnLibSharp/Generated/Creaturelib/SpeciesVariant.cs index 39590da..24f1600 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/SpeciesVariant.cs +++ b/PkmnLibSharp/Generated/Creaturelib/SpeciesVariant.cs @@ -2,7 +2,7 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class SpeciesVariant { @@ -24,59 +24,59 @@ namespace Creatureliblibrary.Generated /// long unsigned int /// const LearnableAttacks * /// SpeciesVariant * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_Construct")] internal static extern IntPtr Construct(IntPtr 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetName")] internal static extern IntPtr GetName(IntPtr p); /// const SpeciesVariant * /// float - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetHeight")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetType")] internal static extern byte GetType(IntPtr p, ulong index); /// SpeciesVariant * /// Statistic /// unsigned short - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetStatistic")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetStatistic")] internal static extern ushort GetStatistic(IntPtr p, Statistic stat); /// const SpeciesVariant * /// long unsigned int - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalentCount")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetSecretTalentCount")] internal static extern ulong GetSecretTalentCount(IntPtr p); /// SpeciesVariant * @@ -84,18 +84,18 @@ namespace Creatureliblibrary.Generated /// unsigned char /// const char * & /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalent")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalent")] internal static extern byte GetTalent(IntPtr p, byte secret, byte index, ref IntPtr @out); /// SpeciesVariant * /// const LearnableAttacks * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetLearnableAttacks")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetLearnableAttacks")] internal static extern IntPtr GetLearnableAttacks(IntPtr p); /// SpeciesVariant * /// Random * /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetRandomTalent")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetRandomTalent")] internal static extern byte GetRandomTalent(IntPtr p, IntPtr rand); } diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/Statistic.cs b/PkmnLibSharp/Generated/Creaturelib/Statistic.cs similarity index 92% rename from PkmnLibSharp/Generated/Creatureliblibrary/Statistic.cs rename to PkmnLibSharp/Generated/Creaturelib/Statistic.cs index e74cff6..ea50e84 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/Statistic.cs +++ b/PkmnLibSharp/Generated/Creaturelib/Statistic.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creatureliblibrary +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum Statistic : byte diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/SwitchTurnChoice.cs b/PkmnLibSharp/Generated/Creaturelib/SwitchTurnChoice.cs similarity index 60% rename from PkmnLibSharp/Generated/Creaturelibbattling/SwitchTurnChoice.cs rename to PkmnLibSharp/Generated/Creaturelib/SwitchTurnChoice.cs index 7c58e03..885adbb 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/SwitchTurnChoice.cs +++ b/PkmnLibSharp/Generated/Creaturelib/SwitchTurnChoice.cs @@ -2,24 +2,24 @@ using System; using System.Runtime.InteropServices; -namespace Creaturelibbattling.Generated +namespace Creaturelib.Generated { internal static class SwitchTurnChoice { /// Creature * /// Creature * /// SwitchTurnChoice * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Construct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Construct")] internal static extern IntPtr Construct(IntPtr user, IntPtr newCreature); /// AttackTurnChoice * /// void - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Destruct")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Destruct")] internal static extern void Destruct(IntPtr p); /// const SwitchTurnChoice * /// Creature * - [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_GetNewCreature")] + [DllImport("CreatureLib", 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/Creaturelib/TurnChoiceKind.cs similarity index 90% rename from PkmnLibSharp/Generated/Creaturelibbattling/TurnChoiceKind.cs rename to PkmnLibSharp/Generated/Creaturelib/TurnChoiceKind.cs index 489aee7..f37485c 100644 --- a/PkmnLibSharp/Generated/Creaturelibbattling/TurnChoiceKind.cs +++ b/PkmnLibSharp/Generated/Creaturelib/TurnChoiceKind.cs @@ -1,7 +1,7 @@ // AUTOMATICALLY GENERATED, DO NOT EDIT using System.Diagnostics.CodeAnalysis; -namespace Creaturelibbattling +namespace Creaturelib { [SuppressMessage("ReSharper", "InconsistentNaming")] internal enum TurnChoiceKind : byte diff --git a/PkmnLibSharp/Generated/Creatureliblibrary/TypeLibrary.cs b/PkmnLibSharp/Generated/Creaturelib/TypeLibrary.cs similarity index 68% rename from PkmnLibSharp/Generated/Creatureliblibrary/TypeLibrary.cs rename to PkmnLibSharp/Generated/Creaturelib/TypeLibrary.cs index e02a650..b9f7945 100644 --- a/PkmnLibSharp/Generated/Creatureliblibrary/TypeLibrary.cs +++ b/PkmnLibSharp/Generated/Creaturelib/TypeLibrary.cs @@ -2,46 +2,46 @@ using System; using System.Runtime.InteropServices; -namespace Creatureliblibrary.Generated +namespace Creaturelib.Generated { internal static class TypeLibrary { /// long unsigned int /// TypeLibrary * - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Construct")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeId")] internal static extern byte GetTypeId(ref byte @out, IntPtr p, IntPtr type); /// unsigned char & /// const TypeLibrary * /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeIdWithHash")] + [DllImport("CreatureLib", 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")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterType")] internal static extern byte RegisterType(ref byte @out, IntPtr p, IntPtr type); /// unsigned char & /// TypeLibrary * /// unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterTypeWithHash")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterTypeWithHash")] internal static extern byte RegisterTypeWithHash(ref byte @out, IntPtr p, uint type); /// TypeLibrary * @@ -49,7 +49,7 @@ namespace Creatureliblibrary.Generated /// unsigned char /// float /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_SetEffectiveness")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_SetEffectiveness")] internal static extern byte SetEffectiveness(IntPtr p, byte attacking, byte defensive, float effectiveness); /// float & @@ -57,7 +57,7 @@ namespace Creatureliblibrary.Generated /// unsigned char /// unsigned char /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetSingleEffectiveness")] + [DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetSingleEffectiveness")] internal static extern byte GetSingleEffectiveness(ref float @out, IntPtr p, byte attacking, byte defensive); /// float & @@ -66,7 +66,7 @@ namespace Creatureliblibrary.Generated /// unsigned char * /// long unsigned int /// unsigned char - [DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetEffectiveness")] + [DllImport("CreatureLib", 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/Creaturelibbattling/AttackCategory.cs b/PkmnLibSharp/Generated/Creaturelibbattling/AttackCategory.cs deleted file mode 100644 index d55645b..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/AttackCategory.cs +++ /dev/null @@ -1,13 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal enum AttackCategory : byte - { - Physical = 0, - Magical = 1, - Status = 2, - } -} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/AttackTarget.cs b/PkmnLibSharp/Generated/Creaturelibbattling/AttackTarget.cs deleted file mode 100644 index 470aa03..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/AttackTarget.cs +++ /dev/null @@ -1,22 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal 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/BattleItemCategory.cs b/PkmnLibSharp/Generated/Creaturelibbattling/BattleItemCategory.cs deleted file mode 100644 index df243f1..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/BattleItemCategory.cs +++ /dev/null @@ -1,15 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal enum BattleItemCategory : byte - { - None = 0, - Healing = 1, - StatusHealing = 2, - CaptureDevice = 3, - MiscBattleItem = 4, - } -} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/C.cs b/PkmnLibSharp/Generated/Creaturelibbattling/C.cs deleted file mode 100644 index 0c6ad21..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/C.cs +++ /dev/null @@ -1,14 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -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 IntPtr GetLastException(); - - } -} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/EffectParameterType.cs b/PkmnLibSharp/Generated/Creaturelibbattling/EffectParameterType.cs deleted file mode 100644 index 0900815..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/EffectParameterType.cs +++ /dev/null @@ -1,15 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal enum EffectParameterType : byte - { - None = 0, - Bool = 1, - Int = 2, - Float = 3, - String = 4, - } -} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/Gender.cs b/PkmnLibSharp/Generated/Creaturelibbattling/Gender.cs deleted file mode 100644 index 5a37535..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/Gender.cs +++ /dev/null @@ -1,13 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal enum Gender : byte - { - Male = 0, - Female = 1, - Genderless = 2, - } -} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/ItemCategory.cs b/PkmnLibSharp/Generated/Creaturelibbattling/ItemCategory.cs deleted file mode 100644 index 99be5c2..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/ItemCategory.cs +++ /dev/null @@ -1,18 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal 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/Statistic.cs b/PkmnLibSharp/Generated/Creaturelibbattling/Statistic.cs deleted file mode 100644 index 38b521b..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/Statistic.cs +++ /dev/null @@ -1,16 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal enum Statistic : byte - { - Health = 0, - PhysicalAttack = 1, - PhysicalDefense = 2, - MagicalAttack = 3, - MagicalDefense = 4, - Speed = 5, - } -} diff --git a/PkmnLibSharp/Generated/Creaturelibbattling/memory_order.cs b/PkmnLibSharp/Generated/Creaturelibbattling/memory_order.cs deleted file mode 100644 index 9232222..0000000 --- a/PkmnLibSharp/Generated/Creaturelibbattling/memory_order.cs +++ /dev/null @@ -1,16 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creaturelibbattling -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal 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/memory_order.cs b/PkmnLibSharp/Generated/Creatureliblibrary/memory_order.cs deleted file mode 100644 index 16580a9..0000000 --- a/PkmnLibSharp/Generated/Creatureliblibrary/memory_order.cs +++ /dev/null @@ -1,16 +0,0 @@ -// AUTOMATICALLY GENERATED, DO NOT EDIT -using System.Diagnostics.CodeAnalysis; - -namespace Creatureliblibrary -{ - [SuppressMessage("ReSharper", "InconsistentNaming")] - internal 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/Library/EffectParameter.cs b/PkmnLibSharp/Library/EffectParameter.cs index d534393..a1f872e 100644 --- a/PkmnLibSharp/Library/EffectParameter.cs +++ b/PkmnLibSharp/Library/EffectParameter.cs @@ -15,57 +15,57 @@ namespace PkmnLibSharp.Library public class EffectParameter : PointerWrapper { - public EffectParameter(string s) : base(Creatureliblibrary.Generated.EffectParameter.FromString(s.ToPtr())) + public EffectParameter(string s) : base(Creaturelib.Generated.EffectParameter.FromString(s.ToPtr())) { } - public EffectParameter(bool b) : base(Creatureliblibrary.Generated.EffectParameter.FromBool(b.ToNative())) + public EffectParameter(bool b) : base(Creaturelib.Generated.EffectParameter.FromBool(b.ToNative())) { } - public EffectParameter(long l) : base(Creatureliblibrary.Generated.EffectParameter.FromInt(l)) + public EffectParameter(long l) : base(Creaturelib.Generated.EffectParameter.FromInt(l)) { } - public EffectParameter(float f) : base(Creatureliblibrary.Generated.EffectParameter.FromFloat(f)) + public EffectParameter(float f) : base(Creaturelib.Generated.EffectParameter.FromFloat(f)) { } public EffectParameterType ParameterType => - (EffectParameterType) Creatureliblibrary.Generated.EffectParameter.GetType(Ptr); + (EffectParameterType) Creaturelib.Generated.EffectParameter.GetType(Ptr); public bool AsBool() { byte b = 0; - Creatureliblibrary.Generated.EffectParameter.AsBool(Ptr, ref b).Assert(); + Creaturelib.Generated.EffectParameter.AsBool(Ptr, ref b).Assert(); return b == 1; } public long AsInt() { long i = 0; - Creatureliblibrary.Generated.EffectParameter.AsInt(Ptr, ref i).Assert(); + Creaturelib.Generated.EffectParameter.AsInt(Ptr, ref i).Assert(); return i; } public float AsFloat() { float f = 0; - Creatureliblibrary.Generated.EffectParameter.AsFloat(Ptr, ref f).Assert(); + Creaturelib.Generated.EffectParameter.AsFloat(Ptr, ref f).Assert(); return f; } public string AsString() { var p = IntPtr.Zero; - Creatureliblibrary.Generated.EffectParameter.AsString(Ptr, ref p).Assert(); + Creaturelib.Generated.EffectParameter.AsString(Ptr, ref p).Assert(); return p.PtrString(); } protected override void DeletePtr() { - Creatureliblibrary.Generated.EffectParameter.Destruct(Ptr); + Creaturelib.Generated.EffectParameter.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Library/Forme.cs b/PkmnLibSharp/Library/Forme.cs index 9625837..339b182 100644 --- a/PkmnLibSharp/Library/Forme.cs +++ b/PkmnLibSharp/Library/Forme.cs @@ -1,8 +1,8 @@ using System; -using System.Collections.Immutable; +using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; -using Creatureliblibrary.Generated; +using Creaturelib.Generated; using PkmnLibSharp.Utilities; using Random = PkmnLibSharp.Utilities.Random; @@ -10,11 +10,11 @@ namespace PkmnLibSharp.Library { public class Forme : PointerWrapper { - private ImmutableArray _abilities; - private ImmutableArray _hiddenAbilities; + private ReadOnlyArray _abilities; + private ReadOnlyArray _hiddenAbilities; private LearnableMoves _moves; private string _name; - private ImmutableArray _types; + private ReadOnlyArray _types; internal Forme(IntPtr parent) : base(parent) { @@ -25,7 +25,7 @@ namespace PkmnLibSharp.Library public float Weight => SpeciesVariant.GetWeight(Ptr); public float BaseExperience => SpeciesVariant.GetBaseExperience(Ptr); - public ImmutableArray Types + public ReadOnlyArray Types { get { @@ -36,24 +36,24 @@ namespace PkmnLibSharp.Library var types = new byte[typesCount]; for (ulong i = 0; i < typesCount; i++) types[i] = SpeciesVariant.GetType(Ptr, i); - _types = types.ToImmutableArray(); + _types = types.ToReadOnly(); return _types; } } public uint BaseHealth => SpeciesVariant.GetStatistic(Ptr, (byte) Statistic.Health); - public uint BaseAttack => SpeciesVariant.GetStatistic(Ptr, (Creatureliblibrary.Statistic) Statistic.Attack); - public uint BaseDefense => SpeciesVariant.GetStatistic(Ptr, (Creatureliblibrary.Statistic) Statistic.Defense); + public uint BaseAttack => SpeciesVariant.GetStatistic(Ptr, (Creaturelib.Statistic) Statistic.Attack); + public uint BaseDefense => SpeciesVariant.GetStatistic(Ptr, (Creaturelib.Statistic) Statistic.Defense); public uint BaseSpecialAttack => - SpeciesVariant.GetStatistic(Ptr, (Creatureliblibrary.Statistic) Statistic.SpecialAttack); + SpeciesVariant.GetStatistic(Ptr, (Creaturelib.Statistic) Statistic.SpecialAttack); public uint BaseSpecialDefense => - SpeciesVariant.GetStatistic(Ptr, (Creatureliblibrary.Statistic) Statistic.SpecialDefense); + SpeciesVariant.GetStatistic(Ptr, (Creaturelib.Statistic) Statistic.SpecialDefense); - public uint BaseSpeed => SpeciesVariant.GetStatistic(Ptr, (Creatureliblibrary.Statistic) Statistic.Speed); + public uint BaseSpeed => SpeciesVariant.GetStatistic(Ptr, (Creaturelib.Statistic) Statistic.Speed); - public ImmutableArray Abilities + public ReadOnlyArray Abilities { get { @@ -69,12 +69,12 @@ namespace PkmnLibSharp.Library abilities[i] = s.PtrString(); } - _abilities = abilities.ToImmutableArray(); + _abilities = abilities.ToReadOnly(); return _abilities; } } - public ImmutableArray HiddenAbilities + public ReadOnlyArray HiddenAbilities { get { @@ -90,7 +90,7 @@ namespace PkmnLibSharp.Library abilities[i] = s.PtrString(); } - _hiddenAbilities = abilities.ToImmutableArray(); + _hiddenAbilities = abilities.ToReadOnly(); return _hiddenAbilities; } } @@ -123,7 +123,7 @@ namespace PkmnLibSharp.Library var hab = hiddenAbilitiesConverted.ArrayPtr(); var ptr = SpeciesVariant.Construct(name.ToPtr(), height, weight, baseExperience, types.ArrayPtr(), (ulong) types.Length, baseHealth, baseAttack, baseDefense, baseSpecialAttack, - baseSpecialDefense, baseSpeed, (IntPtr) ab, (ulong) abilities.Length, hab, + baseSpecialDefense, baseSpeed, ab, (ulong) abilities.Length, hab, (ulong) hiddenAbilities.Length, moves.Ptr); var f = new Forme(ptr); foreach (var intPtr in abilitiesConverted) diff --git a/PkmnLibSharp/Library/GrowthRates/ExternGrowthRate.cs b/PkmnLibSharp/Library/GrowthRates/ExternGrowthRate.cs index 8fe193c..992852d 100644 --- a/PkmnLibSharp/Library/GrowthRates/ExternGrowthRate.cs +++ b/PkmnLibSharp/Library/GrowthRates/ExternGrowthRate.cs @@ -17,7 +17,7 @@ namespace PkmnLibSharp.Library.GrowthRates CalculateExperienceDelegate experienceFunc) { var ptr = IntPtr.Zero; - Creatureliblibrary.Generated.ExternGrowthRate.Construct(ref ptr, + Creaturelib.Generated.ExternGrowthRate.Construct(ref ptr, Marshal.GetFunctionPointerForDelegate(levelFunc), Marshal.GetFunctionPointerForDelegate(experienceFunc) ); @@ -26,7 +26,7 @@ namespace PkmnLibSharp.Library.GrowthRates protected override void DeletePtr() { - Creatureliblibrary.Generated.ExternGrowthRate.Destruct(Ptr); + Creaturelib.Generated.ExternGrowthRate.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Library/GrowthRates/GrowthRate.cs b/PkmnLibSharp/Library/GrowthRates/GrowthRate.cs index 9157d73..5204021 100644 --- a/PkmnLibSharp/Library/GrowthRates/GrowthRate.cs +++ b/PkmnLibSharp/Library/GrowthRates/GrowthRate.cs @@ -12,14 +12,14 @@ namespace PkmnLibSharp.Library.GrowthRates public byte CalculateLevel(uint experience) { byte b = 0; - Creatureliblibrary.Generated.GrowthRate.CalculateLevel(ref b, Ptr, experience).Assert(); + Creaturelib.Generated.GrowthRate.CalculateLevel(ref b, Ptr, experience).Assert(); return b; } public uint CalculateExperience(byte level) { uint i = 0; - Creatureliblibrary.Generated.GrowthRate.CalculateExperience(ref i, Ptr, level).Assert(); + Creaturelib.Generated.GrowthRate.CalculateExperience(ref i, Ptr, level).Assert(); return i; } } diff --git a/PkmnLibSharp/Library/GrowthRates/GrowthRateLibrary.cs b/PkmnLibSharp/Library/GrowthRates/GrowthRateLibrary.cs index afa1ec4..f9b24bb 100644 --- a/PkmnLibSharp/Library/GrowthRates/GrowthRateLibrary.cs +++ b/PkmnLibSharp/Library/GrowthRates/GrowthRateLibrary.cs @@ -10,33 +10,33 @@ namespace PkmnLibSharp.Library.GrowthRates } public GrowthRateLibrary(ulong initialCapacity) : base( - Creatureliblibrary.Generated.GrowthRateLibrary.Construct(initialCapacity)) + Creaturelib.Generated.GrowthRateLibrary.Construct(initialCapacity)) { } public byte CalculateLevel(string growthRateName, uint experience) { byte b = 0; - Creatureliblibrary.Generated.GrowthRateLibrary.CalculateLevel(ref b, Ptr, growthRateName.ToPtr(), + Creaturelib.Generated.GrowthRateLibrary.CalculateLevel(ref b, Ptr, growthRateName.ToPtr(), experience).Assert(); return b; } public uint CalculateExperience(string growthRateName, byte level) { uint i = 0; - Creatureliblibrary.Generated.GrowthRateLibrary.CalculateExperience(ref i, Ptr, growthRateName.ToPtr(), + Creaturelib.Generated.GrowthRateLibrary.CalculateExperience(ref i, Ptr, growthRateName.ToPtr(), level).Assert(); return i; } public void AddGrowthRate(string name, GrowthRate gr) { - Creatureliblibrary.Generated.GrowthRateLibrary.AddGrowthRate(Ptr, name.ToPtr(), gr.Ptr).Assert(); + Creaturelib.Generated.GrowthRateLibrary.AddGrowthRate(Ptr, name.ToPtr(), gr.Ptr).Assert(); } protected override void DeletePtr() { - Creatureliblibrary.Generated.GrowthRateLibrary.Destruct(Ptr); + Creaturelib.Generated.GrowthRateLibrary.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Library/GrowthRates/LookupGrowthRate.cs b/PkmnLibSharp/Library/GrowthRates/LookupGrowthRate.cs index c8dd8c7..1f099a4 100644 --- a/PkmnLibSharp/Library/GrowthRates/LookupGrowthRate.cs +++ b/PkmnLibSharp/Library/GrowthRates/LookupGrowthRate.cs @@ -6,14 +6,14 @@ namespace PkmnLibSharp.Library.GrowthRates public class LookupGrowthRate : GrowthRate { public LookupGrowthRate(uint[] experiencePerLevel) : base( - Creatureliblibrary.Generated.LookupGrowthRate.Construct(experiencePerLevel.ArrayPtr(), + Creaturelib.Generated.LookupGrowthRate.Construct(experiencePerLevel.ArrayPtr(), (ulong) experiencePerLevel.Length)) { } protected override void DeletePtr() { - Creatureliblibrary.Generated.LookupGrowthRate.Destruct(Ptr); + Creaturelib.Generated.LookupGrowthRate.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Library/Items/Item.cs b/PkmnLibSharp/Library/Items/Item.cs index b02b2a3..d7dc1cf 100644 --- a/PkmnLibSharp/Library/Items/Item.cs +++ b/PkmnLibSharp/Library/Items/Item.cs @@ -12,18 +12,18 @@ namespace PkmnLibSharp.Library.Items { } - public string Name => _name ??= Creatureliblibrary.Generated.Item.GetName(Ptr).PtrString(); - public ItemCategory Category => (ItemCategory) Creatureliblibrary.Generated.Item.GetCategory(Ptr); + public string Name => _name ??= Creaturelib.Generated.Item.GetName(Ptr).PtrString(); + public ItemCategory Category => (ItemCategory) Creaturelib.Generated.Item.GetCategory(Ptr); public BattleItemCategory BattleCategory => - (BattleItemCategory) Creatureliblibrary.Generated.Item.GetBattleCategory(Ptr); + (BattleItemCategory) Creaturelib.Generated.Item.GetBattleCategory(Ptr); - public int Price => Creatureliblibrary.Generated.Item.GetPrice(Ptr); + public int Price => Creaturelib.Generated.Item.GetPrice(Ptr); public byte FlingPower => Pkmnlib.Generated.Item.GetFlingPower(Ptr); public bool HasFlag(string s) { - return Creatureliblibrary.Generated.Item.HasFlag(Ptr, s.ToPtr()) == MarshalHelper.True; + return Creaturelib.Generated.Item.HasFlag(Ptr, s.ToPtr()) == MarshalHelper.True; } public static Item Create(string name, ItemCategory category, BattleItemCategory battleCategory, diff --git a/PkmnLibSharp/Library/Items/ItemLibrary.cs b/PkmnLibSharp/Library/Items/ItemLibrary.cs index a1b17be..1cd9070 100644 --- a/PkmnLibSharp/Library/Items/ItemLibrary.cs +++ b/PkmnLibSharp/Library/Items/ItemLibrary.cs @@ -14,21 +14,21 @@ namespace PkmnLibSharp.Library.Items } public ItemLibrary(ulong initialCapacity) : base( - Creatureliblibrary.Generated.ItemLibrary.Construct(initialCapacity)) + Creaturelib.Generated.ItemLibrary.Construct(initialCapacity)) { } - public ulong Count => Creatureliblibrary.Generated.ItemLibrary.GetCount(Ptr); + public ulong Count => Creaturelib.Generated.ItemLibrary.GetCount(Ptr); public void Insert(string key, Item item) { - Creatureliblibrary.Generated.ItemLibrary.Insert(Ptr, key.ToPtr(), item.Ptr).Assert(); + Creaturelib.Generated.ItemLibrary.Insert(Ptr, key.ToPtr(), item.Ptr).Assert(); _cache.Add(key, item); } public void Delete(string key) { - Creatureliblibrary.Generated.ItemLibrary.Delete(Ptr, key.ToPtr()).Assert(); + Creaturelib.Generated.ItemLibrary.Delete(Ptr, key.ToPtr()).Assert(); _cache.Remove(key); } @@ -37,7 +37,7 @@ namespace PkmnLibSharp.Library.Items if (_cache.TryGetValue(key, out item)) return true; var ptr = IntPtr.Zero; - if (Creatureliblibrary.Generated.ItemLibrary.TryGet(Ptr, key.ToPtr(), ref ptr) != MarshalHelper.True) + if (Creaturelib.Generated.ItemLibrary.TryGet(Ptr, key.ToPtr(), ref ptr) != MarshalHelper.True) return false; if (TryResolvePointer(ptr, out item)) { @@ -55,7 +55,7 @@ namespace PkmnLibSharp.Library.Items if (_cache.TryGetValue(key, out var item)) return item; var ptr = IntPtr.Zero; - Creatureliblibrary.Generated.ItemLibrary.Get(Ptr, key.ToPtr(), ref ptr).Assert(); + Creaturelib.Generated.ItemLibrary.Get(Ptr, key.ToPtr(), ref ptr).Assert(); if (TryResolvePointer(ptr, out item)) { _cache.Add(key, item); @@ -75,7 +75,7 @@ namespace PkmnLibSharp.Library.Items protected override void DeletePtr() { - Creatureliblibrary.Generated.ItemLibrary.Destruct(Ptr); + Creaturelib.Generated.ItemLibrary.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Library/LearnableMoves.cs b/PkmnLibSharp/Library/LearnableMoves.cs index 87351b9..0749c57 100644 --- a/PkmnLibSharp/Library/LearnableMoves.cs +++ b/PkmnLibSharp/Library/LearnableMoves.cs @@ -1,5 +1,5 @@ using System; -using Creatureliblibrary.Generated; +using Creaturelib.Generated; using PkmnLibSharp.Library.Moves; using PkmnLibSharp.Utilities; diff --git a/PkmnLibSharp/Library/LibrarySettings.cs b/PkmnLibSharp/Library/LibrarySettings.cs index d91882c..3421e77 100644 --- a/PkmnLibSharp/Library/LibrarySettings.cs +++ b/PkmnLibSharp/Library/LibrarySettings.cs @@ -5,8 +5,8 @@ namespace PkmnLibSharp.Library { public class LibrarySettings : PointerWrapper { - public byte MaximalLevel => Creatureliblibrary.Generated.LibrarySettings.GetMaximalLevel(Ptr); - public byte MaximalMoves => Creatureliblibrary.Generated.LibrarySettings.GetMaximalMoves(Ptr); + public byte MaximalLevel => Creaturelib.Generated.LibrarySettings.GetMaximalLevel(Ptr); + public byte MaximalMoves => Creaturelib.Generated.LibrarySettings.GetMaximalMoves(Ptr); public ushort ShinyRate => Pkmnlib.Generated.LibrarySettings.GetShinyRate(Ptr); internal LibrarySettings() diff --git a/PkmnLibSharp/Library/Moves/MoveData.cs b/PkmnLibSharp/Library/Moves/MoveData.cs index ac3b2eb..abae392 100644 --- a/PkmnLibSharp/Library/Moves/MoveData.cs +++ b/PkmnLibSharp/Library/Moves/MoveData.cs @@ -1,7 +1,7 @@ using System; using System.Linq; -using Creatureliblibrary; -using Creatureliblibrary.Generated; +using Creaturelib; +using Creaturelib.Generated; using PkmnLibSharp.Utilities; namespace PkmnLibSharp.Library.Moves diff --git a/PkmnLibSharp/Library/Moves/MoveLibrary.cs b/PkmnLibSharp/Library/Moves/MoveLibrary.cs index 51aa2a8..87c5e1b 100644 --- a/PkmnLibSharp/Library/Moves/MoveLibrary.cs +++ b/PkmnLibSharp/Library/Moves/MoveLibrary.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using Creatureliblibrary.Generated; +using Creaturelib.Generated; using PkmnLibSharp.Utilities; namespace PkmnLibSharp.Library.Moves diff --git a/PkmnLibSharp/Library/PokemonLibrary.cs b/PkmnLibSharp/Library/PokemonLibrary.cs index 14ddadd..ecf364b 100644 --- a/PkmnLibSharp/Library/PokemonLibrary.cs +++ b/PkmnLibSharp/Library/PokemonLibrary.cs @@ -1,5 +1,5 @@ using System; -using Creatureliblibrary.Generated; +using Creaturelib.Generated; using PkmnLibSharp.Library.Moves; using PkmnLibSharp.Utilities; using GrowthRateLibrary = PkmnLibSharp.Library.GrowthRates.GrowthRateLibrary; diff --git a/PkmnLibSharp/Library/Species.cs b/PkmnLibSharp/Library/Species.cs index 2d90263..e617c15 100644 --- a/PkmnLibSharp/Library/Species.cs +++ b/PkmnLibSharp/Library/Species.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using Creatureliblibrary.Generated; +using Creaturelib.Generated; using Pkmnlib; using Pkmnlib.Generated; using PkmnLibSharp.Utilities; diff --git a/PkmnLibSharp/Library/SpeciesLibrary.cs b/PkmnLibSharp/Library/SpeciesLibrary.cs index e781477..6a116e3 100644 --- a/PkmnLibSharp/Library/SpeciesLibrary.cs +++ b/PkmnLibSharp/Library/SpeciesLibrary.cs @@ -7,17 +7,17 @@ namespace PkmnLibSharp.Library public class SpeciesLibrary : PointerWrapper { private readonly Dictionary _cache = new Dictionary(StringComparer.InvariantCultureIgnoreCase); - public ulong Count => Creatureliblibrary.Generated.SpeciesLibrary.GetCount(Ptr); + public ulong Count => Creaturelib.Generated.SpeciesLibrary.GetCount(Ptr); public void Insert(string key, Species species) { - Creatureliblibrary.Generated.SpeciesLibrary.Insert(Ptr, key.ToPtr(), species.Ptr).Assert(); + Creaturelib.Generated.SpeciesLibrary.Insert(Ptr, key.ToPtr(), species.Ptr).Assert(); _cache.Add(key, species); } public void Delete(string key) { - Creatureliblibrary.Generated.SpeciesLibrary.Delete(Ptr, key.ToPtr()).Assert(); + Creaturelib.Generated.SpeciesLibrary.Delete(Ptr, key.ToPtr()).Assert(); _cache.Remove(key); } @@ -26,7 +26,7 @@ namespace PkmnLibSharp.Library if (_cache.TryGetValue(key, out species)) return true; var ptr = IntPtr.Zero; - if (Creatureliblibrary.Generated.SpeciesLibrary.TryGet(Ptr, key.ToPtr(), ref ptr) != MarshalHelper.True) + if (Creaturelib.Generated.SpeciesLibrary.TryGet(Ptr, key.ToPtr(), ref ptr) != MarshalHelper.True) return false; if (TryResolvePointer(ptr, out species)) { @@ -43,7 +43,7 @@ namespace PkmnLibSharp.Library if (_cache.TryGetValue(key, out var species)) return species; var ptr = IntPtr.Zero; - Creatureliblibrary.Generated.SpeciesLibrary.Get(Ptr, key.ToPtr(), ref ptr).Assert(); + Creaturelib.Generated.SpeciesLibrary.Get(Ptr, key.ToPtr(), ref ptr).Assert(); if (TryResolvePointer(ptr, out species)) { _cache.Add(key, species); @@ -59,13 +59,13 @@ namespace PkmnLibSharp.Library } public SpeciesLibrary(ulong initialCapacity) : base( - Creatureliblibrary.Generated.SpeciesLibrary.Construct(initialCapacity)) + Creaturelib.Generated.SpeciesLibrary.Construct(initialCapacity)) { } protected override void DeletePtr() { - Creatureliblibrary.Generated.SpeciesLibrary.Destruct(Ptr); + Creaturelib.Generated.SpeciesLibrary.Destruct(Ptr); } protected internal override void MarkAsDeleted() diff --git a/PkmnLibSharp/Library/TypeLibrary.cs b/PkmnLibSharp/Library/TypeLibrary.cs index 6860dab..78447c6 100644 --- a/PkmnLibSharp/Library/TypeLibrary.cs +++ b/PkmnLibSharp/Library/TypeLibrary.cs @@ -14,7 +14,7 @@ namespace PkmnLibSharp.Library } public TypeLibrary(ulong initialCapacity) : base( - Creatureliblibrary.Generated.TypeLibrary.Construct(initialCapacity)) + Creaturelib.Generated.TypeLibrary.Construct(initialCapacity)) { } @@ -22,7 +22,7 @@ namespace PkmnLibSharp.Library { if (_cache.TryGetValue(typeName, out var b)) return b; - Creatureliblibrary.Generated.TypeLibrary.GetTypeId(ref b, Ptr, typeName.ToPtr()).Assert(); + Creaturelib.Generated.TypeLibrary.GetTypeId(ref b, Ptr, typeName.ToPtr()).Assert(); _cache.Add(typeName, b); return b; } @@ -30,20 +30,20 @@ namespace PkmnLibSharp.Library public byte RegisterType(string typeName) { byte b = 0; - Creatureliblibrary.Generated.TypeLibrary.RegisterType(ref b, Ptr, typeName.ToPtr()).Assert(); + Creaturelib.Generated.TypeLibrary.RegisterType(ref b, Ptr, typeName.ToPtr()).Assert(); _cache.Add(typeName, b); return b; } public void SetEffectiveness(byte attackingId, byte defensiveId, float effectiveness) { - Creatureliblibrary.Generated.TypeLibrary.SetEffectiveness(Ptr, attackingId, defensiveId, effectiveness); + Creaturelib.Generated.TypeLibrary.SetEffectiveness(Ptr, attackingId, defensiveId, effectiveness); } public float GetSingleEffectiveness(byte attackingId, byte defensiveId) { float f = 0; - Creatureliblibrary.Generated.TypeLibrary.GetSingleEffectiveness(ref f, Ptr, attackingId, defensiveId) + Creaturelib.Generated.TypeLibrary.GetSingleEffectiveness(ref f, Ptr, attackingId, defensiveId) .Assert(); return f; } @@ -51,14 +51,14 @@ namespace PkmnLibSharp.Library public float GetEffectiveness(byte attackingId, byte[] defensiveIds) { float f = 0; - Creatureliblibrary.Generated.TypeLibrary.GetEffectiveness(ref f, Ptr, attackingId, defensiveIds.ArrayPtr(), + Creaturelib.Generated.TypeLibrary.GetEffectiveness(ref f, Ptr, attackingId, defensiveIds.ArrayPtr(), (ulong) defensiveIds.Length).Assert(); return f; } protected override void DeletePtr() { - Creatureliblibrary.Generated.TypeLibrary.Destruct(Ptr); + Creaturelib.Generated.TypeLibrary.Destruct(Ptr); } } } \ No newline at end of file diff --git a/PkmnLibSharp/Native/libArbutils.so b/PkmnLibSharp/Native/libArbutils.so index bb50916..f858ecb 100755 --- a/PkmnLibSharp/Native/libArbutils.so +++ b/PkmnLibSharp/Native/libArbutils.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e2c84c858831b6d6e0309c4da7d3e7d4c4e0b13355864a4497e0792b02d2b864 -size 35432 +oid sha256:b9b289e85f416995e08ce3342bcde7f1b436d1214211ba67ee2e983474b3604f +size 35440 diff --git a/PkmnLibSharp/Native/libCreatureLib.so b/PkmnLibSharp/Native/libCreatureLib.so new file mode 100755 index 0000000..9b89e02 --- /dev/null +++ b/PkmnLibSharp/Native/libCreatureLib.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:497133b7ea3566cb30d67c24a18cdf6f14eb5992f2b829c094d7530ad15e15b0 +size 564824 diff --git a/PkmnLibSharp/Native/libCreatureLibBattling.so b/PkmnLibSharp/Native/libCreatureLibBattling.so deleted file mode 100755 index ae63c6e..0000000 --- a/PkmnLibSharp/Native/libCreatureLibBattling.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ef3fe98dae421cbcfa0404e98daddcc8c54fc88b4ec9a1cd29e9099bf82d650 -size 345072 diff --git a/PkmnLibSharp/Native/libCreatureLibLibrary.so b/PkmnLibSharp/Native/libCreatureLibLibrary.so deleted file mode 100755 index c116486..0000000 --- a/PkmnLibSharp/Native/libCreatureLibLibrary.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f35b7716912a51ba8bd606b36b76b550068299dc52e94d5f7fa0070536db30c5 -size 203504 diff --git a/PkmnLibSharp/Native/libpkmnLib.so b/PkmnLibSharp/Native/libpkmnLib.so index f265927..7e20904 100755 --- a/PkmnLibSharp/Native/libpkmnLib.so +++ b/PkmnLibSharp/Native/libpkmnLib.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a98bf1f55cde87718b80ff300c9dd1e83816c547135abb28bf61556d157e315b -size 1035736 +oid sha256:f09bd46d8b02816eef6f13abe6832bd2d0309917d1f2737403e349d17b611b3a +size 1039840 diff --git a/PkmnLibSharp/PkmnLibSharp.csproj b/PkmnLibSharp/PkmnLibSharp.csproj index d02f9fe..5e7f32a 100644 --- a/PkmnLibSharp/PkmnLibSharp.csproj +++ b/PkmnLibSharp/PkmnLibSharp.csproj @@ -10,9 +10,9 @@ true - - - - + + Always + %(Filename)%(Extension) + diff --git a/PkmnLibSharp/Utilities/PointerWrapper.cs b/PkmnLibSharp/Utilities/PointerWrapper.cs index fe6f151..ff1844b 100644 --- a/PkmnLibSharp/Utilities/PointerWrapper.cs +++ b/PkmnLibSharp/Utilities/PointerWrapper.cs @@ -105,5 +105,10 @@ namespace PkmnLibSharp.Utilities { return _ptr.GetHashCode(); } + + public override string ToString() + { + return $"(#{_ptr}) -> {GetType().FullName}"; + } } } \ No newline at end of file diff --git a/PkmnLibSharp/Utilities/ReadOnlyArray.cs b/PkmnLibSharp/Utilities/ReadOnlyArray.cs new file mode 100644 index 0000000..b7eb22c --- /dev/null +++ b/PkmnLibSharp/Utilities/ReadOnlyArray.cs @@ -0,0 +1,41 @@ +using System.Collections; +using System.Collections.Generic; + +namespace PkmnLibSharp.Utilities +{ + internal static class CollectionHelper + { + internal static ReadOnlyArray ToReadOnly(this IList arr) + { + return new ReadOnlyArray(arr); + } + } + + public class ReadOnlyArray : IReadOnlyList + { + private readonly IList _arr; + + public ReadOnlyArray(IList arr) + { + _arr = arr; + } + + public IEnumerator GetEnumerator() + { + return _arr.GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public int Count => _arr.Count; + public T this[int index] => _arr[index]; + + public int IndexOf(T item) + { + return _arr.IndexOf(item); + } + } +} \ No newline at end of file diff --git a/PkmnLibSharp/Utilities/ResultChecker.cs b/PkmnLibSharp/Utilities/ResultChecker.cs index 13f02d3..9d0bbc9 100644 --- a/PkmnLibSharp/Utilities/ResultChecker.cs +++ b/PkmnLibSharp/Utilities/ResultChecker.cs @@ -1,4 +1,4 @@ -using System; +using Arbutils.Generated; namespace PkmnLibSharp.Utilities { @@ -10,12 +10,13 @@ namespace PkmnLibSharp.Utilities { case 0: return; case 1: - throw new NativeException("CreatureLib", - Creatureliblibrary.Generated.C.GetLastException().PtrString()); + throw new NativeException("Arbutils", C.GetLastException().PtrString()); case 2: - throw new NativeException("PkmnLib", Pkmnlib.Generated.C.GetLastException().PtrString()); - case 3: - throw new NativeException("Arbutils", Arbutils.Generated.C.GetLastException().PtrString()); + throw new NativeException("CreatureLibLibrary", + Creaturelib.Generated.C.GetLastException().PtrString()); + case 4: + throw new NativeException("PkmnLib", + Pkmnlib.Generated.C.GetLastException().PtrString()); } } } diff --git a/PkmnLibSharp/creaturelib.json b/PkmnLibSharp/creaturelib.json index d55c008..907ad19 100644 --- a/PkmnLibSharp/creaturelib.json +++ b/PkmnLibSharp/creaturelib.json @@ -1 +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":1,"filename":"CreatureLibLibrary","name":"Gender","values":{"0":"Male","1":"Female","2":"Genderless"}},{"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":"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_CreatureSpecies_SetVariant","parameters":[{"name":"p","type":"CreatureSpecies *"},{"name":"name","type":"const char *"},{"name":"variant","type":"SpeciesVariant *"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_CreatureSpecies_GetRandomGender","parameters":[{"name":"p","type":"CreatureSpecies *"},{"name":"random","type":"Random *"}],"returns":"Gender"},{"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_EffectParameter_FromBool","parameters":[{"name":"b","type":"bool"}],"returns":"EffectParameter *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_FromInt","parameters":[{"name":"i","type":"long int"}],"returns":"EffectParameter *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_FromFloat","parameters":[{"name":"f","type":"float"}],"returns":"EffectParameter *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_FromString","parameters":[{"name":"c","type":"const char *"}],"returns":"EffectParameter *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_Destruct","parameters":[{"name":"p","type":"const EffectParameter *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_GetType","parameters":[{"name":"p","type":"const EffectParameter *"}],"returns":"EffectParameterType"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_AsBool","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"bool &"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_AsInt","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"long int &"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_AsFloat","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"float &"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_EffectParameter_AsString","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"const char * &"}],"returns":"unsigned char"},{"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_LookupGrowthRate_Destruct","parameters":[{"name":"p","type":"const LookupGrowthRate *"}],"returns":"void"},{"filename":"CreatureLibLibrary","name":"CreatureLib_ExternGrowthRate_Destruct","parameters":[{"name":"p","type":"const ExternGrowthRate *"}],"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 short"},{"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"},{"name":"out","type":"const char * &"}],"returns":"unsigned char"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetLearnableAttacks","parameters":[{"name":"p","type":"SpeciesVariant *"}],"returns":"const LearnableAttacks *"},{"filename":"CreatureLibLibrary","name":"CreatureLib_SpeciesVariant_GetRandomTalent","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"rand","type":"Random *"}],"returns":"unsigned char"},{"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"},{"name":"randomSeed","type":"long unsigned int"}],"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":"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_GetPartiesCount","parameters":[{"name":"p","type":"const Battle *"}],"returns":"long unsigned int"},{"filename":"CreatureLibBattling","name":"CreatureLib_Battle_GetParties","parameters":[{"name":"p","type":"const Battle *"}],"returns":"const BattleParty * *"},{"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_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"},{"name":"allowedExperienceGain","type":"bool"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_Destruct","parameters":[{"name":"p","type":"const Creature *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_Creature_GetLibrary","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const BattleLibrary *"},{"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_ChangeVariant","parameters":[{"name":"p","type":"Creature *"},{"name":"variant","type":"const SpeciesVariant *"}],"returns":"unsigned char"},{"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_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_GetActiveTalent","parameters":[{"name":"p","type":"const Creature *"},{"name":"out","type":"const char * &"}],"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_SwapInto","parameters":[{"name":"p","type":"CreatureParty *"},{"name":"index","type":"long unsigned int"},{"name":"creature","type":"Creature *"}],"returns":"Creature *"},{"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":"unsigned char"},{"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":"unsigned char"},{"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":"const 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":"StringView *"}],"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_AttackTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_FleeTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"}],"returns":"FleeTurnChoice *"},{"filename":"CreatureLibBattling","name":"CreatureLib_FleeTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_PassTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"}],"returns":"PassTurnChoice *"},{"filename":"CreatureLibBattling","name":"CreatureLib_PassTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"returns":"void"},{"filename":"CreatureLibBattling","name":"CreatureLib_SwitchTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"},{"name":"newCreature","type":"Creature *"}],"returns":"SwitchTurnChoice *"},{"filename":"CreatureLibBattling","name":"CreatureLib_SwitchTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"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_AttackTurnChoice_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_AttackTurnChoice_GetTargetSideIndex","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLibBattling","name":"CreatureLib_AttackTurnChoice_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 *"}]} +{"enums":[{"byteSize":1,"filename":"CreatureLib","name":"ScriptCategory","values":{"0":"Attack","1":"Talent","2":"Status","3":"Creature","4":"Battle","5":"Side"}},{"byteSize":1,"filename":"CreatureLib","name":"Statistic","values":{"0":"Health","1":"PhysicalAttack","2":"PhysicalDefense","3":"MagicalAttack","4":"MagicalDefense","5":"Speed"}},{"byteSize":1,"filename":"CreatureLib","name":"Gender","values":{"0":"Male","1":"Female","2":"Genderless"}},{"byteSize":1,"filename":"CreatureLib","name":"ItemCategory","values":{"0":"MiscItem","1":"CaptureDevice","2":"Medicine","3":"Berry","4":"MoveLearner","5":"VariantChanger","6":"KeyItem","7":"Mail"}},{"byteSize":1,"filename":"CreatureLib","name":"BattleItemCategory","values":{"0":"None","1":"Healing","2":"StatusHealing","3":"CaptureDevice","4":"MiscBattleItem"}},{"byteSize":1,"filename":"CreatureLib","name":"DamageSource","values":{"0":"AttackDamage"}},{"byteSize":1,"filename":"CreatureLib","name":"EventDataKind","values":{"0":"Damage","1":"Heal","2":"Faint","3":"DisplayText"}},{"byteSize":4,"filename":"CreatureLib","name":"AttackLearnMethod","values":{"0":"Unknown","1":"Level"}},{"byteSize":1,"filename":"CreatureLib","name":"TurnChoiceKind","values":{"0":"Pass","1":"Attack","2":"Item","3":"Switch","4":"Flee"}},{"byteSize":1,"filename":"CreatureLib","name":"EffectParameterType","values":{"0":"None","1":"Bool","2":"Int","3":"Float","4":"String"}},{"byteSize":1,"filename":"CreatureLib","name":"AttackCategory","values":{"0":"Physical","1":"Magical","2":"Status"}},{"byteSize":1,"filename":"CreatureLib","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":"CreatureLib","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"},{"name":"randomSeed","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_Destruct","parameters":[{"name":"p","type":"const Battle *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetLibrary","parameters":[{"name":"p","type":"const Battle *"}],"returns":"const BattleLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_Battle_CanUse","parameters":[{"name":"out","type":"bool &"},{"name":"p","type":"Battle *"},{"name":"turnChoice","type":"BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_TrySetChoice","parameters":[{"name":"out","type":"bool &"},{"name":"p","type":"Battle *"},{"name":"turnChoice","type":"BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_CanFlee","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Battle_CheckChoicesSetAndRun","parameters":[{"name":"p","type":"Battle *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetCurrentTurnQueue","parameters":[{"name":"p","type":"const Battle *"}],"returns":"ChoiceQueue *"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetRandom","parameters":[{"name":"p","type":"Battle *"}],"returns":"BattleRandom *"},{"filename":"CreatureLib","name":"CreatureLib_Battle_CreatureInField","parameters":[{"name":"out","type":"bool &"},{"name":"p","type":"const Battle *"},{"name":"c","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_Battle_ForceRecall","parameters":[{"name":"p","type":"Battle *"},{"name":"side","type":"unsigned char"},{"name":"target","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","name":"CreatureLib_Battle_ValidateBattleState","parameters":[{"name":"p","type":"Battle *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_HasEnded","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Battle_HasConclusiveResult","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetWinningSide","parameters":[{"name":"p","type":"const Battle *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetSidesCount","parameters":[{"name":"p","type":"const Battle *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetSides","parameters":[{"name":"p","type":"const Battle *"}],"returns":"const BattleSide * *"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetPartiesCount","parameters":[{"name":"p","type":"const Battle *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetParties","parameters":[{"name":"p","type":"const Battle *"}],"returns":"const BattleParty * *"},{"filename":"CreatureLib","name":"CreatureLib_Battle_GetVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"Script *"},{"filename":"CreatureLib","name":"CreatureLib_Battle_AddVolatileScriptByName","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_AddVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_RemoveVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_RemoveVolatileScriptWithScript","parameters":[{"name":"p","type":"Battle *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_HasVolatileScript","parameters":[{"name":"p","type":"Battle *"},{"name":"key","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Battle_RegisterEventListener","parameters":[{"name":"p","type":"Battle *"},{"name":"func","type":"Function *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Battle_TriggerEventListener","parameters":[{"name":"p","type":"Battle *"},{"name":"data","type":"EventData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_BattleLibrary_Destruct","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_BattleLibrary_GetStaticLib","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const DataLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_BattleLibrary_GetStatCalculator","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const BattleStatCalculator *"},{"filename":"CreatureLib","name":"CreatureLib_BattleLibrary_GetDamageLibrary","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const DamageLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_BattleLibrary_GetMiscLibrary","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const MiscLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_BattleLibrary_GetExperienceLibrary","parameters":[{"name":"p","type":"const BattleLibrary *"}],"returns":"const ExperienceLibrary *"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_BattleParty_Destruct","parameters":[{"name":"p","type":"const BattleParty *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_BattleParty_GetParty","parameters":[{"name":"p","type":"const BattleParty *"}],"returns":"CreatureParty *"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_BattleParty_HasCreaturesNotInField","parameters":[{"name":"p","type":"const BattleParty *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_BattleRandom_Construct","parameters":[],"returns":"BattleRandom *"},{"filename":"CreatureLib","name":"CreatureLib_BattleRandom_ConstructWithSeed","parameters":[{"name":"seed","type":"long unsigned int"}],"returns":"BattleRandom *"},{"filename":"CreatureLib","name":"CreatureLib_BattleRandom_Destruct","parameters":[{"name":"p","type":"BattleRandom *"}],"returns":"void"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_BattleRandom_Get","parameters":[{"name":"p","type":"BattleRandom *"}],"returns":"int"},{"filename":"CreatureLib","name":"CreatureLib_BattleRandom_GetMax","parameters":[{"name":"p","type":"BattleRandom *"},{"name":"max","type":"int"}],"returns":"int"},{"filename":"CreatureLib","name":"CreatureLib_BattleRandom_GetMinMax","parameters":[{"name":"p","type":"BattleRandom *"},{"name":"min","type":"int"},{"name":"max","type":"int"}],"returns":"int"},{"filename":"CreatureLib","name":"CreatureLib_BattleRandom_GetSeed","parameters":[{"name":"p","type":"BattleRandom *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_Construct","parameters":[{"name":"index","type":"unsigned char"},{"name":"battle","type":"Battle *"},{"name":"creaturesPerSide","type":"unsigned char"}],"returns":"BattleSide *"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_Destruct","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_AllChoicesSet","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_AllPossibleSlotsFilled","parameters":[{"name":"out","type":"bool &"},{"name":"p","type":"BattleSide *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_SetChoice","parameters":[{"name":"p","type":"BattleSide *"},{"name":"choice","type":"BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_ResetChoices","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_SetCreature","parameters":[{"name":"p","type":"BattleSide *"},{"name":"creature","type":"Creature *"},{"name":"index","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_GetCreature","parameters":[{"name":"out","type":"Creature * &"},{"name":"p","type":"BattleSide *"},{"name":"index","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_GetSideIndex","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_GetCreatureIndex","parameters":[{"name":"out","type":"unsigned char &"},{"name":"p","type":"BattleSide *"},{"name":"c","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_MarkSlotAsUnfillable","parameters":[{"name":"p","type":"BattleSide *"},{"name":"c","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_IsDefeated","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_HasFled","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_BattleSide_MarkAsFled","parameters":[{"name":"p","type":"BattleSide *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_BattleStatCalculator_Construct","parameters":[],"returns":"const BattleStatCalculator *"},{"filename":"CreatureLib","name":"CreatureLib_BattleStatCalculator_Destruct","parameters":[{"name":"p","type":"const BattleStatCalculator *"}],"returns":"void"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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"},{"name":"allowedExperienceGain","type":"bool"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_Destruct","parameters":[{"name":"p","type":"const Creature *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetLibrary","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const BattleLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetSpecies","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const CreatureSpecies *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetVariant","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const SpeciesVariant *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_ChangeVariant","parameters":[{"name":"p","type":"Creature *"},{"name":"variant","type":"const SpeciesVariant *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetLevel","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetExperience","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetGender","parameters":[{"name":"p","type":"const Creature *"}],"returns":"Gender"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetColoring","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_HasHeldItem","parameters":[{"name":"p","type":"const Creature *"},{"name":"name","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Creature_HasHeldItemWithHash","parameters":[{"name":"p","type":"const Creature *"},{"name":"hash","type":"unsigned int"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetHeldItem","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const Item *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_SetHeldItem","parameters":[{"name":"p","type":"Creature *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_SetHeldItemWithHash","parameters":[{"name":"p","type":"Creature *"},{"name":"hash","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_SetHeldItemFromItem","parameters":[{"name":"p","type":"Creature *"},{"name":"item","type":"const Item *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetCurrentHealth","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetBattle","parameters":[{"name":"p","type":"const Creature *"}],"returns":"Battle *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetBattleSide","parameters":[{"name":"p","type":"const Creature *"}],"returns":"BattleSide *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_IsOnBattleField","parameters":[{"name":"p","type":"const Creature *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetNickname","parameters":[{"name":"p","type":"Creature *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_HasType","parameters":[{"name":"p","type":"Creature *"},{"name":"type","type":"unsigned char"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetMaxHealth","parameters":[{"name":"p","type":"const Creature *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Creature_ChangeLevelBy","parameters":[{"name":"p","type":"Creature *"},{"name":"level","type":"signed char"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_Damage","parameters":[{"name":"p","type":"Creature *"},{"name":"damage","type":"unsigned int"},{"name":"source","type":"DamageSource"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_Heal","parameters":[{"name":"p","type":"Creature *"},{"name":"health","type":"unsigned int"},{"name":"canRevive","type":"bool"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetActiveTalent","parameters":[{"name":"p","type":"const Creature *"},{"name":"out","type":"const char * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_OverrideActiveTalent","parameters":[{"name":"p","type":"Creature *"},{"name":"talent","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_AddExperience","parameters":[{"name":"p","type":"Creature *"},{"name":"experience","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_ClearVolatileScripts","parameters":[{"name":"p","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_AddVolatileScriptByName","parameters":[{"name":"p","type":"Creature *"},{"name":"scriptName","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_AddVolatileScript","parameters":[{"name":"p","type":"Creature *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_RemoveVolatileScriptByName","parameters":[{"name":"p","type":"Creature *"},{"name":"scriptName","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_RemoveVolatileScript","parameters":[{"name":"p","type":"Creature *"},{"name":"script","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Creature_HasVolatileScript","parameters":[{"name":"p","type":"Creature *"},{"name":"scriptName","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetAttacksCount","parameters":[{"name":"p","type":"Creature *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetAttacks","parameters":[{"name":"p","type":"Creature *"}],"returns":"const LearnedAttack * *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetDisplaySpecies","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const CreatureSpecies *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetDisplayVariant","parameters":[{"name":"p","type":"const Creature *"}],"returns":"const SpeciesVariant *"},{"filename":"CreatureLib","name":"CreatureLib_Creature_SetDisplaySpecies","parameters":[{"name":"p","type":"Creature *"},{"name":"species","type":"const CreatureSpecies *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Creature_SetDisplayVariant","parameters":[{"name":"p","type":"Creature *"},{"name":"variant","type":"const SpeciesVariant *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Creature_ChangeStatBoost","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"},{"name":"diffAmount","type":"signed char"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetFlatStat","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetBoostedStat","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetBaseStat","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_Creature_GetStatBoost","parameters":[{"name":"p","type":"Creature *"},{"name":"stat","type":"Statistic"}],"returns":"signed char"},{"filename":"CreatureLib","name":"CreatureLib_CreatureParty_ConstructWithSize","parameters":[{"name":"size","type":"long unsigned int"}],"returns":"CreatureParty *"},{"filename":"CreatureLib","name":"CreatureLib_CreatureParty_ConstructFromArray","parameters":[{"name":"creatures","type":"Creature * *"},{"name":"size","type":"long unsigned int"}],"returns":"CreatureParty *"},{"filename":"CreatureLib","name":"CreatureLib_CreatureParty_Destruct","parameters":[{"name":"p","type":"const CreatureParty *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_CreatureParty_GetAtIndex","parameters":[{"name":"out","type":"Creature * &"},{"name":"p","type":"const CreatureParty *"},{"name":"index","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_CreatureParty_SwapInto","parameters":[{"name":"p","type":"CreatureParty *"},{"name":"index","type":"long unsigned int"},{"name":"creature","type":"Creature *"}],"returns":"Creature *"},{"filename":"CreatureLib","name":"CreatureLib_CreatureParty_HasAvailableCreatures","parameters":[{"name":"p","type":"const CreatureParty *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_CreatureParty_GetLength","parameters":[{"name":"p","type":"const CreatureParty *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_CreatureParty_GetParty","parameters":[{"name":"p","type":"CreatureParty *"}],"returns":"const Creature * *"},{"filename":"CreatureLib","name":"CreatureLib_DamageLibrary_Construct","parameters":[],"returns":"const DamageLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_DamageLibrary_Destruct","parameters":[{"name":"p","type":"const DamageLibrary *"}],"returns":"void"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"unsigned char"},{"filename":"CreatureLib","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":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_EventData_Destruct","parameters":[{"name":"p","type":"const EventData *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_EventData_GetKind","parameters":[{"name":"p","type":"const EventData *"}],"returns":"EventDataKind"},{"filename":"CreatureLib","name":"CreatureLib_DamageEvent_GetCreature","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"Creature *"},{"filename":"CreatureLib","name":"CreatureLib_DamageEvent_GetDamageSource","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"DamageSource"},{"filename":"CreatureLib","name":"CreatureLib_DamageEvent_GetOriginalHealth","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_DamageEvent_GetNewHealth","parameters":[{"name":"p","type":"const DamageEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_HealEvent_GetCreature","parameters":[{"name":"p","type":"const HealEvent *"}],"returns":"Creature *"},{"filename":"CreatureLib","name":"CreatureLib_HealEvent_GetOriginalHealth","parameters":[{"name":"p","type":"const HealEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_HealEvent_GetNewHealth","parameters":[{"name":"p","type":"const HealEvent *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_FaintEvent_GetCreature","parameters":[{"name":"p","type":"const FaintEvent *"}],"returns":"Creature *"},{"filename":"CreatureLib","name":"CreatureLib_DisplayTextEvent_GetText","parameters":[{"name":"p","type":"const DisplayTextEvent *"}],"returns":"const char *"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_ExecutingAttack_Destruct","parameters":[{"name":"p","type":"ExecutingAttack *"}],"returns":"void"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_ExecutingAttack_IsCreatureTarget","parameters":[{"name":"p","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_ExecutingAttack_GetUser","parameters":[{"name":"p","type":"ExecutingAttack *"}],"returns":"Creature *"},{"filename":"CreatureLib","name":"CreatureLib_ExecutingAttack_GetAttack","parameters":[{"name":"p","type":"ExecutingAttack *"}],"returns":"LearnedAttack *"},{"filename":"CreatureLib","name":"CreatureLib_HitData_IsCritical","parameters":[{"name":"p","type":"const HitData *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_HitData_GetBasePower","parameters":[{"name":"p","type":"const HitData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_HitData_GetEffectiveness","parameters":[{"name":"p","type":"const HitData *"}],"returns":"float"},{"filename":"CreatureLib","name":"CreatureLib_HitData_GetDamage","parameters":[{"name":"p","type":"const HitData *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_HitData_GetType","parameters":[{"name":"p","type":"const HitData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_HitData_SetCritical","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"bool"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_HitData_SetBasePower","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_HitData_SetEffectiveness","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"float"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_HitData_SetDamage","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"unsigned int"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_HitData_SetType","parameters":[{"name":"p","type":"HitData *"},{"name":"val","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_ExperienceLibrary_Construct","parameters":[],"returns":"const ExperienceLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_ExperienceLibrary_Destruct","parameters":[{"name":"p","type":"const ExperienceLibrary *"}],"returns":"void"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_LearnedAttack_Construct","parameters":[{"name":"out","type":"LearnedAttack * &"},{"name":"attack","type":"const AttackData *"},{"name":"maxUses","type":"unsigned char"},{"name":"learnMethod","type":"AttackLearnMethod"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_Destruct","parameters":[{"name":"p","type":"LearnedAttack *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_GetAttack","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"const AttackData *"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_GetMaxUses","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_GetRemainingUses","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_GetLearnMethod","parameters":[{"name":"p","type":"const LearnedAttack *"}],"returns":"AttackLearnMethod"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_TryUse","parameters":[{"name":"p","type":"LearnedAttack *"},{"name":"uses","type":"unsigned char"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_DecreaseUses","parameters":[{"name":"p","type":"LearnedAttack *"},{"name":"uses","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_RestoreUses","parameters":[{"name":"p","type":"LearnedAttack *"},{"name":"uses","type":"unsigned char"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_LearnedAttack_RestoreAllUses","parameters":[{"name":"p","type":"LearnedAttack *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_MiscLibrary_Construct","parameters":[],"returns":"MiscLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_MiscLibrary_Destruct","parameters":[{"name":"p","type":"const MiscLibrary *"}],"returns":"void"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_MiscLibrary_CanFlee","parameters":[{"name":"out","type":"bool &"},{"name":"p","type":"MiscLibrary *"},{"name":"switchChoice","type":"FleeTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_Script_Destruct","parameters":[{"name":"p","type":"Script *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Script_Stack","parameters":[{"name":"p","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_OnRemove","parameters":[{"name":"p","type":"Script *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_GetName","parameters":[{"name":"p","type":"Script *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_Script_OnBeforeTurn","parameters":[{"name":"p","type":"Script *"},{"name":"choice","type":"const BaseTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_ChangeAttack","parameters":[{"name":"p","type":"Script *"},{"name":"choice","type":"AttackTurnChoice *"},{"name":"outAttack","type":"StringView *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_PreventAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_FailAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_StopBeforeAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_OnBeforeAttack","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","name":"CreatureLib_Script_OnAttackMiss","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","name":"CreatureLib_Script_OnAfterHits","parameters":[{"name":"p","type":"Script *"},{"name":"attack","type":"ExecutingAttack *"},{"name":"target","type":"Creature *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_Script_PreventSelfSwitch","parameters":[{"name":"p","type":"Script *"},{"name":"choice","type":"const SwitchTurnChoice *"},{"name":"outResult","type":"bool *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","name":"CreatureLib_ScriptResolver_Construct","parameters":[],"returns":"ScriptResolver *"},{"filename":"CreatureLib","name":"CreatureLib_ScriptResolver_Destruct","parameters":[{"name":"p","type":"const ScriptResolver *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_ScriptResolver_Initialize","parameters":[{"name":"p","type":"ScriptResolver *"},{"name":"library","type":"BattleLibrary *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","name":"CreatureLib_AttackTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_FleeTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"}],"returns":"FleeTurnChoice *"},{"filename":"CreatureLib","name":"CreatureLib_FleeTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_PassTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"}],"returns":"PassTurnChoice *"},{"filename":"CreatureLib","name":"CreatureLib_PassTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_SwitchTurnChoice_Construct","parameters":[{"name":"user","type":"Creature *"},{"name":"newCreature","type":"Creature *"}],"returns":"SwitchTurnChoice *"},{"filename":"CreatureLib","name":"CreatureLib_SwitchTurnChoice_Destruct","parameters":[{"name":"p","type":"AttackTurnChoice *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_BaseTurnChoice_GetKind","parameters":[{"name":"p","type":"const BaseTurnChoice *"}],"returns":"TurnChoiceKind"},{"filename":"CreatureLib","name":"CreatureLib_BaseTurnChoice_GetUser","parameters":[{"name":"p","type":"const BaseTurnChoice *"}],"returns":"Creature *"},{"filename":"CreatureLib","name":"CreatureLib_AttackTurnChoice_GetAttack","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"LearnedAttack *"},{"filename":"CreatureLib","name":"CreatureLib_AttackTurnChoice_GetKind","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"TurnChoiceKind"},{"filename":"CreatureLib","name":"CreatureLib_AttackTurnChoice_GetPriority","parameters":[{"name":"out","type":"signed char &"},{"name":"p","type":"AttackTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackTurnChoice_GetAttackScript","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"Script *"},{"filename":"CreatureLib","name":"CreatureLib_AttackTurnChoice_GetTargetSideIndex","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackTurnChoice_GetTargetCreatureIndex","parameters":[{"name":"p","type":"const AttackTurnChoice *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SwitchTurnChoice_GetNewCreature","parameters":[{"name":"p","type":"const SwitchTurnChoice *"}],"returns":"Creature *"},{"filename":"CreatureLib","name":"CreatureLib_C_GetLastException","parameters":[],"returns":"const char *"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_AttackData_Destruct","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetName","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetType","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetCategory","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"AttackCategory"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetBasePower","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetAccuracy","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetBaseUsages","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetTarget","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"AttackTarget"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetPriority","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"signed char"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_HasSecondaryEffect","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetSecondaryEffectChance","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"float"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_GetSecondaryEffectName","parameters":[{"name":"p","type":"const AttackData *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_AttackData_HasFlag","parameters":[{"name":"p","type":"const AttackData *"},{"name":"key","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_Construct","parameters":[{"name":"library","type":"AttackLibrary * &"},{"name":"initialCapacity","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_Destruct","parameters":[{"name":"p","type":"const AttackLibrary *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_Insert","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"},{"name":"t","type":"AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_InsertWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"t","type":"AttackData *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_Delete","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_DeleteWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_TryGet","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const AttackData * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_TryGetWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const AttackData * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_Get","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const AttackData * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_GetWithHash","parameters":[{"name":"p","type":"AttackLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const AttackData * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_AttackLibrary_GetCount","parameters":[{"name":"p","type":"AttackLibrary *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_CreatureSpecies_Destruct","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetId","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"unsigned short"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetGenderRate","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"float"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetCaptureRate","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetName","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetGrowthRate","parameters":[{"name":"p","type":"const CreatureSpecies *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_HasVariant","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"name","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_HasVariantWithHash","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"hash","type":"unsigned int"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_TryGetVariant","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"name","type":"const char *"},{"name":"out","type":"const SpeciesVariant * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_TryGetVariantWithHash","parameters":[{"name":"p","type":"const CreatureSpecies *"},{"name":"hash","type":"unsigned int"},{"name":"out","type":"const SpeciesVariant * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetVariant","parameters":[{"name":"out","type":"const SpeciesVariant * &"},{"name":"p","type":"const CreatureSpecies *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetVariantWithHash","parameters":[{"name":"out","type":"const SpeciesVariant * &"},{"name":"p","type":"const CreatureSpecies *"},{"name":"hash","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_SetVariant","parameters":[{"name":"p","type":"CreatureSpecies *"},{"name":"name","type":"const char *"},{"name":"variant","type":"SpeciesVariant *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_CreatureSpecies_GetRandomGender","parameters":[{"name":"p","type":"CreatureSpecies *"},{"name":"random","type":"Random *"}],"returns":"Gender"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_DataLibrary_Destruct","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_DataLibrary_GetSettings","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const LibrarySettings *"},{"filename":"CreatureLib","name":"CreatureLib_DataLibrary_GetSpeciesLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const SpeciesLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_DataLibrary_GetAttackLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const AttackLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_DataLibrary_GetItemLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const ItemLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_DataLibrary_GetGrowthRates","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const GrowthRateLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_DataLibrary_GetTypeLibrary","parameters":[{"name":"p","type":"const DataLibrary *"}],"returns":"const TypeLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_FromBool","parameters":[{"name":"b","type":"bool"}],"returns":"EffectParameter *"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_FromInt","parameters":[{"name":"i","type":"long int"}],"returns":"EffectParameter *"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_FromFloat","parameters":[{"name":"f","type":"float"}],"returns":"EffectParameter *"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_FromString","parameters":[{"name":"c","type":"const char *"}],"returns":"EffectParameter *"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_Destruct","parameters":[{"name":"p","type":"const EffectParameter *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_GetType","parameters":[{"name":"p","type":"const EffectParameter *"}],"returns":"EffectParameterType"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_AsBool","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"bool &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_AsInt","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"long int &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_AsFloat","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"float &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_EffectParameter_AsString","parameters":[{"name":"p","type":"const EffectParameter *"},{"name":"out","type":"const char * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_LookupGrowthRate_Construct","parameters":[{"name":"experiencePerLevel","type":"unsigned int *"},{"name":"count","type":"long unsigned int"}],"returns":"GrowthRate *"},{"filename":"CreatureLib","name":"CreatureLib_ExternGrowthRate_Construct","parameters":[{"name":"out","type":"GrowthRate * &"},{"name":"calcLevel","type":"Function *"},{"name":"calcExperience","type":"Function *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_GrowthRate_Destruct","parameters":[{"name":"p","type":"const GrowthRate *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_LookupGrowthRate_Destruct","parameters":[{"name":"p","type":"const LookupGrowthRate *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_ExternGrowthRate_Destruct","parameters":[{"name":"p","type":"const ExternGrowthRate *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_GrowthRate_CalculateLevel","parameters":[{"name":"out","type":"unsigned char &"},{"name":"p","type":"const GrowthRate *"},{"name":"experience","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_GrowthRate_CalculateExperience","parameters":[{"name":"out","type":"unsigned int &"},{"name":"p","type":"const GrowthRate *"},{"name":"level","type":"unsigned char"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_GrowthRateLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"GrowthRateLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_GrowthRateLibrary_Destruct","parameters":[{"name":"p","type":"GrowthRateLibrary *"}],"returns":"void"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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":"CreatureLib","name":"CreatureLib_GrowthRateLibrary_AddGrowthRate","parameters":[{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRateName","type":"const char *"},{"name":"growthRate","type":"GrowthRate *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_GrowthRateLibrary_AddGrowthRateWithHash","parameters":[{"name":"library","type":"GrowthRateLibrary *"},{"name":"growthRateHash","type":"unsigned int"},{"name":"growthRate","type":"GrowthRate *"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_Item_Destruct","parameters":[{"name":"p","type":"const Item *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_Item_GetName","parameters":[{"name":"p","type":"const Item *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_Item_GetCategory","parameters":[{"name":"p","type":"const Item *"}],"returns":"ItemCategory"},{"filename":"CreatureLib","name":"CreatureLib_Item_GetBattleCategory","parameters":[{"name":"p","type":"const Item *"}],"returns":"BattleItemCategory"},{"filename":"CreatureLib","name":"CreatureLib_Item_GetPrice","parameters":[{"name":"p","type":"const Item *"}],"returns":"int"},{"filename":"CreatureLib","name":"CreatureLib_Item_HasFlag","parameters":[{"name":"p","type":"const Item *"},{"name":"key","type":"const char *"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"const ItemLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_Destruct","parameters":[{"name":"p","type":"const ItemLibrary *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_Insert","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"},{"name":"t","type":"Item *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_InsertWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"t","type":"Item *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_Delete","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_DeleteWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_TryGet","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const Item * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_TryGetWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const Item * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_Get","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const Item * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_GetWithHash","parameters":[{"name":"p","type":"ItemLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const Item * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_ItemLibrary_GetCount","parameters":[{"name":"p","type":"ItemLibrary *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_LearnableAttacks_Construct","parameters":[{"name":"out","type":"LearnableAttacks * &"},{"name":"levelAttackCapacity","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_LearnableAttacks_Destruct","parameters":[{"name":"p","type":"LearnableAttacks *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_LearnableAttacks_AddLevelAttack","parameters":[{"name":"p","type":"LearnableAttacks *"},{"name":"level","type":"unsigned char"},{"name":"attack","type":"const AttackData *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_LearnableAttacks_GetAttacksForLevel","parameters":[{"name":"p","type":"LearnableAttacks *"},{"name":"level","type":"unsigned char"}],"returns":"const const AttackData * *"},{"filename":"CreatureLib","name":"CreatureLib_LearnableAttacks_GetAttacksForLevelCount","parameters":[{"name":"p","type":"LearnableAttacks *"},{"name":"level","type":"unsigned char"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_LibrarySettings_Construct","parameters":[{"name":"maximalLevel","type":"unsigned char"},{"name":"maximalMoves","type":"unsigned char"}],"returns":"const LibrarySettings *"},{"filename":"CreatureLib","name":"CreatureLib_LibrarySettings_Destruct","parameters":[{"name":"p","type":"const LibrarySettings *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_LibrarySettings_GetMaximalLevel","parameters":[{"name":"p","type":"const LibrarySettings *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_LibrarySettings_GetMaximalMoves","parameters":[{"name":"p","type":"const LibrarySettings *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"const SpeciesLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_Destruct","parameters":[{"name":"p","type":"const SpeciesLibrary *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_Insert","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"},{"name":"t","type":"CreatureSpecies *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_InsertWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"t","type":"CreatureSpecies *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_Delete","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_DeleteWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_TryGet","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const CreatureSpecies * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_TryGetWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const CreatureSpecies * &"}],"returns":"bool"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_Get","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"name","type":"const char *"},{"name":"out","type":"const CreatureSpecies * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_GetWithHash","parameters":[{"name":"p","type":"SpeciesLibrary *"},{"name":"hashedKey","type":"unsigned int"},{"name":"out","type":"const CreatureSpecies * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesLibrary_GetCount","parameters":[{"name":"p","type":"SpeciesLibrary *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","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":"CreatureLib","name":"CreatureLib_SpeciesVariant_Destruct","parameters":[{"name":"p","type":"SpeciesVariant *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetName","parameters":[{"name":"p","type":"SpeciesVariant *"}],"returns":"const char *"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetHeight","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"float"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetWeight","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"float"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetBaseExperience","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetTypeCount","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetType","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"index","type":"long unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetStatistic","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"stat","type":"Statistic"}],"returns":"unsigned short"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetTalentCount","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetSecretTalentCount","parameters":[{"name":"p","type":"const SpeciesVariant *"}],"returns":"long unsigned int"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetTalent","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"secret","type":"bool"},{"name":"index","type":"unsigned char"},{"name":"out","type":"const char * &"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetLearnableAttacks","parameters":[{"name":"p","type":"SpeciesVariant *"}],"returns":"const LearnableAttacks *"},{"filename":"CreatureLib","name":"CreatureLib_SpeciesVariant_GetRandomTalent","parameters":[{"name":"p","type":"SpeciesVariant *"},{"name":"rand","type":"Random *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_TypeLibrary_Construct","parameters":[{"name":"initialCapacity","type":"long unsigned int"}],"returns":"TypeLibrary *"},{"filename":"CreatureLib","name":"CreatureLib_TypeLibrary_Destruct","parameters":[{"name":"p","type":"const TypeLibrary *"}],"returns":"void"},{"filename":"CreatureLib","name":"CreatureLib_TypeLibrary_GetTypeId","parameters":[{"name":"out","type":"unsigned char &"},{"name":"p","type":"const TypeLibrary *"},{"name":"type","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_TypeLibrary_GetTypeIdWithHash","parameters":[{"name":"out","type":"unsigned char &"},{"name":"p","type":"const TypeLibrary *"},{"name":"type","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_TypeLibrary_RegisterType","parameters":[{"name":"out","type":"unsigned char &"},{"name":"p","type":"TypeLibrary *"},{"name":"type","type":"const char *"}],"returns":"unsigned char"},{"filename":"CreatureLib","name":"CreatureLib_TypeLibrary_RegisterTypeWithHash","parameters":[{"name":"out","type":"unsigned char &"},{"name":"p","type":"TypeLibrary *"},{"name":"type","type":"unsigned int"}],"returns":"unsigned char"},{"filename":"CreatureLib","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":"CreatureLib","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":"CreatureLib","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"}]} diff --git a/PkmnLibSharpTests/Battling/BattleLibraryHelper.cs b/PkmnLibSharpTests/Battling/BattleLibraryHelper.cs index 1a914d6..70932d1 100644 --- a/PkmnLibSharpTests/Battling/BattleLibraryHelper.cs +++ b/PkmnLibSharpTests/Battling/BattleLibraryHelper.cs @@ -1,4 +1,5 @@ using System.Linq; +using NUnit.Framework; using PkmnLibSharp.Battling; using PkmnLibSharp.Library; using PkmnLibSharp.Library.GrowthRates; @@ -47,6 +48,8 @@ namespace PkmnLibSharpTests.Battling new LookupGrowthRate( Enumerable.Range(1, 100).Select(x => (uint)x * 100).ToArray())); var types = new TypeLibrary(10); + types.RegisterType("normal"); + types.RegisterType("fighting"); var natures = new NatureLibrary(10); natures.LoadNature("testNature", new Nature()); var lib = PokemonLibrary.Create(settings, species, moves, items, gr, types, natures); diff --git a/PkmnLibSharpTests/Battling/BattleTests/BasicBattleTests.cs b/PkmnLibSharpTests/Battling/BattleTests/BasicBattleTests.cs index 6f2c278..2e3f0fa 100644 --- a/PkmnLibSharpTests/Battling/BattleTests/BasicBattleTests.cs +++ b/PkmnLibSharpTests/Battling/BattleTests/BasicBattleTests.cs @@ -1,5 +1,6 @@ using NUnit.Framework; using PkmnLibSharp.Battling; +using PkmnLibSharp.Battling.ChoiceTurn; namespace PkmnLibSharpTests.Battling.BattleTests { @@ -21,7 +22,10 @@ namespace PkmnLibSharpTests.Battling.BattleTests private static PokemonParty BuildTestParty(BattleLibrary lib) { var party = new PokemonParty(); - party.SwapInto(0, new PokemonBuilder(lib, "testSpecies", 50).Build()); + party.SwapInto(0, + new PokemonBuilder(lib, "testSpecies", 50) + .LearnMove("testMove", MoveLearnMethod.Unknown) + .Build()); return party; } @@ -29,17 +33,42 @@ namespace PkmnLibSharpTests.Battling.BattleTests public void InitializeBattleWithParties() { var lib = BattleLibraryHelper.GetLibrary(); + var p1 = BuildTestParty(lib); + var p2 = BuildTestParty(lib); var battle = new BattleBuilder(lib, true, 2, 1) - .WithPartyOnPositions(BuildTestParty(lib), new BattlePosition(0, 0)) - .WithPartyOnPositions(BuildTestParty(lib), new BattlePosition(1, 0)) + .WithPartyOnPositions(p1, new BattlePosition(0, 0)) + .WithPartyOnPositions(p2, new BattlePosition(1, 0)) .Build(); - Assert.AreEqual(lib, battle.Library); - Assert.AreEqual(true, battle.CanFlee); - Assert.AreEqual(2, battle.SidesCount); - Assert.AreEqual(false, battle.HasEnded); Assert.AreEqual(2, battle.PartiesCount); + Assert.AreEqual(p1, battle.Parties[0].Party); + Assert.AreEqual(p2, battle.Parties[1].Party); battle.Dispose(); } + + [Test] + public void RunTurn() + { + var lib = BattleLibraryHelper.GetLibrary(); + var p1 = BuildTestParty(lib); + var p2 = BuildTestParty(lib); + var battle = + new BattleBuilder(lib, true, 2, 1) + .WithPartyOnPositions(p1, new BattlePosition(0, 0)) + .WithPartyOnPositions(p2, new BattlePosition(1, 0)) + .Build(); + + battle.SwitchPokemon(0, 0, p1.GetAtIndex(0)); + battle.SwitchPokemon(1, 0, p2.GetAtIndex(0)); + + var moveTurn1 = new MoveTurnChoice(p1.GetAtIndex(0), p1.GetAtIndex(0).Moves[0], 1, 0 ); + var moveTurn2 = new MoveTurnChoice(p2.GetAtIndex(0), p2.GetAtIndex(0).Moves[0], 0, 0 ); + + Assert.That(battle.TrySetChoice(moveTurn1)); + Assert.That(battle.TrySetChoice(moveTurn2)); + + battle.Dispose(); + } + } } \ No newline at end of file diff --git a/PkmnLibSharpTests/Library/EffectParameterTests.cs b/PkmnLibSharpTests/Library/EffectParameterTests.cs index c68bd5b..506653f 100644 --- a/PkmnLibSharpTests/Library/EffectParameterTests.cs +++ b/PkmnLibSharpTests/Library/EffectParameterTests.cs @@ -51,7 +51,7 @@ namespace PkmnLibSharpTests.Library { var p = new EffectParameter(10); var ex = Assert.Throws(() => { p.AsString(); }); - Assert.AreEqual("[CreatureLib] - 'Cast effect parameter to string, but was Int'", ex.Message); + Assert.AreEqual("[CreatureLibLibrary] - '[CreatureLib_EffectParameter_AsString] [EffectParameter.hpp:54] Cast effect parameter to string, but was Int'", ex.Message); p.Dispose(); } } diff --git a/PkmnLibSharpTests/Library/SpeciesTests.cs b/PkmnLibSharpTests/Library/SpeciesTests.cs index f3020ff..beac47d 100644 --- a/PkmnLibSharpTests/Library/SpeciesTests.cs +++ b/PkmnLibSharpTests/Library/SpeciesTests.cs @@ -4,7 +4,7 @@ using PkmnLibSharp.Utilities; namespace PkmnLibSharpTests.Library { - public class SpeciesTests + public class SpeciesTests { [Test] public void ConstructDestruct() diff --git a/PkmnLibSharpTests/PkmnLibSharpTests.csproj b/PkmnLibSharpTests/PkmnLibSharpTests.csproj index e934894..57a5038 100644 --- a/PkmnLibSharpTests/PkmnLibSharpTests.csproj +++ b/PkmnLibSharpTests/PkmnLibSharpTests.csproj @@ -14,6 +14,7 @@ + diff --git a/PkmnLibSharpTests/TestClass.cs b/PkmnLibSharpTests/TestClass.cs new file mode 100644 index 0000000..4c42009 --- /dev/null +++ b/PkmnLibSharpTests/TestClass.cs @@ -0,0 +1,18 @@ +using System.Reflection; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace PkmnLibSharpTests +{ + [SetUpFixture] + public sealed class TestClass + { + [OneTimeSetUp] + public void Init() + { + NativeLibrary.Load("Arbutils", Assembly.GetCallingAssembly(), DllImportSearchPath.AssemblyDirectory); + NativeLibrary.Load("CreatureLib", Assembly.GetCallingAssembly(), DllImportSearchPath.AssemblyDirectory); + NativeLibrary.Load("pkmnLib", Assembly.GetCallingAssembly(), DllImportSearchPath.AssemblyDirectory); + } + } +} \ No newline at end of file