Update to latest PkmnLib

This commit is contained in:
Deukhoofd 2020-07-08 13:50:51 +02:00
parent eb99fc5661
commit 5ad3e2e040
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
44 changed files with 119 additions and 118 deletions

View File

@ -21,7 +21,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetUser")]
internal static extern IntPtr GetUser(IntPtr p);
/// <param name="out">signed char&</param>
/// <param name="out">signed char &</param>
/// <param name="p">AttackTurnChoice *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetPriority")]

View File

@ -6,7 +6,7 @@ namespace Creaturelibbattling.Generated
{
internal static class Battle
{
/// <param name="out">Battle *&</param>
/// <param name="out">Battle * &</param>
/// <param name="library">const BattleLibrary *</param>
/// <param name="partyArr">BattleParty * *</param>
/// <param name="numberOfParties">long unsigned int</param>
@ -27,14 +27,14 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetLibrary")]
internal static extern IntPtr GetLibrary(IntPtr p);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">Battle *</param>
/// <param name="turnChoice">const BaseTurnChoice *</param>
/// <param name="turnChoice">BaseTurnChoice *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanUse")]
internal static extern byte CanUse(ref byte @out, IntPtr p, IntPtr turnChoice);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">Battle *</param>
/// <param name="turnChoice">BaseTurnChoice *</param>
/// <returns>unsigned char</returns>
@ -61,14 +61,14 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetRandom")]
internal static extern IntPtr GetRandom(IntPtr p);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">const Battle *</param>
/// <param name="c">Creature *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CreatureInField")]
internal static extern byte CreatureInField(ref byte @out, IntPtr p, IntPtr c);
/// <param name="out">Creature *&</param>
/// <param name="out">Creature * &</param>
/// <param name="p">const Battle *</param>
/// <param name="side">unsigned char</param>
/// <param name="target">unsigned char</param>
@ -91,7 +91,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_SwitchCreature")]
internal static extern byte SwitchCreature(IntPtr p, byte side, byte target, IntPtr c);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">const Battle *</param>
/// <param name="side">unsigned char</param>
/// <param name="target">unsigned char</param>
@ -129,6 +129,16 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSides")]
internal static extern IntPtr GetSides(IntPtr p);
/// <param name="p">const Battle *</param>
/// <returns>long unsigned int</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetPartiesCount")]
internal static extern ulong GetPartiesCount(IntPtr p);
/// <param name="p">const Battle *</param>
/// <returns>const BattleParty * *</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetParties")]
internal static extern IntPtr GetParties(IntPtr p);
/// <param name="p">Battle *</param>
/// <param name="key">const char *</param>
/// <returns>Script *</returns>

View File

@ -6,7 +6,7 @@ namespace Creaturelibbattling.Generated
{
internal static class BattleLibrary
{
/// <param name="out">const BattleLibrary *&</param>
/// <param name="out">const BattleLibrary * &</param>
/// <param name="staticLib">const DataLibrary *</param>
/// <param name="statCalculator">BattleStatCalculator *</param>
/// <param name="damageLibrary">DamageLibrary *</param>

View File

@ -6,7 +6,7 @@ namespace Creaturelibbattling.Generated
{
internal static class BattleParty
{
/// <param name="out">BattleParty *&</param>
/// <param name="out">BattleParty * &</param>
/// <param name="p">CreatureParty *</param>
/// <param name="creatureIndices">unsigned char *</param>
/// <param name="numberOfIndices">long unsigned int</param>
@ -19,7 +19,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">const BattleParty *</param>
/// <param name="side">unsigned char</param>
/// <param name="creature">unsigned char</param>

View File

@ -20,7 +20,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">BattleRandom *</param>
/// <param name="chance">float</param>
/// <param name="attack">ExecutingAttack *</param>

View File

@ -23,12 +23,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllChoicesSet")]
internal static extern byte AllChoicesSet(IntPtr p);
/// <param name="p">BattleSide *</param>
/// <returns>const BaseTurnChoice * *</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetChoices")]
internal static extern IntPtr GetChoices(IntPtr p);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">BattleSide *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllPossibleSlotsFilled")]
@ -52,7 +47,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetCreature")]
internal static extern byte SetCreature(IntPtr p, IntPtr creature, byte index);
/// <param name="out">Creature *&</param>
/// <param name="out">Creature * &</param>
/// <param name="p">BattleSide *</param>
/// <param name="index">unsigned char</param>
/// <returns>unsigned char</returns>
@ -64,7 +59,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetSideIndex")]
internal static extern byte GetSideIndex(IntPtr p);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="p">BattleSide *</param>
/// <param name="c">Creature *</param>
/// <returns>unsigned char</returns>

View File

@ -15,7 +15,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned int&</param>
/// <param name="out">unsigned int &</param>
/// <param name="p">const BattleStatCalculator *</param>
/// <param name="creature">Creature *</param>
/// <param name="stat">Statistic</param>
@ -23,7 +23,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateFlatStat")]
internal static extern byte CalculateFlatStat(ref uint @out, IntPtr p, IntPtr creature, Statistic stat);
/// <param name="out">unsigned int&</param>
/// <param name="out">unsigned int &</param>
/// <param name="p">const BattleStatCalculator *</param>
/// <param name="creature">Creature *</param>
/// <param name="stat">Statistic</param>

View File

@ -6,7 +6,7 @@ namespace Creaturelibbattling.Generated
{
internal static class Creature
{
/// <param name="out">Creature *&</param>
/// <param name="out">Creature * &</param>
/// <param name="library">const BattleLibrary *</param>
/// <param name="species">const CreatureSpecies *</param>
/// <param name="variant">const SpeciesVariant *</param>
@ -21,9 +21,10 @@ namespace Creaturelibbattling.Generated
/// <param name="talent">unsigned char</param>
/// <param name="attacks">LearnedAttack * *</param>
/// <param name="attacksNum">long unsigned int</param>
/// <param name="allowedExperienceGain">bool</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Construct")]
internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr species, IntPtr variant, byte level, uint experience, uint uid, Gender gender, byte coloring, IntPtr heldItem, IntPtr nickname, byte secretTalent, byte talent, IntPtr attacks, ulong attacksNum);
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);
/// <param name="p">const Creature *</param>
/// <returns>void</returns>
@ -40,6 +41,12 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetVariant")]
internal static extern IntPtr GetVariant(IntPtr p);
/// <param name="p">Creature *</param>
/// <param name="variant">const SpeciesVariant *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeVariant")]
internal static extern byte ChangeVariant(IntPtr p, IntPtr variant);
/// <param name="p">const Creature *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLevel")]
@ -120,16 +127,6 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetNickname")]
internal static extern IntPtr GetNickname(IntPtr p);
/// <param name="p">Creature *</param>
/// <returns>long unsigned int</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetTypesCount")]
internal static extern ulong GetTypesCount(IntPtr p);
/// <param name="p">Creature *</param>
/// <returns>const unsigned char *</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetTypes")]
internal static extern IntPtr GetTypes(IntPtr p);
/// <param name="p">Creature *</param>
/// <param name="type">unsigned char</param>
/// <returns>bool</returns>
@ -214,9 +211,10 @@ namespace Creaturelibbattling.Generated
internal static extern ulong GetAttacksCount(IntPtr p);
/// <param name="p">Creature *</param>
/// <param name="index">long unsigned int</param>
/// <returns>const LearnedAttack * *</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacks")]
internal static extern IntPtr GetAttacks(IntPtr p);
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttack")]
internal static extern IntPtr GetAttack(IntPtr p, ulong index);
/// <param name="p">const Creature *</param>
/// <returns>const CreatureSpecies *</returns>

View File

@ -22,7 +22,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">Creature *&</param>
/// <param name="out">Creature * &</param>
/// <param name="p">const CreatureParty *</param>
/// <param name="index">long unsigned int</param>
/// <returns>unsigned char</returns>

View File

@ -15,7 +15,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned int&</param>
/// <param name="out">unsigned int &</param>
/// <param name="p">const DamageLibrary *</param>
/// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param>
@ -25,7 +25,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamage")]
internal static extern byte GetDamage(ref uint @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="p">const DamageLibrary *</param>
/// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param>
@ -35,25 +35,25 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetBasePower")]
internal static extern byte GetBasePower(ref byte @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData);
/// <param name="out">float&</param>
/// <param name="out">float &</param>
/// <param name="p">const DamageLibrary *</param>
/// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param>
/// <param name="hitIndex">unsigned char</param>
/// <param name="hitData">HitData *</param>
/// <returns>float</returns>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetStatModifier")]
internal static extern float GetStatModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData);
internal static extern byte GetStatModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData);
/// <param name="out">float&</param>
/// <param name="out">float &</param>
/// <param name="p">const DamageLibrary *</param>
/// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param>
/// <param name="hitIndex">unsigned char</param>
/// <param name="hitData">HitData *</param>
/// <returns>float</returns>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamageModifier")]
internal static extern float GetDamageModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData);
internal static extern byte GetDamageModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData);
}
}

View File

@ -6,7 +6,7 @@ namespace Creaturelibbattling.Generated
{
internal static class ExecutingAttack
{
/// <param name="out">ExecutingAttack *&</param>
/// <param name="out">ExecutingAttack * &</param>
/// <param name="targets">const Creature * *</param>
/// <param name="targetCount">long unsigned int</param>
/// <param name="numberHits">unsigned char</param>
@ -22,7 +22,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">HitData *&</param>
/// <param name="out">HitData * &</param>
/// <param name="p">ExecutingAttack *</param>
/// <param name="target">Creature *</param>
/// <param name="hit">unsigned char</param>

View File

@ -6,8 +6,8 @@ namespace Creaturelibbattling.Generated
{
internal static class LearnedAttack
{
/// <param name="out">LearnedAttack *&</param>
/// <param name="attack">AttackData *</param>
/// <param name="out">LearnedAttack * &</param>
/// <param name="attack">const AttackData *</param>
/// <param name="maxUses">unsigned char</param>
/// <param name="learnMethod">AttackLearnMethod</param>
/// <returns>unsigned char</returns>

View File

@ -15,7 +15,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">MiscLibrary *</param>
/// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param>
@ -24,14 +24,14 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_IsCritical")]
internal static extern byte IsCritical(ref byte @out, IntPtr p, IntPtr attack, IntPtr target, byte hit);
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <param name="p">MiscLibrary *</param>
/// <param name="switchChoice">FleeTurnChoice *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_CanFlee")]
internal static extern byte CanFlee(ref byte @out, IntPtr p, IntPtr switchChoice);
/// <param name="out">BaseTurnChoice *&</param>
/// <param name="out">BaseTurnChoice * &</param>
/// <param name="p">MiscLibrary *</param>
/// <param name="user">Creature *</param>
/// <param name="sideTarget">unsigned char</param>

View File

@ -34,7 +34,7 @@ namespace Creaturelibbattling.Generated
/// <param name="p">Script *</param>
/// <param name="choice">AttackTurnChoice *</param>
/// <param name="outAttack">CaseInsensitiveConstString *</param>
/// <param name="outAttack">StringView *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttack")]
internal static extern byte ChangeAttack(IntPtr p, IntPtr choice, IntPtr outAttack);

View File

@ -21,7 +21,7 @@ namespace Creaturelibbattling.Generated
[DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Initialize")]
internal static extern byte Initialize(IntPtr p, IntPtr library);
/// <param name="out">Script *&</param>
/// <param name="out">Script * &</param>
/// <param name="p">ScriptResolver *</param>
/// <param name="category">ScriptCategory</param>
/// <param name="scriptName">const char *</param>

View File

@ -6,7 +6,7 @@ namespace Creatureliblibrary.Generated
{
internal static class AttackData
{
/// <param name="out">AttackData *&</param>
/// <param name="out">AttackData * &</param>
/// <param name="name">const char *</param>
/// <param name="type">unsigned char</param>
/// <param name="category">AttackCategory</param>

View File

@ -6,7 +6,7 @@ namespace Creatureliblibrary.Generated
{
internal static class AttackLibrary
{
/// <param name="library">AttackLibrary *&</param>
/// <param name="library">AttackLibrary * &</param>
/// <param name="initialCapacity">long unsigned int</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Construct")]
@ -45,28 +45,28 @@ namespace Creatureliblibrary.Generated
/// <param name="p">AttackLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="out">const AttackData *&</param>
/// <param name="out">const AttackData * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGet")]
internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">AttackLibrary *</param>
/// <param name="hashedKey">unsigned int</param>
/// <param name="out">const AttackData *&</param>
/// <param name="out">const AttackData * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGetWithHash")]
internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">AttackLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="out">const AttackData *&</param>
/// <param name="out">const AttackData * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Get")]
internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">AttackLibrary *</param>
/// <param name="hashedKey">unsigned int</param>
/// <param name="out">const AttackData *&</param>
/// <param name="out">const AttackData * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetWithHash")]
internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);

View File

@ -6,7 +6,7 @@ namespace Creatureliblibrary.Generated
{
internal static class CreatureSpecies
{
/// <param name="out">CreatureSpecies *&</param>
/// <param name="out">CreatureSpecies * &</param>
/// <param name="id">unsigned short</param>
/// <param name="name">const char *</param>
/// <param name="defaultVariant">SpeciesVariant *</param>
@ -61,19 +61,19 @@ namespace Creatureliblibrary.Generated
/// <param name="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param>
/// <param name="out">const SpeciesVariant *&</param>
/// <param name="out">const SpeciesVariant * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariant")]
internal static extern byte TryGetVariant(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">const CreatureSpecies *</param>
/// <param name="hash">unsigned int</param>
/// <param name="out">const SpeciesVariant *&</param>
/// <param name="out">const SpeciesVariant * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariantWithHash")]
internal static extern byte TryGetVariantWithHash(IntPtr p, uint hash, ref IntPtr @out);
/// <param name="out">const SpeciesVariant *&</param>
/// <param name="out">const SpeciesVariant * &</param>
/// <param name="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param>
/// <returns>unsigned char</returns>

View File

@ -6,7 +6,7 @@ namespace Creatureliblibrary.Generated
{
internal static class DataLibrary
{
/// <param name="out">const DataLibrary *&</param>
/// <param name="out">const DataLibrary * &</param>
/// <param name="settings">LibrarySettings *</param>
/// <param name="species">SpeciesLibrary *</param>
/// <param name="attacks">AttackLibrary *</param>

View File

@ -37,25 +37,25 @@ namespace Creatureliblibrary.Generated
internal static extern EffectParameterType GetType(IntPtr p);
/// <param name="p">const EffectParameter *</param>
/// <param name="out">bool&</param>
/// <param name="out">bool &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsBool")]
internal static extern byte AsBool(IntPtr p, ref byte @out);
/// <param name="p">const EffectParameter *</param>
/// <param name="out">long int&</param>
/// <param name="out">long int &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsInt")]
internal static extern byte AsInt(IntPtr p, ref long @out);
/// <param name="p">const EffectParameter *</param>
/// <param name="out">float&</param>
/// <param name="out">float &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsFloat")]
internal static extern byte AsFloat(IntPtr p, ref float @out);
/// <param name="p">const EffectParameter *</param>
/// <param name="out">const char *&</param>
/// <param name="out">const char * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsString")]
internal static extern byte AsString(IntPtr p, ref IntPtr @out);

View File

@ -6,7 +6,7 @@ namespace Creatureliblibrary.Generated
{
internal static class ExternGrowthRate
{
/// <param name="out">GrowthRate *&</param>
/// <param name="out">GrowthRate * &</param>
/// <param name="calcLevel">Function *</param>
/// <param name="calcExperience">Function *</param>
/// <returns>unsigned char</returns>

View File

@ -11,14 +11,14 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="p">const GrowthRate *</param>
/// <param name="experience">unsigned int</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_CalculateLevel")]
internal static extern byte CalculateLevel(ref byte @out, IntPtr p, uint experience);
/// <param name="out">unsigned int&</param>
/// <param name="out">unsigned int &</param>
/// <param name="p">const GrowthRate *</param>
/// <param name="level">unsigned char</param>
/// <returns>unsigned char</returns>

View File

@ -16,7 +16,7 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="library">GrowthRateLibrary *</param>
/// <param name="growthRate">const char *</param>
/// <param name="experience">unsigned int</param>
@ -24,7 +24,7 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevel")]
internal static extern byte CalculateLevel(ref byte @out, IntPtr library, IntPtr growthRate, uint experience);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="library">GrowthRateLibrary *</param>
/// <param name="growthRateHash">unsigned int</param>
/// <param name="experience">unsigned int</param>
@ -32,7 +32,7 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevelWithHash")]
internal static extern byte CalculateLevelWithHash(ref byte @out, IntPtr library, uint growthRateHash, uint experience);
/// <param name="out">unsigned int&</param>
/// <param name="out">unsigned int &</param>
/// <param name="library">GrowthRateLibrary *</param>
/// <param name="growthRate">const char *</param>
/// <param name="level">unsigned char</param>
@ -40,7 +40,7 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperience")]
internal static extern byte CalculateExperience(ref uint @out, IntPtr library, IntPtr growthRate, byte level);
/// <param name="out">unsigned int&</param>
/// <param name="out">unsigned int &</param>
/// <param name="library">GrowthRateLibrary *</param>
/// <param name="growthRateHash">unsigned int</param>
/// <param name="level">unsigned char</param>

View File

@ -44,28 +44,28 @@ namespace Creatureliblibrary.Generated
/// <param name="p">ItemLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="out">const Item *&</param>
/// <param name="out">const Item * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGet")]
internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">ItemLibrary *</param>
/// <param name="hashedKey">unsigned int</param>
/// <param name="out">const Item *&</param>
/// <param name="out">const Item * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGetWithHash")]
internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">ItemLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="out">const Item *&</param>
/// <param name="out">const Item * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Get")]
internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">ItemLibrary *</param>
/// <param name="hashedKey">unsigned int</param>
/// <param name="out">const Item *&</param>
/// <param name="out">const Item * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetWithHash")]
internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);

View File

@ -6,7 +6,7 @@ namespace Creatureliblibrary.Generated
{
internal static class LearnableAttacks
{
/// <param name="out">LearnableAttacks *&</param>
/// <param name="out">LearnableAttacks * &</param>
/// <param name="levelAttackCapacity">long unsigned int</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Construct")]

View File

@ -44,28 +44,28 @@ namespace Creatureliblibrary.Generated
/// <param name="p">SpeciesLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="out">const CreatureSpecies *&</param>
/// <param name="out">const CreatureSpecies * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGet")]
internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">SpeciesLibrary *</param>
/// <param name="hashedKey">unsigned int</param>
/// <param name="out">const CreatureSpecies *&</param>
/// <param name="out">const CreatureSpecies * &</param>
/// <returns>bool</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGetWithHash")]
internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">SpeciesLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="out">const CreatureSpecies *&</param>
/// <param name="out">const CreatureSpecies * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Get")]
internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">SpeciesLibrary *</param>
/// <param name="hashedKey">unsigned int</param>
/// <param name="out">const CreatureSpecies *&</param>
/// <param name="out">const CreatureSpecies * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetWithHash")]
internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);

View File

@ -82,7 +82,7 @@ namespace Creatureliblibrary.Generated
/// <param name="p">SpeciesVariant *</param>
/// <param name="secret">bool</param>
/// <param name="index">unsigned char</param>
/// <param name="out">const char *&</param>
/// <param name="out">const char * &</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalent")]
internal static extern byte GetTalent(IntPtr p, byte secret, byte index, ref IntPtr @out);

View File

@ -16,28 +16,28 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Destruct")]
internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="p">const TypeLibrary *</param>
/// <param name="type">const char *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeId")]
internal static extern byte GetTypeId(ref byte @out, IntPtr p, IntPtr type);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="p">const TypeLibrary *</param>
/// <param name="type">unsigned int</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeIdWithHash")]
internal static extern byte GetTypeIdWithHash(ref byte @out, IntPtr p, uint type);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="p">TypeLibrary *</param>
/// <param name="type">const char *</param>
/// <returns>unsigned char</returns>
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterType")]
internal static extern byte RegisterType(ref byte @out, IntPtr p, IntPtr type);
/// <param name="out">unsigned char&</param>
/// <param name="out">unsigned char &</param>
/// <param name="p">TypeLibrary *</param>
/// <param name="type">unsigned int</param>
/// <returns>unsigned char</returns>
@ -52,7 +52,7 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_SetEffectiveness")]
internal static extern byte SetEffectiveness(IntPtr p, byte attacking, byte defensive, float effectiveness);
/// <param name="out">float&</param>
/// <param name="out">float &</param>
/// <param name="p">TypeLibrary *</param>
/// <param name="attacking">unsigned char</param>
/// <param name="defensive">unsigned char</param>
@ -60,7 +60,7 @@ namespace Creatureliblibrary.Generated
[DllImport("CreatureLibLibrary", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetSingleEffectiveness")]
internal static extern byte GetSingleEffectiveness(ref float @out, IntPtr p, byte attacking, byte defensive);
/// <param name="out">float&</param>
/// <param name="out">float &</param>
/// <param name="p">TypeLibrary *</param>
/// <param name="attacking">unsigned char</param>
/// <param name="defensive">unsigned char *</param>

View File

@ -33,7 +33,7 @@ namespace Pkmnlib.Generated
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_FinalizeModule")]
internal static extern byte FinalizeModule(IntPtr p);
/// <param name="out">Script *&</param>
/// <param name="out">Script * &</param>
/// <param name="p">AngelScriptResolver *</param>
/// <param name="category">ScriptCategory</param>
/// <param name="scriptName">const char *</param>
@ -56,8 +56,8 @@ namespace Pkmnlib.Generated
/// <param name="p">AngelScriptResolver *</param>
/// <param name="stripDebugInfo">bool</param>
/// <param name="size">long unsigned int&</param>
/// <param name="out">unsigned char *&</param>
/// <param name="size">long unsigned int &</param>
/// <param name="out">unsigned char * &</param>
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToMemory")]
internal static extern byte WriteByteCodeToMemory(IntPtr p, byte stripDebugInfo, ref ulong size, ref IntPtr @out);

View File

@ -6,7 +6,7 @@ namespace Pkmnlib.Generated
{
internal static class Battle
{
/// <param name="out">Battle *&</param>
/// <param name="out">Battle * &</param>
/// <param name="library">const BattleLibrary *</param>
/// <param name="parties">const BattleParty * *</param>
/// <param name="partiesCount">long unsigned int</param>

View File

@ -6,7 +6,7 @@ namespace Pkmnlib.Generated
{
internal static class BattleLibrary
{
/// <param name="out">BattleLibrary *&</param>
/// <param name="out">BattleLibrary * &</param>
/// <param name="staticLib">PokemonLibrary *</param>
/// <param name="statCalculator">StatCalculator *</param>
/// <param name="damageLibrary">DamageLibrary *</param>

View File

@ -79,7 +79,7 @@ namespace Pkmnlib.Generated
/// <param name="data">const EvolutionData *</param>
/// <param name="index">long unsigned int</param>
/// <param name="out">const EffectParameter *&</param>
/// <param name="out">const EffectParameter * &</param>
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Evolution_GetData")]
internal static extern byte GetData(IntPtr data, ulong index, ref IntPtr @out);

View File

@ -25,7 +25,7 @@ namespace Pkmnlib.Generated
/// <param name="p">NatureLibrary *</param>
/// <param name="name">const char *</param>
/// <param name="out">const Nature *&</param>
/// <param name="out">const Nature * &</param>
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByName")]
internal static extern byte GetNatureByName(IntPtr p, IntPtr name, ref IntPtr @out);
@ -38,7 +38,7 @@ namespace Pkmnlib.Generated
/// <param name="p">NatureLibrary *</param>
/// <param name="nature">const Nature *</param>
/// <param name="out">const char *&</param>
/// <param name="out">const char * &</param>
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureName")]
internal static extern byte GetNatureName(IntPtr p, IntPtr nature, ref IntPtr @out);

View File

@ -6,7 +6,7 @@ namespace Pkmnlib.Generated
{
internal static class PokemonLibrary
{
/// <param name="out">PokemonLibrary *&</param>
/// <param name="out">PokemonLibrary * &</param>
/// <param name="settings">LibrarySettings *</param>
/// <param name="species">SpeciesLibrary *</param>
/// <param name="moves">MoveLibrary *</param>

View File

@ -6,7 +6,7 @@ namespace Pkmnlib.Generated
{
internal static class PokemonSpecies
{
/// <param name="out">const PokemonSpecies *&</param>
/// <param name="out">const PokemonSpecies * &</param>
/// <param name="id">unsigned short</param>
/// <param name="name">const char *</param>
/// <param name="defaultForme">const PokemonForme *</param>
@ -41,7 +41,7 @@ namespace Pkmnlib.Generated
/// <param name="p">const PokemonSpecies *</param>
/// <param name="index">long unsigned int</param>
/// <param name="out">const EvolutionData *&</param>
/// <param name="out">const EvolutionData * &</param>
/// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolution")]
internal static extern byte GetEvolution(IntPtr p, ulong index, ref IntPtr @out);

View File

@ -4,7 +4,7 @@ using PkmnLibSharp.Utilities;
namespace PkmnLibSharp.Library
{
public enum EffectParameterType
public enum EffectParameterType : byte
{
None = 0,
Bool = 1,
@ -57,7 +57,7 @@ namespace PkmnLibSharp.Library
public string AsString()
{
IntPtr p = IntPtr.Zero;
var p = IntPtr.Zero;
Creatureliblibrary.Generated.EffectParameter.AsString(Ptr, ref p).Assert();
return p.PtrString();
}

BIN
PkmnLibSharp/Native/libArbutils.so (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
PkmnLibSharp/Native/libpkmnLib.so (Stored with Git LFS)

Binary file not shown.

View File

@ -22,7 +22,4 @@
<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.7.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Battling" />
</ItemGroup>
</Project>

File diff suppressed because one or more lines are too long

View File

@ -49,6 +49,7 @@ def parse_function(function, classDict):
classDict[classKey].register_function(funcDef(function["name"], function["returns"], function["parameters"]))
def parse_type(type, enumSet):
type = type.strip();
if (type == "void"):
return "void"
if (type == "unsigned char"):

File diff suppressed because one or more lines are too long