Use full library names for Unity.

This commit is contained in:
Deukhoofd 2020-10-17 18:16:00 +02:00
parent 0a2ce2d6e4
commit 06e252dbac
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
90 changed files with 584 additions and 570 deletions

View File

@ -11,10 +11,15 @@ namespace PkmnLibSharp.Battling
internal LearnedMove(IntPtr ptr) : base(ptr){} internal LearnedMove(IntPtr ptr) : base(ptr){}
public LearnedMove(MoveData move, byte maxUses, MoveLearnMethod learnMethod) public LearnedMove(MoveData move, byte maxUses, MoveLearnMethod learnMethod)
{
Initialize(CreatePtr(move, maxUses, learnMethod));
}
protected static IntPtr CreatePtr(MoveData move, byte maxUses, MoveLearnMethod learnMethod)
{ {
var ptr = IntPtr.Zero; var ptr = IntPtr.Zero;
LearnedAttack.Construct(ref ptr, move.Ptr, maxUses, (AttackLearnMethod) learnMethod).Assert(); LearnedAttack.Construct(ref ptr, move.Ptr, maxUses, (AttackLearnMethod) learnMethod).Assert();
Initialize(ptr); return ptr;
} }
public MoveData Move public MoveData Move

View File

@ -23,18 +23,28 @@ namespace PkmnLibSharp.Battling
byte abilityIndex, byte abilityIndex,
IReadOnlyCollection<LearnedMove> moves, StatisticSet<byte> ivs, StatisticSet<byte> evs, IReadOnlyCollection<LearnedMove> moves, StatisticSet<byte> ivs, StatisticSet<byte> evs,
Nature nature) Nature nature)
: base(Pkmnlib.Generated.Pokemon.Construct( : base(CreatePtr(library, species, forme, level, experience, uid, gender, coloring, heldItem, nickname,
library.Ptr, species.Ptr, forme.Ptr, level, experience, hiddenAbility, abilityIndex, moves, ivs, evs, nature))
{
Library = library;
Initialize();
}
protected static IntPtr CreatePtr(BattleLibrary library, Species species, Forme forme,
byte level, uint experience, uint uid,
Gender gender, byte coloring, Item? heldItem, string? nickname, bool hiddenAbility,
byte abilityIndex,
IReadOnlyCollection<LearnedMove> moves, StatisticSet<byte> ivs, StatisticSet<byte> evs,
Nature nature)
{
return Pkmnlib.Generated.Pokemon.Construct(library.Ptr, species.Ptr, forme.Ptr, level, experience,
uid, (Pkmnlib.Gender) gender, coloring, heldItem?.Ptr ?? IntPtr.Zero, nickname.ToPtr(), uid, (Pkmnlib.Gender) gender, coloring, heldItem?.Ptr ?? IntPtr.Zero, nickname.ToPtr(),
hiddenAbility.ToNative(), abilityIndex, hiddenAbility.ToNative(), abilityIndex,
moves.Select(x => x?.Ptr ?? IntPtr.Zero).ToArray().ArrayPtr(), moves.Select(x => x?.Ptr ?? IntPtr.Zero).ToArray().ArrayPtr(),
(ulong) moves.Count, (ulong) moves.Count,
ivs.HP, ivs.Attack, ivs.Defense, ivs.SpecialAttack, ivs.HP, ivs.Attack, ivs.Defense, ivs.SpecialAttack,
ivs.SpecialDefense, ivs.Speed, evs.HP, evs.Attack, evs.Defense, ivs.SpecialDefense, ivs.Speed, evs.HP, evs.Attack, evs.Defense,
evs.SpecialAttack, evs.SpecialDefense, evs.Speed, nature.Ptr)) evs.SpecialAttack, evs.SpecialDefense, evs.Speed, nature.Ptr);
{
Library = library;
Initialize();
} }
public BattleLibrary Library { get; private set; } public BattleLibrary Library { get; private set; }
@ -169,14 +179,14 @@ namespace PkmnLibSharp.Battling
return _nickname; return _nickname;
} }
} }
public ReadOnlyNativePtrArray<LearnedMove?> Moves public ReadOnlyNativePtrArray<LearnedMove> Moves
{ {
get get
{ {
if (_moves != null) return _moves; if (_moves != null) return _moves;
var movesLength = Creaturelib.Generated.Creature.GetAttacksCount(Ptr); var movesLength = Creaturelib.Generated.Creature.GetAttacksCount(Ptr);
var movesPtr = Creaturelib.Generated.Creature.GetAttacks(Ptr); var movesPtr = Creaturelib.Generated.Creature.GetAttacks(Ptr);
_moves = new ReadOnlyNativePtrArray<LearnedMove?>(movesPtr, (int) movesLength, _moves = new ReadOnlyNativePtrArray<LearnedMove>(movesPtr, (int) movesLength,
Constructor.GenericType.LearnedMove); Constructor.GenericType.LearnedMove);
return _moves; return _moves;
} }
@ -443,7 +453,7 @@ namespace PkmnLibSharp.Battling
private Species? _species; private Species? _species;
private Forme? _forme; private Forme? _forme;
private string? _nickname; private string? _nickname;
private ReadOnlyNativePtrArray<LearnedMove?>? _moves; private ReadOnlyNativePtrArray<LearnedMove>? _moves;
private Nature? _nature; private Nature? _nature;
private Battle? _battle; private Battle? _battle;
private BattleSide? _battleSide; private BattleSide? _battleSide;

View File

@ -194,6 +194,7 @@ namespace PkmnLibSharp.Battling
Gender = species.GetRandomGender(random); Gender = species.GetRandomGender(random);
} }
PopulateUninitialized(species, forme!, random);
return Finalize(species, forme!, heldItem, moves, nature); return Finalize(species, forme!, heldItem, moves, nature);
} }
} }

View File

@ -6,7 +6,7 @@ using PkmnLibSharp.Utilities;
namespace PkmnLibSharp.Battling namespace PkmnLibSharp.Battling
{ {
public class PokemonParty : PointerWrapper, IEnumerable<Pokemon> public class PokemonParty : PointerWrapper, IEnumerable<Pokemon?>
{ {
private Pokemon?[]? _cache; private Pokemon?[]? _cache;
private ReadOnlyNativePtrArray<Pokemon>? _party; private ReadOnlyNativePtrArray<Pokemon>? _party;
@ -28,9 +28,9 @@ namespace PkmnLibSharp.Battling
_cache = Party.ToArray(); _cache = Party.ToArray();
} }
public virtual Pokemon this[int i] => GetAtIndex((ulong) i); public virtual Pokemon? this[int i] => GetAtIndex((ulong) i);
public Pokemon GetAtIndex(ulong index) public Pokemon? GetAtIndex(ulong index)
{ {
var ptr = IntPtr.Zero; var ptr = IntPtr.Zero;
Creaturelib.Generated.CreatureParty.GetAtIndex(ref ptr, Ptr, index).Assert(); Creaturelib.Generated.CreatureParty.GetAtIndex(ref ptr, Ptr, index).Assert();
@ -45,10 +45,12 @@ namespace PkmnLibSharp.Battling
_cache[indexB] = temp; _cache[indexB] = temp;
} }
public Pokemon SwapInto(ulong indexA, Pokemon pokemon) public Pokemon? SwapInto(ulong indexA, Pokemon? pokemon)
{ {
var ptr = IntPtr.Zero; var ptr = IntPtr.Zero;
Creaturelib.Generated.CreatureParty.SwapInto(ref ptr, Ptr, indexA, pokemon.Ptr).Assert(); var pkmnPtr = IntPtr.Zero;
if (pokemon != null) pkmnPtr = pokemon.Ptr;
Creaturelib.Generated.CreatureParty.SwapInto(ref ptr, Ptr, indexA, pkmnPtr).Assert();
_cache![indexA] = pokemon; _cache![indexA] = pokemon;
if (TryResolvePointer(ptr, out Pokemon? newPokemon)) if (TryResolvePointer(ptr, out Pokemon? newPokemon))
return newPokemon!; return newPokemon!;

View File

@ -7,17 +7,13 @@ namespace Arbutils.Generated
internal static class C internal static class C
{ {
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_C_GetLastException")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_C_GetLastException")]
internal static extern IntPtr GetLastException(); internal static extern IntPtr GetLastException();
/// <param name="callback">Function *</param> /// <param name="callback">Function *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_C_SetSignalCallback")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_C_SetSignalCallback")]
internal static extern void SetSignalCallback(IntPtr callback); internal static extern void SetSignalCallback(IntPtr callback);
/// <returns>void</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_C_RaiseSignal")]
internal static extern void RaiseSignal();
} }
} }

View File

@ -7,39 +7,39 @@ namespace Arbutils.Generated
internal static class Random internal static class Random
{ {
/// <returns>Random *</returns> /// <returns>Random *</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_Construct")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="seed">long unsigned int</param> /// <param name="seed">long unsigned int</param>
/// <returns>Random *</returns> /// <returns>Random *</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_ConstructWithSeed")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_ConstructWithSeed")]
internal static extern IntPtr ConstructWithSeed(ulong seed); internal static extern IntPtr ConstructWithSeed(ulong seed);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_Destruct")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetFloat")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetFloat")]
internal static extern float GetFloat(IntPtr p); internal static extern float GetFloat(IntPtr p);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <returns>double</returns> /// <returns>double</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetDouble")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetDouble")]
internal static extern double GetDouble(IntPtr p); internal static extern double GetDouble(IntPtr p);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <returns>int</returns> /// <returns>int</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_Get")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_Get")]
internal static extern int Get(IntPtr p); internal static extern int Get(IntPtr p);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <param name="max">int</param> /// <param name="max">int</param>
/// <param name="out">int &</param> /// <param name="out">int &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetWithMax")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetWithMax")]
internal static extern byte GetWithMax(IntPtr p, int max, ref int @out); internal static extern byte GetWithMax(IntPtr p, int max, ref int @out);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
@ -47,19 +47,19 @@ namespace Arbutils.Generated
/// <param name="max">int</param> /// <param name="max">int</param>
/// <param name="out">int &</param> /// <param name="out">int &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetInLimits")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetInLimits")]
internal static extern byte GetInLimits(IntPtr p, int min, int max, ref int @out); internal static extern byte GetInLimits(IntPtr p, int min, int max, ref int @out);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetUnsigned")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetUnsigned")]
internal static extern uint GetUnsigned(IntPtr p); internal static extern uint GetUnsigned(IntPtr p);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <param name="max">unsigned int</param> /// <param name="max">unsigned int</param>
/// <param name="out">unsigned int &</param> /// <param name="out">unsigned int &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetUnsignedWithMax")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetUnsignedWithMax")]
internal static extern byte GetUnsignedWithMax(IntPtr p, uint max, ref uint @out); internal static extern byte GetUnsignedWithMax(IntPtr p, uint max, ref uint @out);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
@ -67,12 +67,12 @@ namespace Arbutils.Generated
/// <param name="max">unsigned int</param> /// <param name="max">unsigned int</param>
/// <param name="out">unsigned int &</param> /// <param name="out">unsigned int &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetUnsignedInLimits")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetUnsignedInLimits")]
internal static extern byte GetUnsignedInLimits(IntPtr p, uint min, uint max, ref uint @out); internal static extern byte GetUnsignedInLimits(IntPtr p, uint min, uint max, ref uint @out);
/// <param name="p">Random *</param> /// <param name="p">Random *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("Arbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetSeed")] [DllImport("libArbutils", CallingConvention = CallingConvention.Cdecl, EntryPoint= "Arbutils_Random_GetSeed")]
internal static extern ulong GetSeed(IntPtr p); internal static extern ulong GetSeed(IntPtr p);
} }

View File

@ -22,73 +22,73 @@ namespace Creaturelib.Generated
/// <param name="flags">const char * *</param> /// <param name="flags">const char * *</param>
/// <param name="flagsCount">long unsigned int</param> /// <param name="flagsCount">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Construct")] [DllImport("libCreatureLib", 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); 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);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetName")]
internal static extern IntPtr GetName(IntPtr p); internal static extern IntPtr GetName(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetType")]
internal static extern byte GetType(IntPtr p); internal static extern byte GetType(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>AttackCategory</returns> /// <returns>AttackCategory</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetCategory")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetCategory")]
internal static extern AttackCategory GetCategory(IntPtr p); internal static extern AttackCategory GetCategory(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetBasePower")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetBasePower")]
internal static extern byte GetBasePower(IntPtr p); internal static extern byte GetBasePower(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetAccuracy")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetAccuracy")]
internal static extern byte GetAccuracy(IntPtr p); internal static extern byte GetAccuracy(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetBaseUsages")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetBaseUsages")]
internal static extern byte GetBaseUsages(IntPtr p); internal static extern byte GetBaseUsages(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>AttackTarget</returns> /// <returns>AttackTarget</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetTarget")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetTarget")]
internal static extern AttackTarget GetTarget(IntPtr p); internal static extern AttackTarget GetTarget(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>signed char</returns> /// <returns>signed char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetPriority")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetPriority")]
internal static extern sbyte GetPriority(IntPtr p); internal static extern sbyte GetPriority(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasSecondaryEffect")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasSecondaryEffect")]
internal static extern byte HasSecondaryEffect(IntPtr p); internal static extern byte HasSecondaryEffect(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectChance")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectChance")]
internal static extern float GetSecondaryEffectChance(IntPtr p); internal static extern float GetSecondaryEffectChance(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_GetSecondaryEffectName")]
internal static extern IntPtr GetSecondaryEffectName(IntPtr p); internal static extern IntPtr GetSecondaryEffectName(IntPtr p);
/// <param name="p">const AttackData *</param> /// <param name="p">const AttackData *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasFlag")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackData_HasFlag")]
internal static extern byte HasFlag(IntPtr p, IntPtr key); internal static extern byte HasFlag(IntPtr p, IntPtr key);
} }

View File

@ -9,78 +9,78 @@ namespace Creaturelib.Generated
/// <param name="library">AttackLibrary * &</param> /// <param name="library">AttackLibrary * &</param>
/// <param name="initialCapacity">long unsigned int</param> /// <param name="initialCapacity">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Construct")]
internal static extern byte Construct(ref IntPtr library, ulong initialCapacity); internal static extern byte Construct(ref IntPtr library, ulong initialCapacity);
/// <param name="p">const AttackLibrary *</param> /// <param name="p">const AttackLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="t">AttackData *</param> /// <param name="t">AttackData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Insert")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Insert")]
internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t); internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="t">AttackData *</param> /// <param name="t">AttackData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_InsertWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_InsertWithHash")]
internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t); internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Delete")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Delete")]
internal static extern byte Delete(IntPtr p, IntPtr name); internal static extern byte Delete(IntPtr p, IntPtr name);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_DeleteWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_DeleteWithHash")]
internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey); internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const AttackData * &</param> /// <param name="out">const AttackData * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGet")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGet")]
internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="out">const AttackData * &</param> /// <param name="out">const AttackData * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGetWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_TryGetWithHash")]
internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const AttackData * &</param> /// <param name="out">const AttackData * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Get")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_Get")]
internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="out">const AttackData * &</param> /// <param name="out">const AttackData * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetWithHash")]
internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetCount")]
internal static extern ulong GetCount(IntPtr p); internal static extern ulong GetCount(IntPtr p);
/// <param name="p">AttackLibrary *</param> /// <param name="p">AttackLibrary *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="out">const AttackData * &</param> /// <param name="out">const AttackData * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetAtIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackLibrary_GetAtIndex")]
internal static extern byte GetAtIndex(IntPtr p, ulong index, ref IntPtr @out); internal static extern byte GetAtIndex(IntPtr p, ulong index, ref IntPtr @out);
} }

View File

@ -11,43 +11,43 @@ namespace Creaturelib.Generated
/// <param name="sideIndex">unsigned char</param> /// <param name="sideIndex">unsigned char</param>
/// <param name="targetIndex">unsigned char</param> /// <param name="targetIndex">unsigned char</param>
/// <returns>AttackTurnChoice *</returns> /// <returns>AttackTurnChoice *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Construct")]
internal static extern IntPtr Construct(IntPtr user, IntPtr attack, byte sideIndex, byte targetIndex); internal static extern IntPtr Construct(IntPtr user, IntPtr attack, byte sideIndex, byte targetIndex);
/// <param name="p">AttackTurnChoice *</param> /// <param name="p">AttackTurnChoice *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const AttackTurnChoice *</param> /// <param name="p">const AttackTurnChoice *</param>
/// <returns>LearnedAttack *</returns> /// <returns>LearnedAttack *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttack")]
internal static extern IntPtr GetAttack(IntPtr p); internal static extern IntPtr GetAttack(IntPtr p);
/// <param name="p">const AttackTurnChoice *</param> /// <param name="p">const AttackTurnChoice *</param>
/// <returns>TurnChoiceKind</returns> /// <returns>TurnChoiceKind</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetKind")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetKind")]
internal static extern TurnChoiceKind GetKind(IntPtr p); internal static extern TurnChoiceKind GetKind(IntPtr p);
/// <param name="out">signed char &</param> /// <param name="out">signed char &</param>
/// <param name="p">AttackTurnChoice *</param> /// <param name="p">AttackTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetPriority")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetPriority")]
internal static extern byte GetPriority(ref sbyte @out, IntPtr p); internal static extern byte GetPriority(ref sbyte @out, IntPtr p);
/// <param name="p">const AttackTurnChoice *</param> /// <param name="p">const AttackTurnChoice *</param>
/// <returns>Script *</returns> /// <returns>Script *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttackScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetAttackScript")]
internal static extern IntPtr GetAttackScript(IntPtr p); internal static extern IntPtr GetAttackScript(IntPtr p);
/// <param name="p">const AttackTurnChoice *</param> /// <param name="p">const AttackTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetSideIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetSideIndex")]
internal static extern byte GetTargetSideIndex(IntPtr p); internal static extern byte GetTargetSideIndex(IntPtr p);
/// <param name="p">const AttackTurnChoice *</param> /// <param name="p">const AttackTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetCreatureIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackTurnChoice_GetTargetCreatureIndex")]
internal static extern byte GetTargetCreatureIndex(IntPtr p); internal static extern byte GetTargetCreatureIndex(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const AttackUseEvent *</param> /// <param name="p">const AttackUseEvent *</param>
/// <returns>const ExecutingAttack *</returns> /// <returns>const ExecutingAttack *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackUseEvent_GetAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackUseEvent_GetAttack")]
internal static extern IntPtr GetAttack(IntPtr p); internal static extern IntPtr GetAttack(IntPtr p);
/// <param name="p">const AttackUseEvent *</param> /// <param name="p">const AttackUseEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackUseEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackUseEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,7 +8,7 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const AttackUseHistory *</param> /// <param name="p">const AttackUseHistory *</param>
/// <returns>const ExecutingAttack *</returns> /// <returns>const ExecutingAttack *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackUseHistory_GetAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_AttackUseHistory_GetAttack")]
internal static extern IntPtr GetAttack(IntPtr p); internal static extern IntPtr GetAttack(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const BaseTurnChoice *</param> /// <param name="p">const BaseTurnChoice *</param>
/// <returns>TurnChoiceKind</returns> /// <returns>TurnChoiceKind</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetKind")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetKind")]
internal static extern TurnChoiceKind GetKind(IntPtr p); internal static extern TurnChoiceKind GetKind(IntPtr p);
/// <param name="p">const BaseTurnChoice *</param> /// <param name="p">const BaseTurnChoice *</param>
/// <returns>Creature *</returns> /// <returns>Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetUser")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BaseTurnChoice_GetUser")]
internal static extern IntPtr GetUser(IntPtr p); internal static extern IntPtr GetUser(IntPtr p);
} }

View File

@ -15,68 +15,68 @@ namespace Creaturelib.Generated
/// <param name="creaturesPerSide">unsigned char</param> /// <param name="creaturesPerSide">unsigned char</param>
/// <param name="randomSeed">long unsigned int</param> /// <param name="randomSeed">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Construct")] [DllImport("libCreatureLib", 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); internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr partyArr, ulong numberOfParties, byte canFlee, byte numberOfSides, byte creaturesPerSide, ulong randomSeed);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>const BattleLibrary *</returns> /// <returns>const BattleLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetLibrary")]
internal static extern IntPtr GetLibrary(IntPtr p); internal static extern IntPtr GetLibrary(IntPtr p);
/// <param name="out">bool &</param> /// <param name="out">bool &</param>
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="turnChoice">BaseTurnChoice *</param> /// <param name="turnChoice">BaseTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanUse")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanUse")]
internal static extern byte CanUse(ref byte @out, IntPtr p, IntPtr turnChoice); 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="p">Battle *</param>
/// <param name="turnChoice">BaseTurnChoice *</param> /// <param name="turnChoice">BaseTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_TrySetChoice")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_TrySetChoice")]
internal static extern byte TrySetChoice(ref byte @out, IntPtr p, IntPtr turnChoice); internal static extern byte TrySetChoice(ref byte @out, IntPtr p, IntPtr turnChoice);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanFlee")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanFlee")]
internal static extern byte CanFlee(IntPtr p); internal static extern byte CanFlee(IntPtr p);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CheckChoicesSetAndRun")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CheckChoicesSetAndRun")]
internal static extern byte CheckChoicesSetAndRun(IntPtr p); internal static extern byte CheckChoicesSetAndRun(IntPtr p);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCurrentTurn")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCurrentTurn")]
internal static extern uint GetCurrentTurn(IntPtr p); internal static extern uint GetCurrentTurn(IntPtr p);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCreaturesPerSide")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCreaturesPerSide")]
internal static extern uint GetCreaturesPerSide(IntPtr p); internal static extern uint GetCreaturesPerSide(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>ChoiceQueue *</returns> /// <returns>ChoiceQueue *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCurrentTurnQueue")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCurrentTurnQueue")]
internal static extern IntPtr GetCurrentTurnQueue(IntPtr p); internal static extern IntPtr GetCurrentTurnQueue(IntPtr p);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>BattleRandom *</returns> /// <returns>BattleRandom *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetRandom")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetRandom")]
internal static extern IntPtr GetRandom(IntPtr p); 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="p">const Battle *</param>
/// <param name="c">Creature *</param> /// <param name="c">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CreatureInField")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CreatureInField")]
internal static extern byte CreatureInField(ref byte @out, IntPtr p, IntPtr c); internal static extern byte CreatureInField(ref byte @out, IntPtr p, IntPtr c);
/// <param name="out">Creature * &</param> /// <param name="out">Creature * &</param>
@ -84,14 +84,14 @@ namespace Creaturelib.Generated
/// <param name="side">unsigned char</param> /// <param name="side">unsigned char</param>
/// <param name="target">unsigned char</param> /// <param name="target">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetCreature")]
internal static extern byte GetCreature(ref IntPtr @out, IntPtr p, byte side, byte target); internal static extern byte GetCreature(ref IntPtr @out, IntPtr p, byte side, byte target);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="side">unsigned char</param> /// <param name="side">unsigned char</param>
/// <param name="target">unsigned char</param> /// <param name="target">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ForceRecall")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ForceRecall")]
internal static extern byte ForceRecall(IntPtr p, byte side, byte target); internal static extern byte ForceRecall(IntPtr p, byte side, byte target);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
@ -99,7 +99,7 @@ namespace Creaturelib.Generated
/// <param name="target">unsigned char</param> /// <param name="target">unsigned char</param>
/// <param name="c">Creature *</param> /// <param name="c">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_SwitchCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_SwitchCreature")]
internal static extern byte SwitchCreature(IntPtr p, byte side, byte target, IntPtr c); internal static extern byte SwitchCreature(IntPtr p, byte side, byte target, IntPtr c);
/// <param name="out">bool &</param> /// <param name="out">bool &</param>
@ -107,99 +107,99 @@ namespace Creaturelib.Generated
/// <param name="side">unsigned char</param> /// <param name="side">unsigned char</param>
/// <param name="target">unsigned char</param> /// <param name="target">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanSlotBeFilled")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_CanSlotBeFilled")]
internal static extern byte CanSlotBeFilled(ref byte @out, IntPtr p, byte side, byte target); internal static extern byte CanSlotBeFilled(ref byte @out, IntPtr p, byte side, byte target);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ValidateBattleState")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_ValidateBattleState")]
internal static extern byte ValidateBattleState(IntPtr p); internal static extern byte ValidateBattleState(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasEnded")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasEnded")]
internal static extern byte HasEnded(IntPtr p); internal static extern byte HasEnded(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasConclusiveResult")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasConclusiveResult")]
internal static extern byte HasConclusiveResult(IntPtr p); internal static extern byte HasConclusiveResult(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetWinningSide")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetWinningSide")]
internal static extern byte GetWinningSide(IntPtr p); internal static extern byte GetWinningSide(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSidesCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSidesCount")]
internal static extern ulong GetSidesCount(IntPtr p); internal static extern ulong GetSidesCount(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>const BattleSide * *</returns> /// <returns>const BattleSide * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSides")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetSides")]
internal static extern IntPtr GetSides(IntPtr p); internal static extern IntPtr GetSides(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetPartiesCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetPartiesCount")]
internal static extern ulong GetPartiesCount(IntPtr p); internal static extern ulong GetPartiesCount(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>const BattleParty * *</returns> /// <returns>const BattleParty * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetParties")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetParties")]
internal static extern IntPtr GetParties(IntPtr p); internal static extern IntPtr GetParties(IntPtr p);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>Script *</returns> /// <returns>Script *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetVolatileScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetVolatileScript")]
internal static extern IntPtr GetVolatileScript(IntPtr p, IntPtr key); internal static extern IntPtr GetVolatileScript(IntPtr p, IntPtr key);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScriptByName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScriptByName")]
internal static extern byte AddVolatileScriptByName(IntPtr p, IntPtr key); internal static extern byte AddVolatileScriptByName(IntPtr p, IntPtr key);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="script">Script *</param> /// <param name="script">Script *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_AddVolatileScript")]
internal static extern byte AddVolatileScript(IntPtr p, IntPtr script); internal static extern byte AddVolatileScript(IntPtr p, IntPtr script);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScript")]
internal static extern byte RemoveVolatileScript(IntPtr p, IntPtr key); internal static extern byte RemoveVolatileScript(IntPtr p, IntPtr key);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="script">Script *</param> /// <param name="script">Script *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScriptWithScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RemoveVolatileScriptWithScript")]
internal static extern byte RemoveVolatileScriptWithScript(IntPtr p, IntPtr script); internal static extern byte RemoveVolatileScriptWithScript(IntPtr p, IntPtr script);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasVolatileScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_HasVolatileScript")]
internal static extern byte HasVolatileScript(IntPtr p, IntPtr key); internal static extern byte HasVolatileScript(IntPtr p, IntPtr key);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="func">Function *</param> /// <param name="func">Function *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RegisterEventListener")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_RegisterEventListener")]
internal static extern byte RegisterEventListener(IntPtr p, IntPtr func); internal static extern byte RegisterEventListener(IntPtr p, IntPtr func);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>const HistoryHolder *</returns> /// <returns>const HistoryHolder *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetHistory")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetHistory")]
internal static extern IntPtr GetHistory(IntPtr p); internal static extern IntPtr GetHistory(IntPtr p);
/// <param name="p">const Battle *</param> /// <param name="p">const Battle *</param>
/// <returns>long int</returns> /// <returns>long int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetLastTurnTimeMicroseconds")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Battle_GetLastTurnTimeMicroseconds")]
internal static extern long GetLastTurnTimeMicroseconds(IntPtr p); internal static extern long GetLastTurnTimeMicroseconds(IntPtr p);
} }

View File

@ -14,37 +14,37 @@ namespace Creaturelib.Generated
/// <param name="scriptResolver">ScriptResolver *</param> /// <param name="scriptResolver">ScriptResolver *</param>
/// <param name="miscLibrary">MiscLibrary *</param> /// <param name="miscLibrary">MiscLibrary *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_Construct")] [DllImport("libCreatureLib", 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); internal static extern byte Construct(ref IntPtr @out, IntPtr staticLib, IntPtr statCalculator, IntPtr damageLibrary, IntPtr experienceLibrary, IntPtr scriptResolver, IntPtr miscLibrary);
/// <param name="p">const BattleLibrary *</param> /// <param name="p">const BattleLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const BattleLibrary *</param> /// <param name="p">const BattleLibrary *</param>
/// <returns>const DataLibrary *</returns> /// <returns>const DataLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetStaticLib")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetStaticLib")]
internal static extern IntPtr GetStaticLib(IntPtr p); internal static extern IntPtr GetStaticLib(IntPtr p);
/// <param name="p">const BattleLibrary *</param> /// <param name="p">const BattleLibrary *</param>
/// <returns>const BattleStatCalculator *</returns> /// <returns>const BattleStatCalculator *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetStatCalculator")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetStatCalculator")]
internal static extern IntPtr GetStatCalculator(IntPtr p); internal static extern IntPtr GetStatCalculator(IntPtr p);
/// <param name="p">const BattleLibrary *</param> /// <param name="p">const BattleLibrary *</param>
/// <returns>const DamageLibrary *</returns> /// <returns>const DamageLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetDamageLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetDamageLibrary")]
internal static extern IntPtr GetDamageLibrary(IntPtr p); internal static extern IntPtr GetDamageLibrary(IntPtr p);
/// <param name="p">const BattleLibrary *</param> /// <param name="p">const BattleLibrary *</param>
/// <returns>const MiscLibrary *</returns> /// <returns>const MiscLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetMiscLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetMiscLibrary")]
internal static extern IntPtr GetMiscLibrary(IntPtr p); internal static extern IntPtr GetMiscLibrary(IntPtr p);
/// <param name="p">const BattleLibrary *</param> /// <param name="p">const BattleLibrary *</param>
/// <returns>const ExperienceLibrary *</returns> /// <returns>const ExperienceLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetExperienceLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleLibrary_GetExperienceLibrary")]
internal static extern IntPtr GetExperienceLibrary(IntPtr p); internal static extern IntPtr GetExperienceLibrary(IntPtr p);
} }

View File

@ -11,17 +11,17 @@ namespace Creaturelib.Generated
/// <param name="creatureIndices">unsigned char *</param> /// <param name="creatureIndices">unsigned char *</param>
/// <param name="numberOfIndices">long unsigned int</param> /// <param name="numberOfIndices">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Construct")]
internal static extern byte Construct(ref IntPtr @out, IntPtr p, IntPtr creatureIndices, ulong numberOfIndices); internal static extern byte Construct(ref IntPtr @out, IntPtr p, IntPtr creatureIndices, ulong numberOfIndices);
/// <param name="p">const BattleParty *</param> /// <param name="p">const BattleParty *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const BattleParty *</param> /// <param name="p">const BattleParty *</param>
/// <returns>CreatureParty *</returns> /// <returns>CreatureParty *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_GetParty")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_GetParty")]
internal static extern IntPtr GetParty(IntPtr p); internal static extern IntPtr GetParty(IntPtr p);
/// <param name="out">bool &</param> /// <param name="out">bool &</param>
@ -29,12 +29,12 @@ namespace Creaturelib.Generated
/// <param name="side">unsigned char</param> /// <param name="side">unsigned char</param>
/// <param name="creature">unsigned char</param> /// <param name="creature">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_IsResponsibleForIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_IsResponsibleForIndex")]
internal static extern byte IsResponsibleForIndex(ref byte @out, IntPtr p, byte side, byte creature); internal static extern byte IsResponsibleForIndex(ref byte @out, IntPtr p, byte side, byte creature);
/// <param name="p">const BattleParty *</param> /// <param name="p">const BattleParty *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_HasCreaturesNotInField")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleParty_HasCreaturesNotInField")]
internal static extern byte HasCreaturesNotInField(IntPtr p); internal static extern byte HasCreaturesNotInField(IntPtr p);
} }

View File

@ -7,17 +7,17 @@ namespace Creaturelib.Generated
internal static class BattleRandom internal static class BattleRandom
{ {
/// <returns>BattleRandom *</returns> /// <returns>BattleRandom *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="seed">long unsigned int</param> /// <param name="seed">long unsigned int</param>
/// <returns>BattleRandom *</returns> /// <returns>BattleRandom *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_ConstructWithSeed")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_ConstructWithSeed")]
internal static extern IntPtr ConstructWithSeed(ulong seed); internal static extern IntPtr ConstructWithSeed(ulong seed);
/// <param name="p">BattleRandom *</param> /// <param name="p">BattleRandom *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="out">bool &</param> /// <param name="out">bool &</param>
@ -26,30 +26,30 @@ namespace Creaturelib.Generated
/// <param name="attack">ExecutingAttack *</param> /// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_EffectChance")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_EffectChance")]
internal static extern byte EffectChance(ref byte @out, IntPtr p, float chance, IntPtr attack, IntPtr target); internal static extern byte EffectChance(ref byte @out, IntPtr p, float chance, IntPtr attack, IntPtr target);
/// <param name="p">BattleRandom *</param> /// <param name="p">BattleRandom *</param>
/// <returns>int</returns> /// <returns>int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Get")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_Get")]
internal static extern int Get(IntPtr p); internal static extern int Get(IntPtr p);
/// <param name="p">BattleRandom *</param> /// <param name="p">BattleRandom *</param>
/// <param name="max">int</param> /// <param name="max">int</param>
/// <returns>int</returns> /// <returns>int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetMax")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetMax")]
internal static extern int GetMax(IntPtr p, int max); internal static extern int GetMax(IntPtr p, int max);
/// <param name="p">BattleRandom *</param> /// <param name="p">BattleRandom *</param>
/// <param name="min">int</param> /// <param name="min">int</param>
/// <param name="max">int</param> /// <param name="max">int</param>
/// <returns>int</returns> /// <returns>int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetMinMax")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetMinMax")]
internal static extern int GetMinMax(IntPtr p, int min, int max); internal static extern int GetMinMax(IntPtr p, int min, int max);
/// <param name="p">BattleRandom *</param> /// <param name="p">BattleRandom *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetSeed")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleRandom_GetSeed")]
internal static extern ulong GetSeed(IntPtr p); internal static extern ulong GetSeed(IntPtr p);
} }

View File

@ -10,81 +10,81 @@ namespace Creaturelib.Generated
/// <param name="battle">Battle *</param> /// <param name="battle">Battle *</param>
/// <param name="creaturesPerSide">unsigned char</param> /// <param name="creaturesPerSide">unsigned char</param>
/// <returns>BattleSide *</returns> /// <returns>BattleSide *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_Construct")]
internal static extern IntPtr Construct(byte index, IntPtr battle, byte creaturesPerSide); internal static extern IntPtr Construct(byte index, IntPtr battle, byte creaturesPerSide);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllChoicesSet")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllChoicesSet")]
internal static extern byte AllChoicesSet(IntPtr p); internal static extern byte AllChoicesSet(IntPtr p);
/// <param name="out">bool &</param> /// <param name="out">bool &</param>
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllPossibleSlotsFilled")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_AllPossibleSlotsFilled")]
internal static extern byte AllPossibleSlotsFilled(ref byte @out, IntPtr p); internal static extern byte AllPossibleSlotsFilled(ref byte @out, IntPtr p);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <param name="choice">BaseTurnChoice *</param> /// <param name="choice">BaseTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetChoice")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetChoice")]
internal static extern byte SetChoice(IntPtr p, IntPtr choice); internal static extern byte SetChoice(IntPtr p, IntPtr choice);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_ResetChoices")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_ResetChoices")]
internal static extern void ResetChoices(IntPtr p); internal static extern void ResetChoices(IntPtr p);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <param name="creature">Creature *</param> /// <param name="creature">Creature *</param>
/// <param name="index">unsigned char</param> /// <param name="index">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_SetCreature")]
internal static extern byte SetCreature(IntPtr p, IntPtr creature, byte index); 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="p">BattleSide *</param>
/// <param name="index">unsigned char</param> /// <param name="index">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetCreature")]
internal static extern byte GetCreature(ref IntPtr @out, IntPtr p, byte index); internal static extern byte GetCreature(ref IntPtr @out, IntPtr p, byte index);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetSideIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetSideIndex")]
internal static extern byte GetSideIndex(IntPtr p); 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="p">BattleSide *</param>
/// <param name="c">Creature *</param> /// <param name="c">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetCreatureIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_GetCreatureIndex")]
internal static extern byte GetCreatureIndex(ref byte @out, IntPtr p, IntPtr c); internal static extern byte GetCreatureIndex(ref byte @out, IntPtr p, IntPtr c);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <param name="c">Creature *</param> /// <param name="c">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_MarkSlotAsUnfillable")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_MarkSlotAsUnfillable")]
internal static extern byte MarkSlotAsUnfillable(IntPtr p, IntPtr c); internal static extern byte MarkSlotAsUnfillable(IntPtr p, IntPtr c);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_IsDefeated")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_IsDefeated")]
internal static extern byte IsDefeated(IntPtr p); internal static extern byte IsDefeated(IntPtr p);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_HasFled")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_HasFled")]
internal static extern byte HasFled(IntPtr p); internal static extern byte HasFled(IntPtr p);
/// <param name="p">BattleSide *</param> /// <param name="p">BattleSide *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_MarkAsFled")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleSide_MarkAsFled")]
internal static extern void MarkAsFled(IntPtr p); internal static extern void MarkAsFled(IntPtr p);
} }

View File

@ -7,12 +7,12 @@ namespace Creaturelib.Generated
internal static class BattleStatCalculator internal static class BattleStatCalculator
{ {
/// <returns>const BattleStatCalculator *</returns> /// <returns>const BattleStatCalculator *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">const BattleStatCalculator *</param> /// <param name="p">const BattleStatCalculator *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned int &</param> /// <param name="out">unsigned int &</param>
@ -20,7 +20,7 @@ namespace Creaturelib.Generated
/// <param name="creature">Creature *</param> /// <param name="creature">Creature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateFlatStat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateFlatStat")]
internal static extern byte CalculateFlatStat(ref uint @out, IntPtr p, IntPtr creature, Statistic stat); 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>
@ -28,7 +28,7 @@ namespace Creaturelib.Generated
/// <param name="creature">Creature *</param> /// <param name="creature">Creature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateBoostedStat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_BattleStatCalculator_CalculateBoostedStat")]
internal static extern byte CalculateBoostedStat(ref uint @out, IntPtr p, IntPtr creature, Statistic stat); internal static extern byte CalculateBoostedStat(ref uint @out, IntPtr p, IntPtr creature, Statistic stat);
} }

View File

@ -7,11 +7,11 @@ namespace Creaturelib.Generated
internal static class C internal static class C
{ {
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastException")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastException")]
internal static extern IntPtr GetLastException(); internal static extern IntPtr GetLastException();
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastExceptionStacktrace")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_C_GetLastExceptionStacktrace")]
internal static extern IntPtr GetLastExceptionStacktrace(); internal static extern IntPtr GetLastExceptionStacktrace();
} }

View File

@ -8,17 +8,17 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const ChangeSpeciesEvent *</param> /// <param name="p">const ChangeSpeciesEvent *</param>
/// <returns>const Creature *</returns> /// <returns>const Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeSpeciesEvent_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeSpeciesEvent_GetCreature")]
internal static extern IntPtr GetCreature(IntPtr p); internal static extern IntPtr GetCreature(IntPtr p);
/// <param name="p">const ChangeSpeciesEvent *</param> /// <param name="p">const ChangeSpeciesEvent *</param>
/// <returns>const CreatureSpecies *</returns> /// <returns>const CreatureSpecies *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeSpeciesEvent_GetNewSpecies")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeSpeciesEvent_GetNewSpecies")]
internal static extern IntPtr GetNewSpecies(IntPtr p); internal static extern IntPtr GetNewSpecies(IntPtr p);
/// <param name="p">const ChangeSpeciesEvent *</param> /// <param name="p">const ChangeSpeciesEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeSpeciesEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeSpeciesEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,17 +8,17 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const ChangeVariantEvent *</param> /// <param name="p">const ChangeVariantEvent *</param>
/// <returns>const Creature *</returns> /// <returns>const Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeVariantEvent_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeVariantEvent_GetCreature")]
internal static extern IntPtr GetCreature(IntPtr p); internal static extern IntPtr GetCreature(IntPtr p);
/// <param name="p">const ChangeVariantEvent *</param> /// <param name="p">const ChangeVariantEvent *</param>
/// <returns>const SpeciesVariant *</returns> /// <returns>const SpeciesVariant *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeVariantEvent_GetNewVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeVariantEvent_GetNewVariant")]
internal static extern IntPtr GetNewVariant(IntPtr p); internal static extern IntPtr GetNewVariant(IntPtr p);
/// <param name="p">const ChangeVariantEvent *</param> /// <param name="p">const ChangeVariantEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeVariantEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ChangeVariantEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -23,323 +23,323 @@ namespace Creaturelib.Generated
/// <param name="attacksNum">long unsigned int</param> /// <param name="attacksNum">long unsigned int</param>
/// <param name="allowedExperienceGain">bool</param> /// <param name="allowedExperienceGain">bool</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Construct")] [DllImport("libCreatureLib", 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); 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> /// <param name="p">const Creature *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Initialize")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Initialize")]
internal static extern byte Initialize(IntPtr p); internal static extern byte Initialize(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>const BattleLibrary *</returns> /// <returns>const BattleLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLibrary")]
internal static extern IntPtr GetLibrary(IntPtr p); internal static extern IntPtr GetLibrary(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>const CreatureSpecies *</returns> /// <returns>const CreatureSpecies *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetSpecies")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetSpecies")]
internal static extern IntPtr GetSpecies(IntPtr p); internal static extern IntPtr GetSpecies(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>const SpeciesVariant *</returns> /// <returns>const SpeciesVariant *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetVariant")]
internal static extern IntPtr GetVariant(IntPtr p); internal static extern IntPtr GetVariant(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="species">const CreatureSpecies *</param> /// <param name="species">const CreatureSpecies *</param>
/// <param name="variant">const SpeciesVariant *</param> /// <param name="variant">const SpeciesVariant *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeSpecies")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeSpecies")]
internal static extern byte ChangeSpecies(IntPtr p, IntPtr species, IntPtr variant); internal static extern byte ChangeSpecies(IntPtr p, IntPtr species, IntPtr variant);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="variant">const SpeciesVariant *</param> /// <param name="variant">const SpeciesVariant *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeVariant")]
internal static extern byte ChangeVariant(IntPtr p, IntPtr variant); internal static extern byte ChangeVariant(IntPtr p, IntPtr variant);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLevel")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLevel")]
internal static extern byte GetLevel(IntPtr p); internal static extern byte GetLevel(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetExperience")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetExperience")]
internal static extern uint GetExperience(IntPtr p); internal static extern uint GetExperience(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetUniqueIdentifier")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetUniqueIdentifier")]
internal static extern uint GetUniqueIdentifier(IntPtr p); internal static extern uint GetUniqueIdentifier(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>Gender</returns> /// <returns>Gender</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetGender")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetGender")]
internal static extern Gender GetGender(IntPtr p); internal static extern Gender GetGender(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetColoring")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetColoring")]
internal static extern byte GetColoring(IntPtr p); internal static extern byte GetColoring(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItem")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItem")]
internal static extern byte HasHeldItem(IntPtr p, IntPtr name); internal static extern byte HasHeldItem(IntPtr p, IntPtr name);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <param name="hash">unsigned int</param> /// <param name="hash">unsigned int</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItemWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItemWithHash")]
internal static extern byte HasHeldItemWithHash(IntPtr p, uint hash); internal static extern byte HasHeldItemWithHash(IntPtr p, uint hash);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>const Item *</returns> /// <returns>const Item *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetHeldItem")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetHeldItem")]
internal static extern IntPtr GetHeldItem(IntPtr p); internal static extern IntPtr GetHeldItem(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItem")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItem")]
internal static extern byte SetHeldItem(IntPtr p, IntPtr name); internal static extern byte SetHeldItem(IntPtr p, IntPtr name);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="hash">unsigned int</param> /// <param name="hash">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemWithHash")]
internal static extern byte SetHeldItemWithHash(IntPtr p, uint hash); internal static extern byte SetHeldItemWithHash(IntPtr p, uint hash);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="item">const Item *</param> /// <param name="item">const Item *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemFromItem")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemFromItem")]
internal static extern void SetHeldItemFromItem(IntPtr p, IntPtr item); internal static extern void SetHeldItemFromItem(IntPtr p, IntPtr item);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetCurrentHealth")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetCurrentHealth")]
internal static extern uint GetCurrentHealth(IntPtr p); internal static extern uint GetCurrentHealth(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>Battle *</returns> /// <returns>Battle *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattle")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattle")]
internal static extern IntPtr GetBattle(IntPtr p); internal static extern IntPtr GetBattle(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>BattleSide *</returns> /// <returns>BattleSide *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattleSide")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattleSide")]
internal static extern IntPtr GetBattleSide(IntPtr p); internal static extern IntPtr GetBattleSide(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_IsOnBattleField")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_IsOnBattleField")]
internal static extern byte IsOnBattleField(IntPtr p); internal static extern byte IsOnBattleField(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetNickname")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetNickname")]
internal static extern IntPtr GetNickname(IntPtr p); internal static extern IntPtr GetNickname(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="type">unsigned char</param> /// <param name="type">unsigned char</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasType")]
internal static extern byte HasType(IntPtr p, byte type); internal static extern byte HasType(IntPtr p, byte type);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetMaxHealth")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetMaxHealth")]
internal static extern uint GetMaxHealth(IntPtr p); internal static extern uint GetMaxHealth(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="level">signed char</param> /// <param name="level">signed char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeLevelBy")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeLevelBy")]
internal static extern byte ChangeLevelBy(IntPtr p, sbyte level); internal static extern byte ChangeLevelBy(IntPtr p, sbyte level);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="damage">unsigned int</param> /// <param name="damage">unsigned int</param>
/// <param name="source">DamageSource</param> /// <param name="source">DamageSource</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Damage")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Damage")]
internal static extern byte Damage(IntPtr p, uint damage, DamageSource source); internal static extern byte Damage(IntPtr p, uint damage, DamageSource source);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="health">unsigned int</param> /// <param name="health">unsigned int</param>
/// <param name="canRevive">bool</param> /// <param name="canRevive">bool</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Heal")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Heal")]
internal static extern byte Heal(IntPtr p, uint health, byte canRevive); internal static extern byte Heal(IntPtr p, uint health, byte canRevive);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RestoreAllAttackUses")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RestoreAllAttackUses")]
internal static extern byte RestoreAllAttackUses(IntPtr p); internal static extern byte RestoreAllAttackUses(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetRealTalentIsSecret")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetRealTalentIsSecret")]
internal static extern byte GetRealTalentIsSecret(IntPtr p); internal static extern byte GetRealTalentIsSecret(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetRealTalentIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetRealTalentIndex")]
internal static extern byte GetRealTalentIndex(IntPtr p); internal static extern byte GetRealTalentIndex(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetActiveTalent")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetActiveTalent")]
internal static extern byte GetActiveTalent(IntPtr p, ref IntPtr @out); internal static extern byte GetActiveTalent(IntPtr p, ref IntPtr @out);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="talent">const char *</param> /// <param name="talent">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_OverrideActiveTalent")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_OverrideActiveTalent")]
internal static extern byte OverrideActiveTalent(IntPtr p, IntPtr talent); internal static extern byte OverrideActiveTalent(IntPtr p, IntPtr talent);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="experience">unsigned int</param> /// <param name="experience">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddExperience")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddExperience")]
internal static extern byte AddExperience(IntPtr p, uint experience); internal static extern byte AddExperience(IntPtr p, uint experience);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ClearVolatileScripts")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ClearVolatileScripts")]
internal static extern byte ClearVolatileScripts(IntPtr p); internal static extern byte ClearVolatileScripts(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="scriptName">const char *</param> /// <param name="scriptName">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScriptByName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScriptByName")]
internal static extern byte AddVolatileScriptByName(IntPtr p, IntPtr scriptName); internal static extern byte AddVolatileScriptByName(IntPtr p, IntPtr scriptName);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="script">Script *</param> /// <param name="script">Script *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScript")]
internal static extern byte AddVolatileScript(IntPtr p, IntPtr script); internal static extern byte AddVolatileScript(IntPtr p, IntPtr script);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="scriptName">const char *</param> /// <param name="scriptName">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScriptByName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScriptByName")]
internal static extern byte RemoveVolatileScriptByName(IntPtr p, IntPtr scriptName); internal static extern byte RemoveVolatileScriptByName(IntPtr p, IntPtr scriptName);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="script">Script *</param> /// <param name="script">Script *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScript")]
internal static extern byte RemoveVolatileScript(IntPtr p, IntPtr script); internal static extern byte RemoveVolatileScript(IntPtr p, IntPtr script);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="scriptName">const char *</param> /// <param name="scriptName">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasVolatileScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasVolatileScript")]
internal static extern byte HasVolatileScript(IntPtr p, IntPtr scriptName); internal static extern byte HasVolatileScript(IntPtr p, IntPtr scriptName);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacksCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacksCount")]
internal static extern ulong GetAttacksCount(IntPtr p); internal static extern ulong GetAttacksCount(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <returns>const LearnedAttack * *</returns> /// <returns>const LearnedAttack * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacks")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacks")]
internal static extern IntPtr GetAttacks(IntPtr p); internal static extern IntPtr GetAttacks(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="scriptName">const char *</param> /// <param name="scriptName">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasAttack")]
internal static extern byte HasAttack(IntPtr p, IntPtr scriptName); internal static extern byte HasAttack(IntPtr p, IntPtr scriptName);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>const CreatureSpecies *</returns> /// <returns>const CreatureSpecies *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplaySpecies")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplaySpecies")]
internal static extern IntPtr GetDisplaySpecies(IntPtr p); internal static extern IntPtr GetDisplaySpecies(IntPtr p);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>const SpeciesVariant *</returns> /// <returns>const SpeciesVariant *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplayVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplayVariant")]
internal static extern IntPtr GetDisplayVariant(IntPtr p); internal static extern IntPtr GetDisplayVariant(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="species">const CreatureSpecies *</param> /// <param name="species">const CreatureSpecies *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplaySpecies")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplaySpecies")]
internal static extern void SetDisplaySpecies(IntPtr p, IntPtr species); internal static extern void SetDisplaySpecies(IntPtr p, IntPtr species);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="variant">const SpeciesVariant *</param> /// <param name="variant">const SpeciesVariant *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplayVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplayVariant")]
internal static extern void SetDisplayVariant(IntPtr p, IntPtr variant); internal static extern void SetDisplayVariant(IntPtr p, IntPtr variant);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <param name="diffAmount">signed char</param> /// <param name="diffAmount">signed char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeStatBoost")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeStatBoost")]
internal static extern void ChangeStatBoost(IntPtr p, Statistic stat, sbyte diffAmount); internal static extern void ChangeStatBoost(IntPtr p, Statistic stat, sbyte diffAmount);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetFlatStat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetFlatStat")]
internal static extern uint GetFlatStat(IntPtr p, Statistic stat); internal static extern uint GetFlatStat(IntPtr p, Statistic stat);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBoostedStat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBoostedStat")]
internal static extern uint GetBoostedStat(IntPtr p, Statistic stat); internal static extern uint GetBoostedStat(IntPtr p, Statistic stat);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBaseStat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBaseStat")]
internal static extern uint GetBaseStat(IntPtr p, Statistic stat); internal static extern uint GetBaseStat(IntPtr p, Statistic stat);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>signed char</returns> /// <returns>signed char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetStatBoost")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetStatBoost")]
internal static extern sbyte GetStatBoost(IntPtr p, Statistic stat); internal static extern sbyte GetStatBoost(IntPtr p, Statistic stat);
/// <param name="p">const Creature *</param> /// <param name="p">const Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAvailableAttackSlot")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAvailableAttackSlot")]
internal static extern byte GetAvailableAttackSlot(IntPtr p); internal static extern byte GetAvailableAttackSlot(IntPtr p);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="attack">LearnedAttack *</param> /// <param name="attack">LearnedAttack *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddAttack")]
internal static extern byte AddAttack(IntPtr p, IntPtr attack); internal static extern byte AddAttack(IntPtr p, IntPtr attack);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="attack">LearnedAttack *</param> /// <param name="attack">LearnedAttack *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ReplaceAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ReplaceAttack")]
internal static extern byte ReplaceAttack(IntPtr p, ulong index, IntPtr attack); internal static extern byte ReplaceAttack(IntPtr p, ulong index, IntPtr attack);
/// <param name="p">Creature *</param> /// <param name="p">Creature *</param>
/// <param name="a">long unsigned int</param> /// <param name="a">long unsigned int</param>
/// <param name="b">long unsigned int</param> /// <param name="b">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SwapAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SwapAttack")]
internal static extern byte SwapAttack(IntPtr p, ulong a, ulong b); internal static extern byte SwapAttack(IntPtr p, ulong a, ulong b);
} }

View File

@ -8,37 +8,37 @@ namespace Creaturelib.Generated
{ {
/// <param name="size">long unsigned int</param> /// <param name="size">long unsigned int</param>
/// <returns>CreatureParty *</returns> /// <returns>CreatureParty *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_ConstructWithSize")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_ConstructWithSize")]
internal static extern IntPtr ConstructWithSize(ulong size); internal static extern IntPtr ConstructWithSize(ulong size);
/// <param name="creatures">Creature * *</param> /// <param name="creatures">Creature * *</param>
/// <param name="size">long unsigned int</param> /// <param name="size">long unsigned int</param>
/// <returns>CreatureParty *</returns> /// <returns>CreatureParty *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_ConstructFromArray")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_ConstructFromArray")]
internal static extern IntPtr ConstructFromArray(IntPtr creatures, ulong size); internal static extern IntPtr ConstructFromArray(IntPtr creatures, ulong size);
/// <param name="p">const CreatureParty *</param> /// <param name="p">const CreatureParty *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Destruct")]
internal static extern void Destruct(IntPtr p); 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="p">const CreatureParty *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetAtIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetAtIndex")]
internal static extern byte GetAtIndex(ref IntPtr @out, IntPtr p, ulong index); internal static extern byte GetAtIndex(ref IntPtr @out, IntPtr p, ulong index);
/// <param name="p">CreatureParty *</param> /// <param name="p">CreatureParty *</param>
/// <param name="a">long unsigned int</param> /// <param name="a">long unsigned int</param>
/// <param name="b">long unsigned int</param> /// <param name="b">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Switch")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_Switch")]
internal static extern byte Switch(IntPtr p, ulong a, ulong b); internal static extern byte Switch(IntPtr p, ulong a, ulong b);
/// <param name="p">CreatureParty *</param> /// <param name="p">CreatureParty *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_PackParty")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_PackParty")]
internal static extern byte PackParty(IntPtr p); internal static extern byte PackParty(IntPtr p);
/// <param name="out">Creature * &</param> /// <param name="out">Creature * &</param>
@ -46,22 +46,22 @@ namespace Creaturelib.Generated
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="creature">Creature *</param> /// <param name="creature">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_SwapInto")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_SwapInto")]
internal static extern byte SwapInto(ref IntPtr @out, IntPtr p, ulong index, IntPtr creature); internal static extern byte SwapInto(ref IntPtr @out, IntPtr p, ulong index, IntPtr creature);
/// <param name="p">const CreatureParty *</param> /// <param name="p">const CreatureParty *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_HasAvailableCreatures")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_HasAvailableCreatures")]
internal static extern byte HasAvailableCreatures(IntPtr p); internal static extern byte HasAvailableCreatures(IntPtr p);
/// <param name="p">const CreatureParty *</param> /// <param name="p">const CreatureParty *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetLength")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetLength")]
internal static extern ulong GetLength(IntPtr p); internal static extern ulong GetLength(IntPtr p);
/// <param name="p">CreatureParty *</param> /// <param name="p">CreatureParty *</param>
/// <returns>const Creature * *</returns> /// <returns>const Creature * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetParty")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureParty_GetParty")]
internal static extern IntPtr GetParty(IntPtr p); internal static extern IntPtr GetParty(IntPtr p);
} }

View File

@ -16,106 +16,106 @@ namespace Creaturelib.Generated
/// <param name="flags">const char * *</param> /// <param name="flags">const char * *</param>
/// <param name="flagsCount">long unsigned int</param> /// <param name="flagsCount">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Construct")] [DllImport("libCreatureLib", 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, IntPtr flags, ulong flagsCount); internal static extern byte Construct(ref IntPtr @out, ushort id, IntPtr name, IntPtr defaultVariant, float genderRatio, IntPtr growthRate, byte captureRate, IntPtr flags, ulong flagsCount);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <returns>unsigned short</returns> /// <returns>unsigned short</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetId")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetId")]
internal static extern ushort GetId(IntPtr p); internal static extern ushort GetId(IntPtr p);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGenderRate")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGenderRate")]
internal static extern float GetGenderRate(IntPtr p); internal static extern float GetGenderRate(IntPtr p);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetCaptureRate")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetCaptureRate")]
internal static extern byte GetCaptureRate(IntPtr p); internal static extern byte GetCaptureRate(IntPtr p);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetName")]
internal static extern IntPtr GetName(IntPtr p); internal static extern IntPtr GetName(IntPtr p);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGrowthRate")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetGrowthRate")]
internal static extern IntPtr GetGrowthRate(IntPtr p); internal static extern IntPtr GetGrowthRate(IntPtr p);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariant")]
internal static extern byte HasVariant(IntPtr p, IntPtr name); internal static extern byte HasVariant(IntPtr p, IntPtr name);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <param name="hash">unsigned int</param> /// <param name="hash">unsigned int</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariantWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasVariantWithHash")]
internal static extern byte HasVariantWithHash(IntPtr p, uint hash); internal static extern byte HasVariantWithHash(IntPtr p, uint hash);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const SpeciesVariant * &</param> /// <param name="out">const SpeciesVariant * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariant")]
internal static extern byte TryGetVariant(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte TryGetVariant(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <param name="hash">unsigned int</param> /// <param name="hash">unsigned int</param>
/// <param name="out">const SpeciesVariant * &</param> /// <param name="out">const SpeciesVariant * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariantWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_TryGetVariantWithHash")]
internal static extern byte TryGetVariantWithHash(IntPtr p, uint hash, ref IntPtr @out); 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="p">const CreatureSpecies *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariant")]
internal static extern byte GetVariant(ref IntPtr @out, IntPtr p, IntPtr name); internal static extern byte GetVariant(ref IntPtr @out, IntPtr p, IntPtr name);
/// <param name="out">const SpeciesVariant * &</param> /// <param name="out">const SpeciesVariant * &</param>
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <param name="hash">unsigned int</param> /// <param name="hash">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantWithHash")]
internal static extern byte GetVariantWithHash(ref IntPtr @out, IntPtr p, uint hash); internal static extern byte GetVariantWithHash(ref IntPtr @out, IntPtr p, uint hash);
/// <param name="p">CreatureSpecies *</param> /// <param name="p">CreatureSpecies *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="variant">SpeciesVariant *</param> /// <param name="variant">SpeciesVariant *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_SetVariant")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_SetVariant")]
internal static extern byte SetVariant(IntPtr p, IntPtr name, IntPtr variant); internal static extern byte SetVariant(IntPtr p, IntPtr name, IntPtr variant);
/// <param name="p">CreatureSpecies *</param> /// <param name="p">CreatureSpecies *</param>
/// <param name="random">Random *</param> /// <param name="random">Random *</param>
/// <returns>Gender</returns> /// <returns>Gender</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetRandomGender")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetRandomGender")]
internal static extern Gender GetRandomGender(IntPtr p, IntPtr random); internal static extern Gender GetRandomGender(IntPtr p, IntPtr random);
/// <param name="p">CreatureSpecies *</param> /// <param name="p">CreatureSpecies *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantsCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariantsCount")]
internal static extern ulong GetVariantsCount(IntPtr p); internal static extern ulong GetVariantsCount(IntPtr p);
/// <param name="p">CreatureSpecies *</param> /// <param name="p">CreatureSpecies *</param>
/// <returns>const const SpeciesVariant * *</returns> /// <returns>const const SpeciesVariant * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariants")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_GetVariants")]
internal static extern IntPtr GetVariants(IntPtr p); internal static extern IntPtr GetVariants(IntPtr p);
/// <param name="p">const CreatureSpecies *</param> /// <param name="p">const CreatureSpecies *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasFlag")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_CreatureSpecies_HasFlag")]
internal static extern byte HasFlag(IntPtr p, IntPtr key); internal static extern byte HasFlag(IntPtr p, IntPtr key);
} }

View File

@ -8,27 +8,27 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const DamageEvent *</param> /// <param name="p">const DamageEvent *</param>
/// <returns>Creature *</returns> /// <returns>Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetCreature")]
internal static extern IntPtr GetCreature(IntPtr p); internal static extern IntPtr GetCreature(IntPtr p);
/// <param name="p">const DamageEvent *</param> /// <param name="p">const DamageEvent *</param>
/// <returns>DamageSource</returns> /// <returns>DamageSource</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetDamageSource")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetDamageSource")]
internal static extern DamageSource GetDamageSource(IntPtr p); internal static extern DamageSource GetDamageSource(IntPtr p);
/// <param name="p">const DamageEvent *</param> /// <param name="p">const DamageEvent *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetOriginalHealth")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetOriginalHealth")]
internal static extern uint GetOriginalHealth(IntPtr p); internal static extern uint GetOriginalHealth(IntPtr p);
/// <param name="p">const DamageEvent *</param> /// <param name="p">const DamageEvent *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetNewHealth")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_GetNewHealth")]
internal static extern uint GetNewHealth(IntPtr p); internal static extern uint GetNewHealth(IntPtr p);
/// <param name="p">const DamageEvent *</param> /// <param name="p">const DamageEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -7,12 +7,12 @@ namespace Creaturelib.Generated
internal static class DamageLibrary internal static class DamageLibrary
{ {
/// <returns>const DamageLibrary *</returns> /// <returns>const DamageLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">const DamageLibrary *</param> /// <param name="p">const DamageLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned int &</param> /// <param name="out">unsigned int &</param>
@ -22,7 +22,7 @@ namespace Creaturelib.Generated
/// <param name="hitIndex">unsigned char</param> /// <param name="hitIndex">unsigned char</param>
/// <param name="hitData">HitData *</param> /// <param name="hitData">HitData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamage")] [DllImport("libCreatureLib", 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); 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>
@ -32,7 +32,7 @@ namespace Creaturelib.Generated
/// <param name="hitIndex">unsigned char</param> /// <param name="hitIndex">unsigned char</param>
/// <param name="hitData">HitData *</param> /// <param name="hitData">HitData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetBasePower")] [DllImport("libCreatureLib", 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); 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>
@ -42,7 +42,7 @@ namespace Creaturelib.Generated
/// <param name="hitIndex">unsigned char</param> /// <param name="hitIndex">unsigned char</param>
/// <param name="hitData">HitData *</param> /// <param name="hitData">HitData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetStatModifier")] [DllImport("libCreatureLib", 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); 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>
@ -52,7 +52,7 @@ namespace Creaturelib.Generated
/// <param name="hitIndex">unsigned char</param> /// <param name="hitIndex">unsigned char</param>
/// <param name="hitData">HitData *</param> /// <param name="hitData">HitData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DamageLibrary_GetDamageModifier")] [DllImport("libCreatureLib", 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); internal static extern byte GetDamageModifier(ref float @out, IntPtr p, IntPtr attack, IntPtr target, byte hitIndex, IntPtr hitData);
} }

View File

@ -14,42 +14,42 @@ namespace Creaturelib.Generated
/// <param name="growthRates">GrowthRateLibrary *</param> /// <param name="growthRates">GrowthRateLibrary *</param>
/// <param name="typeLibrary">TypeLibrary *</param> /// <param name="typeLibrary">TypeLibrary *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_Construct")] [DllImport("libCreatureLib", 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); internal static extern byte Construct(ref IntPtr @out, IntPtr settings, IntPtr species, IntPtr attacks, IntPtr items, IntPtr growthRates, IntPtr typeLibrary);
/// <param name="p">const DataLibrary *</param> /// <param name="p">const DataLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const DataLibrary *</param> /// <param name="p">const DataLibrary *</param>
/// <returns>const LibrarySettings *</returns> /// <returns>const LibrarySettings *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetSettings")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetSettings")]
internal static extern IntPtr GetSettings(IntPtr p); internal static extern IntPtr GetSettings(IntPtr p);
/// <param name="p">const DataLibrary *</param> /// <param name="p">const DataLibrary *</param>
/// <returns>const SpeciesLibrary *</returns> /// <returns>const SpeciesLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetSpeciesLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetSpeciesLibrary")]
internal static extern IntPtr GetSpeciesLibrary(IntPtr p); internal static extern IntPtr GetSpeciesLibrary(IntPtr p);
/// <param name="p">const DataLibrary *</param> /// <param name="p">const DataLibrary *</param>
/// <returns>const AttackLibrary *</returns> /// <returns>const AttackLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetAttackLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetAttackLibrary")]
internal static extern IntPtr GetAttackLibrary(IntPtr p); internal static extern IntPtr GetAttackLibrary(IntPtr p);
/// <param name="p">const DataLibrary *</param> /// <param name="p">const DataLibrary *</param>
/// <returns>const ItemLibrary *</returns> /// <returns>const ItemLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetItemLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetItemLibrary")]
internal static extern IntPtr GetItemLibrary(IntPtr p); internal static extern IntPtr GetItemLibrary(IntPtr p);
/// <param name="p">const DataLibrary *</param> /// <param name="p">const DataLibrary *</param>
/// <returns>const GrowthRateLibrary *</returns> /// <returns>const GrowthRateLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetGrowthRates")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetGrowthRates")]
internal static extern IntPtr GetGrowthRates(IntPtr p); internal static extern IntPtr GetGrowthRates(IntPtr p);
/// <param name="p">const DataLibrary *</param> /// <param name="p">const DataLibrary *</param>
/// <returns>const TypeLibrary *</returns> /// <returns>const TypeLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetTypeLibrary")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DataLibrary_GetTypeLibrary")]
internal static extern IntPtr GetTypeLibrary(IntPtr p); internal static extern IntPtr GetTypeLibrary(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const DisplayTextEvent *</param> /// <param name="p">const DisplayTextEvent *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DisplayTextEvent_GetText")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DisplayTextEvent_GetText")]
internal static extern IntPtr GetText(IntPtr p); internal static extern IntPtr GetText(IntPtr p);
/// <param name="p">const DisplayTextEvent *</param> /// <param name="p">const DisplayTextEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DisplayTextEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_DisplayTextEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,56 +8,56 @@ namespace Creaturelib.Generated
{ {
/// <param name="b">bool</param> /// <param name="b">bool</param>
/// <returns>EffectParameter *</returns> /// <returns>EffectParameter *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromBool")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromBool")]
internal static extern IntPtr FromBool(byte b); internal static extern IntPtr FromBool(byte b);
/// <param name="i">long int</param> /// <param name="i">long int</param>
/// <returns>EffectParameter *</returns> /// <returns>EffectParameter *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromInt")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromInt")]
internal static extern IntPtr FromInt(long i); internal static extern IntPtr FromInt(long i);
/// <param name="f">float</param> /// <param name="f">float</param>
/// <returns>EffectParameter *</returns> /// <returns>EffectParameter *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromFloat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromFloat")]
internal static extern IntPtr FromFloat(float f); internal static extern IntPtr FromFloat(float f);
/// <param name="c">const char *</param> /// <param name="c">const char *</param>
/// <returns>EffectParameter *</returns> /// <returns>EffectParameter *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromString")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_FromString")]
internal static extern IntPtr FromString(IntPtr c); internal static extern IntPtr FromString(IntPtr c);
/// <param name="p">const EffectParameter *</param> /// <param name="p">const EffectParameter *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const EffectParameter *</param> /// <param name="p">const EffectParameter *</param>
/// <returns>EffectParameterType</returns> /// <returns>EffectParameterType</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_GetType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_GetType")]
internal static extern EffectParameterType GetType(IntPtr p); internal static extern EffectParameterType GetType(IntPtr p);
/// <param name="p">const EffectParameter *</param> /// <param name="p">const EffectParameter *</param>
/// <param name="out">bool &</param> /// <param name="out">bool &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsBool")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsBool")]
internal static extern byte AsBool(IntPtr p, ref byte @out); internal static extern byte AsBool(IntPtr p, ref byte @out);
/// <param name="p">const EffectParameter *</param> /// <param name="p">const EffectParameter *</param>
/// <param name="out">long int &</param> /// <param name="out">long int &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsInt")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsInt")]
internal static extern byte AsInt(IntPtr p, ref long @out); internal static extern byte AsInt(IntPtr p, ref long @out);
/// <param name="p">const EffectParameter *</param> /// <param name="p">const EffectParameter *</param>
/// <param name="out">float &</param> /// <param name="out">float &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsFloat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsFloat")]
internal static extern byte AsFloat(IntPtr p, ref float @out); internal static extern byte AsFloat(IntPtr p, ref float @out);
/// <param name="p">const EffectParameter *</param> /// <param name="p">const EffectParameter *</param>
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsString")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EffectParameter_AsString")]
internal static extern byte AsString(IntPtr p, ref IntPtr @out); internal static extern byte AsString(IntPtr p, ref IntPtr @out);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const EventData *</param> /// <param name="p">const EventData *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EventData_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EventData_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const EventData *</param> /// <param name="p">const EventData *</param>
/// <returns>EventDataKind</returns> /// <returns>EventDataKind</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EventData_GetKind")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_EventData_GetKind")]
internal static extern EventDataKind GetKind(IntPtr p); internal static extern EventDataKind GetKind(IntPtr p);
} }

View File

@ -14,17 +14,17 @@ namespace Creaturelib.Generated
/// <param name="attack">LearnedAttack *</param> /// <param name="attack">LearnedAttack *</param>
/// <param name="script">Script *</param> /// <param name="script">Script *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Construct")] [DllImport("libCreatureLib", 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); internal static extern byte Construct(ref IntPtr @out, IntPtr targets, ulong targetCount, byte numberHits, IntPtr user, IntPtr attack, IntPtr script);
/// <param name="p">ExecutingAttack *</param> /// <param name="p">ExecutingAttack *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const ExecutingAttack *</param> /// <param name="p">const ExecutingAttack *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetNumberOfHits")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetNumberOfHits")]
internal static extern byte GetNumberOfHits(IntPtr p); internal static extern byte GetNumberOfHits(IntPtr p);
/// <param name="out">HitData * &</param> /// <param name="out">HitData * &</param>
@ -32,33 +32,33 @@ namespace Creaturelib.Generated
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <param name="hit">unsigned char</param> /// <param name="hit">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetHitData")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetHitData")]
internal static extern byte GetHitData(ref IntPtr @out, IntPtr p, IntPtr target, byte hit); internal static extern byte GetHitData(ref IntPtr @out, IntPtr p, IntPtr target, byte hit);
/// <param name="p">ExecutingAttack *</param> /// <param name="p">ExecutingAttack *</param>
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_IsCreatureTarget")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_IsCreatureTarget")]
internal static extern byte IsCreatureTarget(IntPtr p, IntPtr target); internal static extern byte IsCreatureTarget(IntPtr p, IntPtr target);
/// <param name="p">ExecutingAttack *</param> /// <param name="p">ExecutingAttack *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetTargetCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetTargetCount")]
internal static extern byte GetTargetCount(IntPtr p); internal static extern byte GetTargetCount(IntPtr p);
/// <param name="p">ExecutingAttack *</param> /// <param name="p">ExecutingAttack *</param>
/// <returns>const const Creature * *</returns> /// <returns>const const Creature * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetTargets")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetTargets")]
internal static extern IntPtr GetTargets(IntPtr p); internal static extern IntPtr GetTargets(IntPtr p);
/// <param name="p">ExecutingAttack *</param> /// <param name="p">ExecutingAttack *</param>
/// <returns>Creature *</returns> /// <returns>Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetUser")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetUser")]
internal static extern IntPtr GetUser(IntPtr p); internal static extern IntPtr GetUser(IntPtr p);
/// <param name="p">ExecutingAttack *</param> /// <param name="p">ExecutingAttack *</param>
/// <returns>LearnedAttack *</returns> /// <returns>LearnedAttack *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetAttack")]
internal static extern IntPtr GetAttack(IntPtr p); internal static extern IntPtr GetAttack(IntPtr p);
} }

View File

@ -8,22 +8,22 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const ExperienceGainEvent *</param> /// <param name="p">const ExperienceGainEvent *</param>
/// <returns>const Creature *</returns> /// <returns>const Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_GetCreature")]
internal static extern IntPtr GetCreature(IntPtr p); internal static extern IntPtr GetCreature(IntPtr p);
/// <param name="p">const ExperienceGainEvent *</param> /// <param name="p">const ExperienceGainEvent *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_GetPreviousExperience")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_GetPreviousExperience")]
internal static extern uint GetPreviousExperience(IntPtr p); internal static extern uint GetPreviousExperience(IntPtr p);
/// <param name="p">const ExperienceGainEvent *</param> /// <param name="p">const ExperienceGainEvent *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_GetNewExperience")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_GetNewExperience")]
internal static extern uint GetNewExperience(IntPtr p); internal static extern uint GetNewExperience(IntPtr p);
/// <param name="p">const ExperienceGainEvent *</param> /// <param name="p">const ExperienceGainEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceGainEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -7,12 +7,12 @@ namespace Creaturelib.Generated
internal static class ExperienceLibrary internal static class ExperienceLibrary
{ {
/// <returns>const ExperienceLibrary *</returns> /// <returns>const ExperienceLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">const ExperienceLibrary *</param> /// <param name="p">const ExperienceLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const ExperienceLibrary *</param> /// <param name="p">const ExperienceLibrary *</param>
@ -20,7 +20,7 @@ namespace Creaturelib.Generated
/// <param name="opponents">Creature * *</param> /// <param name="opponents">Creature * *</param>
/// <param name="opponentsCount">long unsigned int</param> /// <param name="opponentsCount">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_HandleExperienceGain")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExperienceLibrary_HandleExperienceGain")]
internal static extern byte HandleExperienceGain(IntPtr p, IntPtr faintedMon, IntPtr opponents, ulong opponentsCount); internal static extern byte HandleExperienceGain(IntPtr p, IntPtr faintedMon, IntPtr opponents, ulong opponentsCount);
} }

View File

@ -10,12 +10,12 @@ namespace Creaturelib.Generated
/// <param name="calcLevel">Function *</param> /// <param name="calcLevel">Function *</param>
/// <param name="calcExperience">Function *</param> /// <param name="calcExperience">Function *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Construct")]
internal static extern byte Construct(ref IntPtr @out, IntPtr calcLevel, IntPtr calcExperience); internal static extern byte Construct(ref IntPtr @out, IntPtr calcLevel, IntPtr calcExperience);
/// <param name="p">const ExternGrowthRate *</param> /// <param name="p">const ExternGrowthRate *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExternGrowthRate_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const FaintEvent *</param> /// <param name="p">const FaintEvent *</param>
/// <returns>Creature *</returns> /// <returns>Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FaintEvent_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FaintEvent_GetCreature")]
internal static extern IntPtr GetCreature(IntPtr p); internal static extern IntPtr GetCreature(IntPtr p);
/// <param name="p">const FaintEvent *</param> /// <param name="p">const FaintEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FaintEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FaintEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="user">Creature *</param> /// <param name="user">Creature *</param>
/// <returns>FleeTurnChoice *</returns> /// <returns>FleeTurnChoice *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Construct")]
internal static extern IntPtr Construct(IntPtr user); internal static extern IntPtr Construct(IntPtr user);
/// <param name="p">AttackTurnChoice *</param> /// <param name="p">AttackTurnChoice *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_FleeTurnChoice_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,21 +8,21 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const GrowthRate *</param> /// <param name="p">const GrowthRate *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_Destruct")]
internal static extern void Destruct(IntPtr p); 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="p">const GrowthRate *</param>
/// <param name="experience">unsigned int</param> /// <param name="experience">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_CalculateLevel")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_CalculateLevel")]
internal static extern byte CalculateLevel(ref byte @out, IntPtr p, uint experience); 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="p">const GrowthRate *</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_CalculateExperience")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRate_CalculateExperience")]
internal static extern byte CalculateExperience(ref uint @out, IntPtr p, byte level); internal static extern byte CalculateExperience(ref uint @out, IntPtr p, byte level);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="initialCapacity">long unsigned int</param> /// <param name="initialCapacity">long unsigned int</param>
/// <returns>GrowthRateLibrary *</returns> /// <returns>GrowthRateLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Construct")]
internal static extern IntPtr Construct(ulong initialCapacity); internal static extern IntPtr Construct(ulong initialCapacity);
/// <param name="p">GrowthRateLibrary *</param> /// <param name="p">GrowthRateLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="out">unsigned char &</param> /// <param name="out">unsigned char &</param>
@ -21,7 +21,7 @@ namespace Creaturelib.Generated
/// <param name="growthRate">const char *</param> /// <param name="growthRate">const char *</param>
/// <param name="experience">unsigned int</param> /// <param name="experience">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevel")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevel")]
internal static extern byte CalculateLevel(ref byte @out, IntPtr library, IntPtr growthRate, uint experience); 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>
@ -29,7 +29,7 @@ namespace Creaturelib.Generated
/// <param name="growthRateHash">unsigned int</param> /// <param name="growthRateHash">unsigned int</param>
/// <param name="experience">unsigned int</param> /// <param name="experience">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevelWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateLevelWithHash")]
internal static extern byte CalculateLevelWithHash(ref byte @out, IntPtr library, uint growthRateHash, uint experience); 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>
@ -37,7 +37,7 @@ namespace Creaturelib.Generated
/// <param name="growthRate">const char *</param> /// <param name="growthRate">const char *</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperience")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperience")]
internal static extern byte CalculateExperience(ref uint @out, IntPtr library, IntPtr growthRate, byte level); 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>
@ -45,21 +45,21 @@ namespace Creaturelib.Generated
/// <param name="growthRateHash">unsigned int</param> /// <param name="growthRateHash">unsigned int</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperienceWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_CalculateExperienceWithHash")]
internal static extern byte CalculateExperienceWithHash(ref uint @out, IntPtr library, uint growthRateHash, byte level); internal static extern byte CalculateExperienceWithHash(ref uint @out, IntPtr library, uint growthRateHash, byte level);
/// <param name="library">GrowthRateLibrary *</param> /// <param name="library">GrowthRateLibrary *</param>
/// <param name="growthRateName">const char *</param> /// <param name="growthRateName">const char *</param>
/// <param name="growthRate">GrowthRate *</param> /// <param name="growthRate">GrowthRate *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRate")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRate")]
internal static extern byte AddGrowthRate(IntPtr library, IntPtr growthRateName, IntPtr growthRate); internal static extern byte AddGrowthRate(IntPtr library, IntPtr growthRateName, IntPtr growthRate);
/// <param name="library">GrowthRateLibrary *</param> /// <param name="library">GrowthRateLibrary *</param>
/// <param name="growthRateHash">unsigned int</param> /// <param name="growthRateHash">unsigned int</param>
/// <param name="growthRate">GrowthRate *</param> /// <param name="growthRate">GrowthRate *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRateWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_GrowthRateLibrary_AddGrowthRateWithHash")]
internal static extern byte AddGrowthRateWithHash(IntPtr library, uint growthRateHash, IntPtr growthRate); internal static extern byte AddGrowthRateWithHash(IntPtr library, uint growthRateHash, IntPtr growthRate);
} }

View File

@ -8,22 +8,22 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const HealEvent *</param> /// <param name="p">const HealEvent *</param>
/// <returns>Creature *</returns> /// <returns>Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetCreature")]
internal static extern IntPtr GetCreature(IntPtr p); internal static extern IntPtr GetCreature(IntPtr p);
/// <param name="p">const HealEvent *</param> /// <param name="p">const HealEvent *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetOriginalHealth")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetOriginalHealth")]
internal static extern uint GetOriginalHealth(IntPtr p); internal static extern uint GetOriginalHealth(IntPtr p);
/// <param name="p">const HealEvent *</param> /// <param name="p">const HealEvent *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetNewHealth")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_GetNewHealth")]
internal static extern uint GetNewHealth(IntPtr p); internal static extern uint GetNewHealth(IntPtr p);
/// <param name="p">const HealEvent *</param> /// <param name="p">const HealEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HealEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const HistoryElement *</param> /// <param name="p">const HistoryElement *</param>
/// <returns>HistoryElementKind</returns> /// <returns>HistoryElementKind</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryElement_GetKind")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryElement_GetKind")]
internal static extern HistoryElementKind GetKind(IntPtr p); internal static extern HistoryElementKind GetKind(IntPtr p);
/// <param name="p">const HistoryElement *</param> /// <param name="p">const HistoryElement *</param>
/// <returns>const HistoryElement *</returns> /// <returns>const HistoryElement *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryElement_GetPrevious")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryElement_GetPrevious")]
internal static extern IntPtr GetPrevious(IntPtr p); internal static extern IntPtr GetPrevious(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const HistoryHolder *</param> /// <param name="p">const HistoryHolder *</param>
/// <returns>const HistoryElement *</returns> /// <returns>const HistoryElement *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryHandler_GetTopElement")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryHandler_GetTopElement")]
internal static extern IntPtr GetTopElement(IntPtr p); internal static extern IntPtr GetTopElement(IntPtr p);
/// <param name="p">const HistoryHolder *</param> /// <param name="p">const HistoryHolder *</param>
/// <returns>const HistoryElement *</returns> /// <returns>const HistoryElement *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryHandler_GetLastUsedAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HistoryHandler_GetLastUsedAttack")]
internal static extern IntPtr GetLastUsedAttack(IntPtr p); internal static extern IntPtr GetLastUsedAttack(IntPtr p);
} }

View File

@ -8,57 +8,57 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const HitData *</param> /// <param name="p">const HitData *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_IsCritical")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_IsCritical")]
internal static extern byte IsCritical(IntPtr p); internal static extern byte IsCritical(IntPtr p);
/// <param name="p">const HitData *</param> /// <param name="p">const HitData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetBasePower")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetBasePower")]
internal static extern byte GetBasePower(IntPtr p); internal static extern byte GetBasePower(IntPtr p);
/// <param name="p">const HitData *</param> /// <param name="p">const HitData *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetEffectiveness")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetEffectiveness")]
internal static extern float GetEffectiveness(IntPtr p); internal static extern float GetEffectiveness(IntPtr p);
/// <param name="p">const HitData *</param> /// <param name="p">const HitData *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetDamage")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetDamage")]
internal static extern uint GetDamage(IntPtr p); internal static extern uint GetDamage(IntPtr p);
/// <param name="p">const HitData *</param> /// <param name="p">const HitData *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_GetType")]
internal static extern byte GetType(IntPtr p); internal static extern byte GetType(IntPtr p);
/// <param name="p">HitData *</param> /// <param name="p">HitData *</param>
/// <param name="val">bool</param> /// <param name="val">bool</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetCritical")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetCritical")]
internal static extern void SetCritical(IntPtr p, byte val); internal static extern void SetCritical(IntPtr p, byte val);
/// <param name="p">HitData *</param> /// <param name="p">HitData *</param>
/// <param name="val">unsigned char</param> /// <param name="val">unsigned char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetBasePower")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetBasePower")]
internal static extern void SetBasePower(IntPtr p, byte val); internal static extern void SetBasePower(IntPtr p, byte val);
/// <param name="p">HitData *</param> /// <param name="p">HitData *</param>
/// <param name="val">float</param> /// <param name="val">float</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetEffectiveness")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetEffectiveness")]
internal static extern void SetEffectiveness(IntPtr p, float val); internal static extern void SetEffectiveness(IntPtr p, float val);
/// <param name="p">HitData *</param> /// <param name="p">HitData *</param>
/// <param name="val">unsigned int</param> /// <param name="val">unsigned int</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetDamage")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetDamage")]
internal static extern void SetDamage(IntPtr p, uint val); internal static extern void SetDamage(IntPtr p, uint val);
/// <param name="p">HitData *</param> /// <param name="p">HitData *</param>
/// <param name="val">unsigned char</param> /// <param name="val">unsigned char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_HitData_SetType")]
internal static extern void SetType(IntPtr p, byte val); internal static extern void SetType(IntPtr p, byte val);
} }

View File

@ -13,38 +13,38 @@ namespace Creaturelib.Generated
/// <param name="flags">const char * *</param> /// <param name="flags">const char * *</param>
/// <param name="flagsCount">long unsigned int</param> /// <param name="flagsCount">long unsigned int</param>
/// <returns>Item *</returns> /// <returns>Item *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Construct")]
internal static extern IntPtr Construct(IntPtr name, ItemCategory category, BattleItemCategory battleCategory, int price, IntPtr flags, ulong flagsCount); internal static extern IntPtr Construct(IntPtr name, ItemCategory category, BattleItemCategory battleCategory, int price, IntPtr flags, ulong flagsCount);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetName")]
internal static extern IntPtr GetName(IntPtr p); internal static extern IntPtr GetName(IntPtr p);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <returns>ItemCategory</returns> /// <returns>ItemCategory</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetCategory")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetCategory")]
internal static extern ItemCategory GetCategory(IntPtr p); internal static extern ItemCategory GetCategory(IntPtr p);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <returns>BattleItemCategory</returns> /// <returns>BattleItemCategory</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetBattleCategory")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetBattleCategory")]
internal static extern BattleItemCategory GetBattleCategory(IntPtr p); internal static extern BattleItemCategory GetBattleCategory(IntPtr p);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <returns>int</returns> /// <returns>int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetPrice")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_GetPrice")]
internal static extern int GetPrice(IntPtr p); internal static extern int GetPrice(IntPtr p);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_HasFlag")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Item_HasFlag")]
internal static extern byte HasFlag(IntPtr p, IntPtr key); internal static extern byte HasFlag(IntPtr p, IntPtr key);
} }

View File

@ -8,78 +8,78 @@ namespace Creaturelib.Generated
{ {
/// <param name="initialCapacity">long unsigned int</param> /// <param name="initialCapacity">long unsigned int</param>
/// <returns>const ItemLibrary *</returns> /// <returns>const ItemLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Construct")]
internal static extern IntPtr Construct(ulong initialCapacity); internal static extern IntPtr Construct(ulong initialCapacity);
/// <param name="p">const ItemLibrary *</param> /// <param name="p">const ItemLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="t">Item *</param> /// <param name="t">Item *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Insert")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Insert")]
internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t); internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="t">Item *</param> /// <param name="t">Item *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_InsertWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_InsertWithHash")]
internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t); internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Delete")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Delete")]
internal static extern byte Delete(IntPtr p, IntPtr name); internal static extern byte Delete(IntPtr p, IntPtr name);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_DeleteWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_DeleteWithHash")]
internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey); internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const Item * &</param> /// <param name="out">const Item * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGet")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGet")]
internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="out">const Item * &</param> /// <param name="out">const Item * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGetWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_TryGetWithHash")]
internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const Item * &</param> /// <param name="out">const Item * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Get")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_Get")]
internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="out">const Item * &</param> /// <param name="out">const Item * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetWithHash")]
internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetCount")]
internal static extern ulong GetCount(IntPtr p); internal static extern ulong GetCount(IntPtr p);
/// <param name="p">ItemLibrary *</param> /// <param name="p">ItemLibrary *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="out">const Item * &</param> /// <param name="out">const Item * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetAtIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ItemLibrary_GetAtIndex")]
internal static extern byte GetAtIndex(IntPtr p, ulong index, ref IntPtr @out); internal static extern byte GetAtIndex(IntPtr p, ulong index, ref IntPtr @out);
} }

View File

@ -9,47 +9,47 @@ namespace Creaturelib.Generated
/// <param name="out">LearnableAttacks * &</param> /// <param name="out">LearnableAttacks * &</param>
/// <param name="levelAttackCapacity">long unsigned int</param> /// <param name="levelAttackCapacity">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Construct")]
internal static extern byte Construct(ref IntPtr @out, ulong levelAttackCapacity); internal static extern byte Construct(ref IntPtr @out, ulong levelAttackCapacity);
/// <param name="p">LearnableAttacks *</param> /// <param name="p">LearnableAttacks *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">LearnableAttacks *</param> /// <param name="p">LearnableAttacks *</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <param name="attack">const AttackData *</param> /// <param name="attack">const AttackData *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_AddLevelAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_AddLevelAttack")]
internal static extern void AddLevelAttack(IntPtr p, byte level, IntPtr attack); internal static extern void AddLevelAttack(IntPtr p, byte level, IntPtr attack);
/// <param name="p">LearnableAttacks *</param> /// <param name="p">LearnableAttacks *</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <returns>const const AttackData * *</returns> /// <returns>const const AttackData * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetAttacksForLevel")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetAttacksForLevel")]
internal static extern IntPtr GetAttacksForLevel(IntPtr p, byte level); internal static extern IntPtr GetAttacksForLevel(IntPtr p, byte level);
/// <param name="p">LearnableAttacks *</param> /// <param name="p">LearnableAttacks *</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_HasAttacksForLevel")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_HasAttacksForLevel")]
internal static extern byte HasAttacksForLevel(IntPtr p, byte level); internal static extern byte HasAttacksForLevel(IntPtr p, byte level);
/// <param name="p">LearnableAttacks *</param> /// <param name="p">LearnableAttacks *</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetAttacksForLevelCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetAttacksForLevelCount")]
internal static extern ulong GetAttacksForLevelCount(IntPtr p, byte level); internal static extern ulong GetAttacksForLevelCount(IntPtr p, byte level);
/// <param name="p">LearnableAttacks *</param> /// <param name="p">LearnableAttacks *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetDistinctLevelAttacksCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetDistinctLevelAttacksCount")]
internal static extern ulong GetDistinctLevelAttacksCount(IntPtr p); internal static extern ulong GetDistinctLevelAttacksCount(IntPtr p);
/// <param name="p">LearnableAttacks *</param> /// <param name="p">LearnableAttacks *</param>
/// <returns>const const AttackData * *</returns> /// <returns>const const AttackData * *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetDistinctLevelAttacks")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnableAttacks_GetDistinctLevelAttacks")]
internal static extern IntPtr GetDistinctLevelAttacks(IntPtr p); internal static extern IntPtr GetDistinctLevelAttacks(IntPtr p);
} }

View File

@ -11,55 +11,55 @@ namespace Creaturelib.Generated
/// <param name="maxUses">unsigned char</param> /// <param name="maxUses">unsigned char</param>
/// <param name="learnMethod">AttackLearnMethod</param> /// <param name="learnMethod">AttackLearnMethod</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_Construct")]
internal static extern byte Construct(ref IntPtr @out, IntPtr attack, byte maxUses, AttackLearnMethod learnMethod); internal static extern byte Construct(ref IntPtr @out, IntPtr attack, byte maxUses, AttackLearnMethod learnMethod);
/// <param name="p">LearnedAttack *</param> /// <param name="p">LearnedAttack *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const LearnedAttack *</param> /// <param name="p">const LearnedAttack *</param>
/// <returns>const AttackData *</returns> /// <returns>const AttackData *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetAttack")]
internal static extern IntPtr GetAttack(IntPtr p); internal static extern IntPtr GetAttack(IntPtr p);
/// <param name="p">const LearnedAttack *</param> /// <param name="p">const LearnedAttack *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetMaxUses")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetMaxUses")]
internal static extern byte GetMaxUses(IntPtr p); internal static extern byte GetMaxUses(IntPtr p);
/// <param name="p">const LearnedAttack *</param> /// <param name="p">const LearnedAttack *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetRemainingUses")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetRemainingUses")]
internal static extern byte GetRemainingUses(IntPtr p); internal static extern byte GetRemainingUses(IntPtr p);
/// <param name="p">const LearnedAttack *</param> /// <param name="p">const LearnedAttack *</param>
/// <returns>AttackLearnMethod</returns> /// <returns>AttackLearnMethod</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetLearnMethod")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_GetLearnMethod")]
internal static extern AttackLearnMethod GetLearnMethod(IntPtr p); internal static extern AttackLearnMethod GetLearnMethod(IntPtr p);
/// <param name="p">LearnedAttack *</param> /// <param name="p">LearnedAttack *</param>
/// <param name="uses">unsigned char</param> /// <param name="uses">unsigned char</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_TryUse")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_TryUse")]
internal static extern byte TryUse(IntPtr p, byte uses); internal static extern byte TryUse(IntPtr p, byte uses);
/// <param name="p">LearnedAttack *</param> /// <param name="p">LearnedAttack *</param>
/// <param name="uses">unsigned char</param> /// <param name="uses">unsigned char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_DecreaseUses")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_DecreaseUses")]
internal static extern void DecreaseUses(IntPtr p, byte uses); internal static extern void DecreaseUses(IntPtr p, byte uses);
/// <param name="p">LearnedAttack *</param> /// <param name="p">LearnedAttack *</param>
/// <param name="uses">unsigned char</param> /// <param name="uses">unsigned char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_RestoreUses")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_RestoreUses")]
internal static extern void RestoreUses(IntPtr p, byte uses); internal static extern void RestoreUses(IntPtr p, byte uses);
/// <param name="p">LearnedAttack *</param> /// <param name="p">LearnedAttack *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_RestoreAllUses")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LearnedAttack_RestoreAllUses")]
internal static extern void RestoreAllUses(IntPtr p); internal static extern void RestoreAllUses(IntPtr p);
} }

View File

@ -9,22 +9,22 @@ namespace Creaturelib.Generated
/// <param name="maximalLevel">unsigned char</param> /// <param name="maximalLevel">unsigned char</param>
/// <param name="maximalMoves">unsigned char</param> /// <param name="maximalMoves">unsigned char</param>
/// <returns>const LibrarySettings *</returns> /// <returns>const LibrarySettings *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_Construct")]
internal static extern IntPtr Construct(byte maximalLevel, byte maximalMoves); internal static extern IntPtr Construct(byte maximalLevel, byte maximalMoves);
/// <param name="p">const LibrarySettings *</param> /// <param name="p">const LibrarySettings *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const LibrarySettings *</param> /// <param name="p">const LibrarySettings *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_GetMaximalLevel")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_GetMaximalLevel")]
internal static extern byte GetMaximalLevel(IntPtr p); internal static extern byte GetMaximalLevel(IntPtr p);
/// <param name="p">const LibrarySettings *</param> /// <param name="p">const LibrarySettings *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_GetMaximalAttacks")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LibrarySettings_GetMaximalAttacks")]
internal static extern byte GetMaximalAttacks(IntPtr p); internal static extern byte GetMaximalAttacks(IntPtr p);
} }

View File

@ -9,12 +9,12 @@ namespace Creaturelib.Generated
/// <param name="experiencePerLevel">unsigned int *</param> /// <param name="experiencePerLevel">unsigned int *</param>
/// <param name="count">long unsigned int</param> /// <param name="count">long unsigned int</param>
/// <returns>GrowthRate *</returns> /// <returns>GrowthRate *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Construct")]
internal static extern IntPtr Construct(IntPtr experiencePerLevel, ulong count); internal static extern IntPtr Construct(IntPtr experiencePerLevel, ulong count);
/// <param name="p">const LookupGrowthRate *</param> /// <param name="p">const LookupGrowthRate *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_LookupGrowthRate_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -7,12 +7,12 @@ namespace Creaturelib.Generated
internal static class MiscLibrary internal static class MiscLibrary
{ {
/// <returns>MiscLibrary *</returns> /// <returns>MiscLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">const MiscLibrary *</param> /// <param name="p">const MiscLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="out">bool &</param> /// <param name="out">bool &</param>
@ -21,14 +21,14 @@ namespace Creaturelib.Generated
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <param name="hit">unsigned char</param> /// <param name="hit">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_IsCritical")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_IsCritical")]
internal static extern byte IsCritical(ref byte @out, IntPtr p, IntPtr attack, IntPtr target, byte hit); 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="p">MiscLibrary *</param>
/// <param name="switchChoice">FleeTurnChoice *</param> /// <param name="switchChoice">FleeTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_CanFlee")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_CanFlee")]
internal static extern byte CanFlee(ref byte @out, IntPtr p, IntPtr switchChoice); internal static extern byte CanFlee(ref byte @out, IntPtr p, IntPtr switchChoice);
/// <param name="out">BaseTurnChoice * &</param> /// <param name="out">BaseTurnChoice * &</param>
@ -37,7 +37,7 @@ namespace Creaturelib.Generated
/// <param name="sideTarget">unsigned char</param> /// <param name="sideTarget">unsigned char</param>
/// <param name="creatureTarget">unsigned char</param> /// <param name="creatureTarget">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_ReplacementAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MiscLibrary_ReplacementAttack")]
internal static extern byte ReplacementAttack(ref IntPtr @out, IntPtr p, IntPtr user, byte sideTarget, byte creatureTarget); internal static extern byte ReplacementAttack(ref IntPtr @out, IntPtr p, IntPtr user, byte sideTarget, byte creatureTarget);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const MissEvent *</param> /// <param name="p">const MissEvent *</param>
/// <returns>const Creature *</returns> /// <returns>const Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MissEvent_GetCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MissEvent_GetCreature")]
internal static extern IntPtr GetCreature(IntPtr p); internal static extern IntPtr GetCreature(IntPtr p);
/// <param name="p">const MissEvent *</param> /// <param name="p">const MissEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MissEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_MissEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Creaturelib.Generated
{ {
/// <param name="user">Creature *</param> /// <param name="user">Creature *</param>
/// <returns>PassTurnChoice *</returns> /// <returns>PassTurnChoice *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Construct")]
internal static extern IntPtr Construct(IntPtr user); internal static extern IntPtr Construct(IntPtr user);
/// <param name="p">AttackTurnChoice *</param> /// <param name="p">AttackTurnChoice *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_PassTurnChoice_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,62 +8,62 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_Stack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_Stack")]
internal static extern byte Stack(IntPtr p); internal static extern byte Stack(IntPtr p);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnRemove")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnRemove")]
internal static extern byte OnRemove(IntPtr p); internal static extern byte OnRemove(IntPtr p);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_GetName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_GetName")]
internal static extern IntPtr GetName(IntPtr p); internal static extern IntPtr GetName(IntPtr p);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="choice">const BaseTurnChoice *</param> /// <param name="choice">const BaseTurnChoice *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeTurn")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeTurn")]
internal static extern byte OnBeforeTurn(IntPtr p, IntPtr choice); internal static extern byte OnBeforeTurn(IntPtr p, IntPtr choice);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="choice">AttackTurnChoice *</param> /// <param name="choice">AttackTurnChoice *</param>
/// <param name="outAttack">const char * &</param> /// <param name="outAttack">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttack")]
internal static extern byte ChangeAttack(IntPtr p, IntPtr choice, ref IntPtr outAttack); internal static extern byte ChangeAttack(IntPtr p, IntPtr choice, ref IntPtr outAttack);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="attack">ExecutingAttack *</param> /// <param name="attack">ExecutingAttack *</param>
/// <param name="outResult">bool *</param> /// <param name="outResult">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventAttack")]
internal static extern byte PreventAttack(IntPtr p, IntPtr attack, IntPtr outResult); internal static extern byte PreventAttack(IntPtr p, IntPtr attack, IntPtr outResult);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="attack">ExecutingAttack *</param> /// <param name="attack">ExecutingAttack *</param>
/// <param name="outResult">bool *</param> /// <param name="outResult">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailAttack")]
internal static extern byte FailAttack(IntPtr p, IntPtr attack, IntPtr outResult); internal static extern byte FailAttack(IntPtr p, IntPtr attack, IntPtr outResult);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="attack">ExecutingAttack *</param> /// <param name="attack">ExecutingAttack *</param>
/// <param name="outResult">bool *</param> /// <param name="outResult">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_StopBeforeAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_StopBeforeAttack")]
internal static extern byte StopBeforeAttack(IntPtr p, IntPtr attack, IntPtr outResult); internal static extern byte StopBeforeAttack(IntPtr p, IntPtr attack, IntPtr outResult);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="attack">ExecutingAttack *</param> /// <param name="attack">ExecutingAttack *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnBeforeAttack")]
internal static extern byte OnBeforeAttack(IntPtr p, IntPtr attack); internal static extern byte OnBeforeAttack(IntPtr p, IntPtr attack);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -71,7 +71,7 @@ namespace Creaturelib.Generated
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <param name="outResult">bool *</param> /// <param name="outResult">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailIncomingAttack")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_FailIncomingAttack")]
internal static extern byte FailIncomingAttack(IntPtr p, IntPtr attack, IntPtr target, IntPtr outResult); internal static extern byte FailIncomingAttack(IntPtr p, IntPtr attack, IntPtr target, IntPtr outResult);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -79,14 +79,14 @@ namespace Creaturelib.Generated
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <param name="outResult">bool *</param> /// <param name="outResult">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_IsInvulnerable")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_IsInvulnerable")]
internal static extern byte IsInvulnerable(IntPtr p, IntPtr attack, IntPtr target, IntPtr outResult); internal static extern byte IsInvulnerable(IntPtr p, IntPtr attack, IntPtr target, IntPtr outResult);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="attack">ExecutingAttack *</param> /// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnAttackMiss")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnAttackMiss")]
internal static extern byte OnAttackMiss(IntPtr p, IntPtr attack, IntPtr target); internal static extern byte OnAttackMiss(IntPtr p, IntPtr attack, IntPtr target);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -95,7 +95,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="outType">unsigned char *</param> /// <param name="outType">unsigned char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttackType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeAttackType")]
internal static extern byte ChangeAttackType(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outType); internal static extern byte ChangeAttackType(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outType);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -104,7 +104,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="basePower">unsigned char *</param> /// <param name="basePower">unsigned char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideBasePower")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideBasePower")]
internal static extern byte OverrideBasePower(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr basePower); internal static extern byte OverrideBasePower(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr basePower);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -113,7 +113,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="statsUser">Creature * *</param> /// <param name="statsUser">Creature * *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeDamageStatsUser")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ChangeDamageStatsUser")]
internal static extern byte ChangeDamageStatsUser(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr statsUser); internal static extern byte ChangeDamageStatsUser(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr statsUser);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -122,7 +122,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="bypass">bool *</param> /// <param name="bypass">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassDefensiveStat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassDefensiveStat")]
internal static extern byte BypassDefensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass); internal static extern byte BypassDefensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -131,7 +131,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="bypass">bool *</param> /// <param name="bypass">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassOffensiveStat")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_BypassOffensiveStat")]
internal static extern byte BypassOffensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass); internal static extern byte BypassOffensiveStat(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr bypass);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -140,7 +140,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="modifier">float *</param> /// <param name="modifier">float *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyStatModifier")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyStatModifier")]
internal static extern byte ModifyStatModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier); internal static extern byte ModifyStatModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -149,7 +149,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="modifier">float *</param> /// <param name="modifier">float *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyDamageModifier")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyDamageModifier")]
internal static extern byte ModifyDamageModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier); internal static extern byte ModifyDamageModifier(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr modifier);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -158,7 +158,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="damage">unsigned int *</param> /// <param name="damage">unsigned int *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideDamage")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OverrideDamage")]
internal static extern byte OverrideDamage(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr damage); internal static extern byte OverrideDamage(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr damage);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -167,7 +167,7 @@ namespace Creaturelib.Generated
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <param name="outResult">bool *</param> /// <param name="outResult">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSecondaryEffects")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSecondaryEffects")]
internal static extern byte PreventSecondaryEffects(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outResult); internal static extern byte PreventSecondaryEffects(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber, IntPtr outResult);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -175,21 +175,21 @@ namespace Creaturelib.Generated
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <param name="hitNumber">unsigned char</param> /// <param name="hitNumber">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnSecondaryEffect")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnSecondaryEffect")]
internal static extern byte OnSecondaryEffect(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber); internal static extern byte OnSecondaryEffect(IntPtr p, IntPtr attack, IntPtr target, byte hitNumber);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="attack">ExecutingAttack *</param> /// <param name="attack">ExecutingAttack *</param>
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnAfterHits")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_OnAfterHits")]
internal static extern byte OnAfterHits(IntPtr p, IntPtr attack, IntPtr target); internal static extern byte OnAfterHits(IntPtr p, IntPtr attack, IntPtr target);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
/// <param name="choice">const SwitchTurnChoice *</param> /// <param name="choice">const SwitchTurnChoice *</param>
/// <param name="outResult">bool *</param> /// <param name="outResult">bool *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSelfSwitch")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_PreventSelfSwitch")]
internal static extern byte PreventSelfSwitch(IntPtr p, IntPtr choice, IntPtr outResult); internal static extern byte PreventSelfSwitch(IntPtr p, IntPtr choice, IntPtr outResult);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -197,7 +197,7 @@ namespace Creaturelib.Generated
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <param name="chance">float *</param> /// <param name="chance">float *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyEffectChance")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyEffectChance")]
internal static extern byte ModifyEffectChance(IntPtr p, IntPtr attack, IntPtr target, IntPtr chance); internal static extern byte ModifyEffectChance(IntPtr p, IntPtr attack, IntPtr target, IntPtr chance);
/// <param name="p">Script *</param> /// <param name="p">Script *</param>
@ -205,7 +205,7 @@ namespace Creaturelib.Generated
/// <param name="target">Creature *</param> /// <param name="target">Creature *</param>
/// <param name="chance">float *</param> /// <param name="chance">float *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyIncomingEffectChance")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Script_ModifyIncomingEffectChance")]
internal static extern byte ModifyIncomingEffectChance(IntPtr p, IntPtr attack, IntPtr target, IntPtr chance); internal static extern byte ModifyIncomingEffectChance(IntPtr p, IntPtr attack, IntPtr target, IntPtr chance);
} }

View File

@ -7,18 +7,18 @@ namespace Creaturelib.Generated
internal static class ScriptResolver internal static class ScriptResolver
{ {
/// <returns>ScriptResolver *</returns> /// <returns>ScriptResolver *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">const ScriptResolver *</param> /// <param name="p">const ScriptResolver *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">ScriptResolver *</param> /// <param name="p">ScriptResolver *</param>
/// <param name="library">BattleLibrary *</param> /// <param name="library">BattleLibrary *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Initialize")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_Initialize")]
internal static extern byte Initialize(IntPtr p, IntPtr library); internal static extern byte Initialize(IntPtr p, IntPtr library);
/// <param name="out">Script * &</param> /// <param name="out">Script * &</param>
@ -26,7 +26,7 @@ namespace Creaturelib.Generated
/// <param name="category">ScriptCategory</param> /// <param name="category">ScriptCategory</param>
/// <param name="scriptName">const char *</param> /// <param name="scriptName">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_LoadScript")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ScriptResolver_LoadScript")]
internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, ScriptCategory category, IntPtr scriptName); internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, ScriptCategory category, IntPtr scriptName);
} }

View File

@ -8,84 +8,84 @@ namespace Creaturelib.Generated
{ {
/// <param name="initialCapacity">long unsigned int</param> /// <param name="initialCapacity">long unsigned int</param>
/// <returns>const SpeciesLibrary *</returns> /// <returns>const SpeciesLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Construct")]
internal static extern IntPtr Construct(ulong initialCapacity); internal static extern IntPtr Construct(ulong initialCapacity);
/// <param name="p">const SpeciesLibrary *</param> /// <param name="p">const SpeciesLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="t">CreatureSpecies *</param> /// <param name="t">CreatureSpecies *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Insert")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Insert")]
internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t); internal static extern byte Insert(IntPtr p, IntPtr name, IntPtr t);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="t">CreatureSpecies *</param> /// <param name="t">CreatureSpecies *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_InsertWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_InsertWithHash")]
internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t); internal static extern byte InsertWithHash(IntPtr p, uint hashedKey, IntPtr t);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Delete")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Delete")]
internal static extern byte Delete(IntPtr p, IntPtr name); internal static extern byte Delete(IntPtr p, IntPtr name);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_DeleteWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_DeleteWithHash")]
internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey); internal static extern byte DeleteWithHash(IntPtr p, uint hashedKey);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const CreatureSpecies * &</param> /// <param name="out">const CreatureSpecies * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGet")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGet")]
internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte TryGet(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="out">const CreatureSpecies * &</param> /// <param name="out">const CreatureSpecies * &</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGetWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_TryGetWithHash")]
internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); internal static extern byte TryGetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const CreatureSpecies * &</param> /// <param name="out">const CreatureSpecies * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Get")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_Get")]
internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte Get(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="hashedKey">unsigned int</param> /// <param name="hashedKey">unsigned int</param>
/// <param name="out">const CreatureSpecies * &</param> /// <param name="out">const CreatureSpecies * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetWithHash")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetWithHash")]
internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out); internal static extern byte GetWithHash(IntPtr p, uint hashedKey, ref IntPtr @out);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetCount")]
internal static extern ulong GetCount(IntPtr p); internal static extern ulong GetCount(IntPtr p);
/// <param name="p">SpeciesLibrary *</param> /// <param name="p">SpeciesLibrary *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="out">const CreatureSpecies * &</param> /// <param name="out">const CreatureSpecies * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetAtIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetAtIndex")]
internal static extern byte GetAtIndex(IntPtr p, ulong index, ref IntPtr @out); internal static extern byte GetAtIndex(IntPtr p, ulong index, ref IntPtr @out);
/// <param name="p">const SpeciesLibrary *</param> /// <param name="p">const SpeciesLibrary *</param>
/// <param name="id">unsigned short</param> /// <param name="id">unsigned short</param>
/// <returns>const CreatureSpecies *</returns> /// <returns>const CreatureSpecies *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetById")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesLibrary_GetById")]
internal static extern IntPtr GetById(IntPtr p, ushort id); internal static extern IntPtr GetById(IntPtr p, ushort id);
} }

View File

@ -26,59 +26,59 @@ namespace Creaturelib.Generated
/// <param name="flags">const char * *</param> /// <param name="flags">const char * *</param>
/// <param name="flagsCount">long unsigned int</param> /// <param name="flagsCount">long unsigned int</param>
/// <returns>SpeciesVariant *</returns> /// <returns>SpeciesVariant *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_Construct")] [DllImport("libCreatureLib", 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, IntPtr flags, ulong flagsCount); 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, IntPtr flags, ulong flagsCount);
/// <param name="p">SpeciesVariant *</param> /// <param name="p">SpeciesVariant *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">SpeciesVariant *</param> /// <param name="p">SpeciesVariant *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetName")]
internal static extern IntPtr GetName(IntPtr p); internal static extern IntPtr GetName(IntPtr p);
/// <param name="p">const SpeciesVariant *</param> /// <param name="p">const SpeciesVariant *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetHeight")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetHeight")]
internal static extern float GetHeight(IntPtr p); internal static extern float GetHeight(IntPtr p);
/// <param name="p">const SpeciesVariant *</param> /// <param name="p">const SpeciesVariant *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetWeight")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetWeight")]
internal static extern float GetWeight(IntPtr p); internal static extern float GetWeight(IntPtr p);
/// <param name="p">const SpeciesVariant *</param> /// <param name="p">const SpeciesVariant *</param>
/// <returns>unsigned int</returns> /// <returns>unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetBaseExperience")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetBaseExperience")]
internal static extern uint GetBaseExperience(IntPtr p); internal static extern uint GetBaseExperience(IntPtr p);
/// <param name="p">const SpeciesVariant *</param> /// <param name="p">const SpeciesVariant *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTypeCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTypeCount")]
internal static extern ulong GetTypeCount(IntPtr p); internal static extern ulong GetTypeCount(IntPtr p);
/// <param name="p">SpeciesVariant *</param> /// <param name="p">SpeciesVariant *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetType")]
internal static extern byte GetType(IntPtr p, ulong index); internal static extern byte GetType(IntPtr p, ulong index);
/// <param name="p">SpeciesVariant *</param> /// <param name="p">SpeciesVariant *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned short</returns> /// <returns>unsigned short</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetStatistic")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetStatistic")]
internal static extern ushort GetStatistic(IntPtr p, Statistic stat); internal static extern ushort GetStatistic(IntPtr p, Statistic stat);
/// <param name="p">const SpeciesVariant *</param> /// <param name="p">const SpeciesVariant *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalentCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalentCount")]
internal static extern ulong GetTalentCount(IntPtr p); internal static extern ulong GetTalentCount(IntPtr p);
/// <param name="p">const SpeciesVariant *</param> /// <param name="p">const SpeciesVariant *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetSecretTalentCount")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetSecretTalentCount")]
internal static extern ulong GetSecretTalentCount(IntPtr p); internal static extern ulong GetSecretTalentCount(IntPtr p);
/// <param name="p">SpeciesVariant *</param> /// <param name="p">SpeciesVariant *</param>
@ -86,24 +86,24 @@ namespace Creaturelib.Generated
/// <param name="index">unsigned char</param> /// <param name="index">unsigned char</param>
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalent")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetTalent")]
internal static extern byte GetTalent(IntPtr p, byte secret, byte index, ref IntPtr @out); internal static extern byte GetTalent(IntPtr p, byte secret, byte index, ref IntPtr @out);
/// <param name="p">SpeciesVariant *</param> /// <param name="p">SpeciesVariant *</param>
/// <returns>const LearnableAttacks *</returns> /// <returns>const LearnableAttacks *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetLearnableAttacks")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetLearnableAttacks")]
internal static extern IntPtr GetLearnableAttacks(IntPtr p); internal static extern IntPtr GetLearnableAttacks(IntPtr p);
/// <param name="p">SpeciesVariant *</param> /// <param name="p">SpeciesVariant *</param>
/// <param name="rand">Random *</param> /// <param name="rand">Random *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetRandomTalent")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_GetRandomTalent")]
internal static extern byte GetRandomTalent(IntPtr p, IntPtr rand); internal static extern byte GetRandomTalent(IntPtr p, IntPtr rand);
/// <param name="p">const SpeciesVariant *</param> /// <param name="p">const SpeciesVariant *</param>
/// <param name="key">const char *</param> /// <param name="key">const char *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_HasFlag")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SpeciesVariant_HasFlag")]
internal static extern byte HasFlag(IntPtr p, IntPtr key); internal static extern byte HasFlag(IntPtr p, IntPtr key);
} }

View File

@ -8,22 +8,22 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const SwitchEvent *</param> /// <param name="p">const SwitchEvent *</param>
/// <returns>Creature *</returns> /// <returns>Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_GetNewCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_GetNewCreature")]
internal static extern IntPtr GetNewCreature(IntPtr p); internal static extern IntPtr GetNewCreature(IntPtr p);
/// <param name="p">const SwitchEvent *</param> /// <param name="p">const SwitchEvent *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_GetSide")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_GetSide")]
internal static extern byte GetSide(IntPtr p); internal static extern byte GetSide(IntPtr p);
/// <param name="p">const SwitchEvent *</param> /// <param name="p">const SwitchEvent *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_GetIndex")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_GetIndex")]
internal static extern byte GetIndex(IntPtr p); internal static extern byte GetIndex(IntPtr p);
/// <param name="p">const SwitchEvent *</param> /// <param name="p">const SwitchEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -9,17 +9,17 @@ namespace Creaturelib.Generated
/// <param name="user">Creature *</param> /// <param name="user">Creature *</param>
/// <param name="newCreature">Creature *</param> /// <param name="newCreature">Creature *</param>
/// <returns>SwitchTurnChoice *</returns> /// <returns>SwitchTurnChoice *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Construct")]
internal static extern IntPtr Construct(IntPtr user, IntPtr newCreature); internal static extern IntPtr Construct(IntPtr user, IntPtr newCreature);
/// <param name="p">AttackTurnChoice *</param> /// <param name="p">AttackTurnChoice *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const SwitchTurnChoice *</param> /// <param name="p">const SwitchTurnChoice *</param>
/// <returns>Creature *</returns> /// <returns>Creature *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_GetNewCreature")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_SwitchTurnChoice_GetNewCreature")]
internal static extern IntPtr GetNewCreature(IntPtr p); internal static extern IntPtr GetNewCreature(IntPtr p);
} }

View File

@ -8,7 +8,7 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const TurnEndEvent *</param> /// <param name="p">const TurnEndEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TurnEndEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TurnEndEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,7 +8,7 @@ namespace Creaturelib.Generated
{ {
/// <param name="p">const TurnStartEvent *</param> /// <param name="p">const TurnStartEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TurnStartEvent_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TurnStartEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,26 +8,26 @@ namespace Creaturelib.Generated
{ {
/// <param name="initialCapacity">long unsigned int</param> /// <param name="initialCapacity">long unsigned int</param>
/// <returns>TypeLibrary *</returns> /// <returns>TypeLibrary *</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Construct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Construct")]
internal static extern IntPtr Construct(ulong initialCapacity); internal static extern IntPtr Construct(ulong initialCapacity);
/// <param name="p">const TypeLibrary *</param> /// <param name="p">const TypeLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Destruct")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); 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="p">const TypeLibrary *</param>
/// <param name="type">const char *</param> /// <param name="type">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeId")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeId")]
internal static extern byte GetTypeId(ref byte @out, IntPtr p, IntPtr type); 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">TypeLibrary *</param> /// <param name="p">TypeLibrary *</param>
/// <param name="type">const char *</param> /// <param name="type">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterType")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_RegisterType")]
internal static extern byte RegisterType(ref byte @out, IntPtr p, IntPtr type); internal static extern byte RegisterType(ref byte @out, IntPtr p, IntPtr type);
/// <param name="p">TypeLibrary *</param> /// <param name="p">TypeLibrary *</param>
@ -35,7 +35,7 @@ namespace Creaturelib.Generated
/// <param name="defensive">unsigned char</param> /// <param name="defensive">unsigned char</param>
/// <param name="effectiveness">float</param> /// <param name="effectiveness">float</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_SetEffectiveness")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_SetEffectiveness")]
internal static extern byte SetEffectiveness(IntPtr p, byte attacking, byte defensive, float effectiveness); internal static extern byte SetEffectiveness(IntPtr p, byte attacking, byte defensive, float effectiveness);
/// <param name="out">float &</param> /// <param name="out">float &</param>
@ -43,7 +43,7 @@ namespace Creaturelib.Generated
/// <param name="attacking">unsigned char</param> /// <param name="attacking">unsigned char</param>
/// <param name="defensive">unsigned char</param> /// <param name="defensive">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetSingleEffectiveness")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetSingleEffectiveness")]
internal static extern byte GetSingleEffectiveness(ref float @out, IntPtr p, byte attacking, byte defensive); internal static extern byte GetSingleEffectiveness(ref float @out, IntPtr p, byte attacking, byte defensive);
/// <param name="out">float &</param> /// <param name="out">float &</param>
@ -52,14 +52,14 @@ namespace Creaturelib.Generated
/// <param name="defensive">unsigned char *</param> /// <param name="defensive">unsigned char *</param>
/// <param name="defensiveCount">long unsigned int</param> /// <param name="defensiveCount">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetEffectiveness")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetEffectiveness")]
internal static extern byte GetEffectiveness(ref float @out, IntPtr p, byte attacking, IntPtr defensive, ulong defensiveCount); internal static extern byte GetEffectiveness(ref float @out, IntPtr p, byte attacking, IntPtr defensive, ulong defensiveCount);
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <param name="p">TypeLibrary *</param> /// <param name="p">TypeLibrary *</param>
/// <param name="type">unsigned char</param> /// <param name="type">unsigned char</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("CreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeName")] [DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_TypeLibrary_GetTypeName")]
internal static extern byte GetTypeName(ref IntPtr @out, IntPtr p, byte type); internal static extern byte GetTypeName(ref IntPtr @out, IntPtr p, byte type);
} }

View File

@ -7,30 +7,30 @@ namespace Pkmnlib.Generated
internal static class AngelScriptResolver internal static class AngelScriptResolver
{ {
/// <returns>AngelScriptResolver *</returns> /// <returns>AngelScriptResolver *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Destruct")]
internal static extern byte Destruct(IntPtr p); internal static extern byte Destruct(IntPtr p);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <param name="lib">BattleLibrary *</param> /// <param name="lib">BattleLibrary *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Initialize")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_Initialize")]
internal static extern byte Initialize(IntPtr p, IntPtr lib); internal static extern byte Initialize(IntPtr p, IntPtr lib);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="script">const char *</param> /// <param name="script">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_CreateScript")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_CreateScript")]
internal static extern byte CreateScript(IntPtr p, IntPtr name, IntPtr script); internal static extern byte CreateScript(IntPtr p, IntPtr name, IntPtr script);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_FinalizeModule")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_FinalizeModule")]
internal static extern byte FinalizeModule(IntPtr p); internal static extern byte FinalizeModule(IntPtr p);
/// <param name="out">Script * &</param> /// <param name="out">Script * &</param>
@ -38,20 +38,20 @@ namespace Pkmnlib.Generated
/// <param name="category">ScriptCategory</param> /// <param name="category">ScriptCategory</param>
/// <param name="scriptName">const char *</param> /// <param name="scriptName">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadScript")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadScript")]
internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, ScriptCategory category, IntPtr scriptName); internal static extern byte LoadScript(ref IntPtr @out, IntPtr p, ScriptCategory category, IntPtr scriptName);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <param name="file">const char *</param> /// <param name="file">const char *</param>
/// <param name="stripDebugInfo">bool</param> /// <param name="stripDebugInfo">bool</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToFile")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToFile")]
internal static extern byte WriteByteCodeToFile(IntPtr p, IntPtr file, byte stripDebugInfo); internal static extern byte WriteByteCodeToFile(IntPtr p, IntPtr file, byte stripDebugInfo);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <param name="file">const char *</param> /// <param name="file">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromFile")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromFile")]
internal static extern byte LoadByteCodeFromFile(IntPtr p, IntPtr file); internal static extern byte LoadByteCodeFromFile(IntPtr p, IntPtr file);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
@ -59,20 +59,20 @@ namespace Pkmnlib.Generated
/// <param name="size">long unsigned int &</param> /// <param name="size">long unsigned int &</param>
/// <param name="out">unsigned char * &</param> /// <param name="out">unsigned char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToMemory")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_WriteByteCodeToMemory")]
internal static extern byte WriteByteCodeToMemory(IntPtr p, byte stripDebugInfo, ref ulong size, ref IntPtr @out); internal static extern byte WriteByteCodeToMemory(IntPtr p, byte stripDebugInfo, ref ulong size, ref IntPtr @out);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <param name="memory">unsigned char *</param> /// <param name="memory">unsigned char *</param>
/// <param name="size">long unsigned int</param> /// <param name="size">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromMemory")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_LoadByteCodeFromMemory")]
internal static extern byte LoadByteCodeFromMemory(IntPtr p, IntPtr memory, ulong size); internal static extern byte LoadByteCodeFromMemory(IntPtr p, IntPtr memory, ulong size);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <param name="typeName">const char *</param> /// <param name="typeName">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterType")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterType")]
internal static extern byte RegisterType(IntPtr p, IntPtr typeName); internal static extern byte RegisterType(IntPtr p, IntPtr typeName);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
@ -80,14 +80,14 @@ namespace Pkmnlib.Generated
/// <param name="decl">const char *</param> /// <param name="decl">const char *</param>
/// <param name="func">Function *</param> /// <param name="func">Function *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterTypeMethod")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterTypeMethod")]
internal static extern byte RegisterTypeMethod(IntPtr p, IntPtr typeName, IntPtr decl, IntPtr func); internal static extern byte RegisterTypeMethod(IntPtr p, IntPtr typeName, IntPtr decl, IntPtr func);
/// <param name="p">AngelScriptResolver *</param> /// <param name="p">AngelScriptResolver *</param>
/// <param name="decl">const char *</param> /// <param name="decl">const char *</param>
/// <param name="func">Function *</param> /// <param name="func">Function *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterGlobalMethod")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelScriptResolver_RegisterGlobalMethod")]
internal static extern byte RegisterGlobalMethod(IntPtr p, IntPtr decl, IntPtr func); internal static extern byte RegisterGlobalMethod(IntPtr p, IntPtr decl, IntPtr func);
} }

View File

@ -8,7 +8,7 @@ namespace Pkmnlib.Generated
{ {
/// <param name="p">AngelScriptScript *</param> /// <param name="p">AngelScriptScript *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelscriptScript_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_AngelscriptScript_Destruct")]
internal static extern byte Destruct(IntPtr p); internal static extern byte Destruct(IntPtr p);
} }

View File

@ -15,28 +15,28 @@ namespace Pkmnlib.Generated
/// <param name="creaturesPerSide">unsigned char</param> /// <param name="creaturesPerSide">unsigned char</param>
/// <param name="randomSeed">long unsigned int</param> /// <param name="randomSeed">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_Construct")]
internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr parties, ulong partiesCount, byte canFlee, byte numberOfSides, byte creaturesPerSide, ulong randomSeed); internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr parties, ulong partiesCount, byte canFlee, byte numberOfSides, byte creaturesPerSide, ulong randomSeed);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_SetWeather")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_SetWeather")]
internal static extern byte SetWeather(IntPtr p, IntPtr name); internal static extern byte SetWeather(IntPtr p, IntPtr name);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_ClearWeather")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_ClearWeather")]
internal static extern byte ClearWeather(IntPtr p); internal static extern byte ClearWeather(IntPtr p);
/// <param name="p">Battle *</param> /// <param name="p">Battle *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_GetWeatherName")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Battle_GetWeatherName")]
internal static extern IntPtr GetWeatherName(IntPtr p); internal static extern IntPtr GetWeatherName(IntPtr p);
} }

View File

@ -14,12 +14,12 @@ namespace Pkmnlib.Generated
/// <param name="scriptResolver">ScriptResolver *</param> /// <param name="scriptResolver">ScriptResolver *</param>
/// <param name="miscLibrary">MiscLibrary *</param> /// <param name="miscLibrary">MiscLibrary *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_BattleLibrary_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_BattleLibrary_Construct")]
internal static extern byte Construct(ref IntPtr @out, IntPtr staticLib, IntPtr statCalculator, IntPtr damageLibrary, IntPtr experienceLibrary, IntPtr scriptResolver, IntPtr miscLibrary); internal static extern byte Construct(ref IntPtr @out, IntPtr staticLib, IntPtr statCalculator, IntPtr damageLibrary, IntPtr experienceLibrary, IntPtr scriptResolver, IntPtr miscLibrary);
/// <param name="p">BattleLibrary *</param> /// <param name="p">BattleLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_BattleLibrary_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_BattleLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -7,7 +7,7 @@ namespace Pkmnlib.Generated
internal static class C internal static class C
{ {
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_C_GetLastException")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_C_GetLastException")]
internal static extern IntPtr GetLastException(); internal static extern IntPtr GetLastException();
} }

View File

@ -7,12 +7,12 @@ namespace Pkmnlib.Generated
internal static class DamageLibrary internal static class DamageLibrary
{ {
/// <returns>DamageLibrary *</returns> /// <returns>DamageLibrary *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_DamageLibrary_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_DamageLibrary_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">DamageLibrary *</param> /// <param name="p">DamageLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_DamageLibrary_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_DamageLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -9,103 +9,103 @@ namespace Pkmnlib.Generated
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateLevelEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateLevelEvolution")]
internal static extern IntPtr CreateLevelEvolution(byte level, IntPtr into); internal static extern IntPtr CreateLevelEvolution(byte level, IntPtr into);
/// <param name="friendship">unsigned char</param> /// <param name="friendship">unsigned char</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateFriendshipEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateFriendshipEvolution")]
internal static extern IntPtr CreateFriendshipEvolution(byte friendship, IntPtr into); internal static extern IntPtr CreateFriendshipEvolution(byte friendship, IntPtr into);
/// <param name="move">const MoveData *</param> /// <param name="move">const MoveData *</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateKnownMoveEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateKnownMoveEvolution")]
internal static extern IntPtr CreateKnownMoveEvolution(IntPtr move, IntPtr into); internal static extern IntPtr CreateKnownMoveEvolution(IntPtr move, IntPtr into);
/// <param name="location">const char *</param> /// <param name="location">const char *</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateLocationEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateLocationEvolution")]
internal static extern IntPtr CreateLocationEvolution(IntPtr location, IntPtr into); internal static extern IntPtr CreateLocationEvolution(IntPtr location, IntPtr into);
/// <param name="time">TimeOfDay</param> /// <param name="time">TimeOfDay</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTimeEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTimeEvolution")]
internal static extern IntPtr CreateTimeEvolution(TimeOfDay time, IntPtr into); internal static extern IntPtr CreateTimeEvolution(TimeOfDay time, IntPtr into);
/// <param name="item">const Item *</param> /// <param name="item">const Item *</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateItemEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateItemEvolution")]
internal static extern IntPtr CreateItemEvolution(IntPtr item, IntPtr into); internal static extern IntPtr CreateItemEvolution(IntPtr item, IntPtr into);
/// <param name="gender">Gender</param> /// <param name="gender">Gender</param>
/// <param name="level">unsigned char</param> /// <param name="level">unsigned char</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateGenderBasedEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateGenderBasedEvolution")]
internal static extern IntPtr CreateGenderBasedEvolution(Gender gender, byte level, IntPtr into); internal static extern IntPtr CreateGenderBasedEvolution(Gender gender, byte level, IntPtr into);
/// <param name="item">const Item *</param> /// <param name="item">const Item *</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateItemUseEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateItemUseEvolution")]
internal static extern IntPtr CreateItemUseEvolution(IntPtr item, IntPtr into); internal static extern IntPtr CreateItemUseEvolution(IntPtr item, IntPtr into);
/// <param name="item">const Item *</param> /// <param name="item">const Item *</param>
/// <param name="gender">Gender</param> /// <param name="gender">Gender</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateItemUseWithGenderEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateItemUseWithGenderEvolution")]
internal static extern IntPtr CreateItemUseWithGenderEvolution(IntPtr item, Gender gender, IntPtr into); internal static extern IntPtr CreateItemUseWithGenderEvolution(IntPtr item, Gender gender, IntPtr into);
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTradeEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTradeEvolution")]
internal static extern IntPtr CreateTradeEvolution(IntPtr into); internal static extern IntPtr CreateTradeEvolution(IntPtr into);
/// <param name="item">const Item *</param> /// <param name="item">const Item *</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTradeWithItemEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTradeWithItemEvolution")]
internal static extern IntPtr CreateTradeWithItemEvolution(IntPtr item, IntPtr into); internal static extern IntPtr CreateTradeWithItemEvolution(IntPtr item, IntPtr into);
/// <param name="traded">const PokemonSpecies *</param> /// <param name="traded">const PokemonSpecies *</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTradeWithSpeciesEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateTradeWithSpeciesEvolution")]
internal static extern IntPtr CreateTradeWithSpeciesEvolution(IntPtr traded, IntPtr into); internal static extern IntPtr CreateTradeWithSpeciesEvolution(IntPtr traded, IntPtr into);
/// <param name="data">const EffectParameter * *</param> /// <param name="data">const EffectParameter * *</param>
/// <param name="dataLength">long unsigned int</param> /// <param name="dataLength">long unsigned int</param>
/// <param name="into">const PokemonSpecies *</param> /// <param name="into">const PokemonSpecies *</param>
/// <returns>const EvolutionData *</returns> /// <returns>const EvolutionData *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateCustomEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_CreateCustomEvolution")]
internal static extern IntPtr CreateCustomEvolution(IntPtr data, ulong dataLength, IntPtr into); internal static extern IntPtr CreateCustomEvolution(IntPtr data, ulong dataLength, IntPtr into);
/// <param name="data">const EvolutionData *</param> /// <param name="data">const EvolutionData *</param>
/// <returns>EvolutionMethod</returns> /// <returns>EvolutionMethod</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetMethod")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetMethod")]
internal static extern EvolutionMethod GetMethod(IntPtr data); internal static extern EvolutionMethod GetMethod(IntPtr data);
/// <param name="data">const EvolutionData *</param> /// <param name="data">const EvolutionData *</param>
/// <returns>const PokemonSpecies *</returns> /// <returns>const PokemonSpecies *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetNewSpecies")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetNewSpecies")]
internal static extern IntPtr GetNewSpecies(IntPtr data); internal static extern IntPtr GetNewSpecies(IntPtr data);
/// <param name="data">const EvolutionData *</param> /// <param name="data">const EvolutionData *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetDataCount")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetDataCount")]
internal static extern ulong GetDataCount(IntPtr data); internal static extern ulong GetDataCount(IntPtr data);
/// <param name="data">const EvolutionData *</param> /// <param name="data">const EvolutionData *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="out">const EffectParameter * &</param> /// <param name="out">const EffectParameter * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetData")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_EvolutionData_GetData")]
internal static extern byte GetData(IntPtr data, ulong index, ref IntPtr @out); internal static extern byte GetData(IntPtr data, ulong index, ref IntPtr @out);
} }

View File

@ -7,7 +7,7 @@ namespace Pkmnlib.Generated
internal static class ExperienceLibrary internal static class ExperienceLibrary
{ {
/// <returns>ExperienceLibrary *</returns> /// <returns>ExperienceLibrary *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_ExperienceLibrary_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_ExperienceLibrary_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">ExperienceLibrary *</param> /// <param name="p">ExperienceLibrary *</param>
@ -15,12 +15,12 @@ namespace Pkmnlib.Generated
/// <param name="opponents">const Creature * *</param> /// <param name="opponents">const Creature * *</param>
/// <param name="numberOfOpponents">long unsigned int</param> /// <param name="numberOfOpponents">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_ExperienceLibrary_HandleExperienceGain")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_ExperienceLibrary_HandleExperienceGain")]
internal static extern byte HandleExperienceGain(IntPtr p, IntPtr faintedMon, IntPtr opponents, ulong numberOfOpponents); internal static extern byte HandleExperienceGain(IntPtr p, IntPtr faintedMon, IntPtr opponents, ulong numberOfOpponents);
/// <param name="p">ExperienceLibrary *</param> /// <param name="p">ExperienceLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_ExperienceLibrary_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_ExperienceLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -14,17 +14,17 @@ namespace Pkmnlib.Generated
/// <param name="flagsCount">long unsigned int</param> /// <param name="flagsCount">long unsigned int</param>
/// <param name="flingPower">unsigned char</param> /// <param name="flingPower">unsigned char</param>
/// <returns>Item *</returns> /// <returns>Item *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_Construct")]
internal static extern IntPtr Construct(IntPtr name, ItemCategory category, BattleItemCategory battleCategory, int price, IntPtr flags, ulong flagsCount, byte flingPower); internal static extern IntPtr Construct(IntPtr name, ItemCategory category, BattleItemCategory battleCategory, int price, IntPtr flags, ulong flagsCount, byte flingPower);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const Item *</param> /// <param name="p">const Item *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_GetFlingPower")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Item_GetFlingPower")]
internal static extern byte GetFlingPower(IntPtr p); internal static extern byte GetFlingPower(IntPtr p);
} }

View File

@ -9,28 +9,28 @@ namespace Pkmnlib.Generated
/// <param name="out">LearnableMoves * &</param> /// <param name="out">LearnableMoves * &</param>
/// <param name="levelAttackCapacity">long unsigned int</param> /// <param name="levelAttackCapacity">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_Construct")]
internal static extern byte Construct(ref IntPtr @out, ulong levelAttackCapacity); internal static extern byte Construct(ref IntPtr @out, ulong levelAttackCapacity);
/// <param name="p">const LearnableMoves *</param> /// <param name="p">const LearnableMoves *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">LearnableMoves *</param> /// <param name="p">LearnableMoves *</param>
/// <param name="move">MoveData *</param> /// <param name="move">MoveData *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_AddEggMove")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_AddEggMove")]
internal static extern void AddEggMove(IntPtr p, IntPtr move); internal static extern void AddEggMove(IntPtr p, IntPtr move);
/// <param name="p">LearnableMoves *</param> /// <param name="p">LearnableMoves *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_GetEggMovesCount")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_GetEggMovesCount")]
internal static extern ulong GetEggMovesCount(IntPtr p); internal static extern ulong GetEggMovesCount(IntPtr p);
/// <param name="p">LearnableMoves *</param> /// <param name="p">LearnableMoves *</param>
/// <returns>const const MoveData * *</returns> /// <returns>const const MoveData * *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_GetEggMoves")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LearnableMoves_GetEggMoves")]
internal static extern IntPtr GetEggMoves(IntPtr p); internal static extern IntPtr GetEggMoves(IntPtr p);
} }

View File

@ -10,17 +10,17 @@ namespace Pkmnlib.Generated
/// <param name="maximalMoves">unsigned char</param> /// <param name="maximalMoves">unsigned char</param>
/// <param name="shinyRate">unsigned short</param> /// <param name="shinyRate">unsigned short</param>
/// <returns>const LibrarySettings *</returns> /// <returns>const LibrarySettings *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_Construct")]
internal static extern IntPtr Construct(byte maximalLevel, byte maximalMoves, ushort shinyRate); internal static extern IntPtr Construct(byte maximalLevel, byte maximalMoves, ushort shinyRate);
/// <param name="p">const LibrarySettings *</param> /// <param name="p">const LibrarySettings *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const LibrarySettings *</param> /// <param name="p">const LibrarySettings *</param>
/// <returns>unsigned short</returns> /// <returns>unsigned short</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_GetShinyRate")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_LibrarySettings_GetShinyRate")]
internal static extern ushort GetShinyRate(IntPtr p); internal static extern ushort GetShinyRate(IntPtr p);
} }

View File

@ -7,12 +7,12 @@ namespace Pkmnlib.Generated
internal static class MiscLibrary internal static class MiscLibrary
{ {
/// <returns>MiscLibrary *</returns> /// <returns>MiscLibrary *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_MiscLibrary_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_MiscLibrary_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">MiscLibrary *</param> /// <param name="p">MiscLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_MiscLibrary_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_MiscLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -11,38 +11,38 @@ namespace Pkmnlib.Generated
/// <param name="increasedModifier">float</param> /// <param name="increasedModifier">float</param>
/// <param name="decreasedModifier">float</param> /// <param name="decreasedModifier">float</param>
/// <returns>Nature *</returns> /// <returns>Nature *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_Construct")]
internal static extern IntPtr Construct(Statistic increasedStat, Statistic decreasedStat, float increasedModifier, float decreasedModifier); internal static extern IntPtr Construct(Statistic increasedStat, Statistic decreasedStat, float increasedModifier, float decreasedModifier);
/// <param name="p">const Nature *</param> /// <param name="p">const Nature *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const Nature *</param> /// <param name="p">const Nature *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetIncreaseModifier")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetIncreaseModifier")]
internal static extern float GetIncreaseModifier(IntPtr p); internal static extern float GetIncreaseModifier(IntPtr p);
/// <param name="p">const Nature *</param> /// <param name="p">const Nature *</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetDecreaseModifier")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetDecreaseModifier")]
internal static extern float GetDecreaseModifier(IntPtr p); internal static extern float GetDecreaseModifier(IntPtr p);
/// <param name="p">const Nature *</param> /// <param name="p">const Nature *</param>
/// <returns>Statistic</returns> /// <returns>Statistic</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetIncreasedStat")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetIncreasedStat")]
internal static extern Statistic GetIncreasedStat(IntPtr p); internal static extern Statistic GetIncreasedStat(IntPtr p);
/// <param name="p">const Nature *</param> /// <param name="p">const Nature *</param>
/// <returns>Statistic</returns> /// <returns>Statistic</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetDecreasedStat")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetDecreasedStat")]
internal static extern Statistic GetDecreasedStat(IntPtr p); internal static extern Statistic GetDecreasedStat(IntPtr p);
/// <param name="nature">const Nature *</param> /// <param name="nature">const Nature *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>float</returns> /// <returns>float</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetStatModifier")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Nature_GetStatModifier")]
internal static extern float GetStatModifier(IntPtr nature, Statistic stat); internal static extern float GetStatModifier(IntPtr nature, Statistic stat);
} }

View File

@ -8,52 +8,52 @@ namespace Pkmnlib.Generated
{ {
/// <param name="initialCapacity">long unsigned int</param> /// <param name="initialCapacity">long unsigned int</param>
/// <returns>NatureLibrary *</returns> /// <returns>NatureLibrary *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Construct")]
internal static extern IntPtr Construct(ulong initialCapacity); internal static extern IntPtr Construct(ulong initialCapacity);
/// <param name="p">const NatureLibrary *</param> /// <param name="p">const NatureLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">NatureLibrary *</param> /// <param name="p">NatureLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="nature">const Nature *</param> /// <param name="nature">const Nature *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_LoadNature")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_LoadNature")]
internal static extern byte LoadNature(IntPtr p, IntPtr name, IntPtr nature); internal static extern byte LoadNature(IntPtr p, IntPtr name, IntPtr nature);
/// <param name="p">NatureLibrary *</param> /// <param name="p">NatureLibrary *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <param name="out">const Nature * &</param> /// <param name="out">const Nature * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByName")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByName")]
internal static extern byte GetNatureByName(IntPtr p, IntPtr name, ref IntPtr @out); internal static extern byte GetNatureByName(IntPtr p, IntPtr name, ref IntPtr @out);
/// <param name="p">NatureLibrary *</param> /// <param name="p">NatureLibrary *</param>
/// <param name="rand">Random *</param> /// <param name="rand">Random *</param>
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetRandomNatureName")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetRandomNatureName")]
internal static extern byte GetRandomNatureName(IntPtr p, IntPtr rand, ref IntPtr @out); internal static extern byte GetRandomNatureName(IntPtr p, IntPtr rand, ref IntPtr @out);
/// <param name="p">NatureLibrary *</param> /// <param name="p">NatureLibrary *</param>
/// <param name="nature">const Nature *</param> /// <param name="nature">const Nature *</param>
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureName")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureName")]
internal static extern byte GetNatureName(IntPtr p, IntPtr nature, ref IntPtr @out); internal static extern byte GetNatureName(IntPtr p, IntPtr nature, ref IntPtr @out);
/// <param name="p">const NatureLibrary *</param> /// <param name="p">const NatureLibrary *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureCount")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureCount")]
internal static extern ulong GetNatureCount(IntPtr p); internal static extern ulong GetNatureCount(IntPtr p);
/// <param name="p">NatureLibrary *</param> /// <param name="p">NatureLibrary *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="out">const char * &</param> /// <param name="out">const char * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByIndex")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_NatureLibrary_GetNatureByIndex")]
internal static extern byte GetNatureByIndex(IntPtr p, ulong index, ref IntPtr @out); internal static extern byte GetNatureByIndex(IntPtr p, ulong index, ref IntPtr @out);
} }

View File

@ -12,7 +12,7 @@ namespace Pkmnlib.Generated
/// <param name="hit">unsigned char</param> /// <param name="hit">unsigned char</param>
/// <param name="critStage">unsigned char *</param> /// <param name="critStage">unsigned char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PkmnScript_ModifyCriticalStage")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PkmnScript_ModifyCriticalStage")]
internal static extern byte ModifyCriticalStage(IntPtr script, IntPtr attack, IntPtr target, byte hit, IntPtr critStage); internal static extern byte ModifyCriticalStage(IntPtr script, IntPtr attack, IntPtr target, byte hit, IntPtr critStage);
} }

View File

@ -34,88 +34,88 @@ namespace Pkmnlib.Generated
/// <param name="spEv">unsigned char</param> /// <param name="spEv">unsigned char</param>
/// <param name="nature">const Nature *</param> /// <param name="nature">const Nature *</param>
/// <returns>Pokemon *</returns> /// <returns>Pokemon *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Construct")]
internal static extern IntPtr Construct(IntPtr library, IntPtr species, IntPtr forme, byte level, uint experience, uint uid, Gender gender, byte coloring, IntPtr heldItem, IntPtr nickname, byte hiddenAbility, byte abilityIndex, IntPtr moves, ulong moveCount, byte hpIv, byte attIv, byte defIv, byte sAtIv, byte sDeIv, byte spIv, byte hpEv, byte attEv, byte defEv, byte sAtEv, byte sDeEv, byte spEv, IntPtr nature); internal static extern IntPtr Construct(IntPtr library, IntPtr species, IntPtr forme, byte level, uint experience, uint uid, Gender gender, byte coloring, IntPtr heldItem, IntPtr nickname, byte hiddenAbility, byte abilityIndex, IntPtr moves, ulong moveCount, byte hpIv, byte attIv, byte defIv, byte sAtIv, byte sDeIv, byte spIv, byte hpEv, byte attEv, byte defEv, byte sAtEv, byte sDeEv, byte spEv, IntPtr nature);
/// <param name="p">const Pokemon *</param> /// <param name="p">const Pokemon *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const Pokemon *</param> /// <param name="p">const Pokemon *</param>
/// <returns>bool</returns> /// <returns>bool</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_IsShiny")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_IsShiny")]
internal static extern byte IsShiny(IntPtr p); internal static extern byte IsShiny(IntPtr p);
/// <param name="p">const Pokemon *</param> /// <param name="p">const Pokemon *</param>
/// <returns>const Nature *</returns> /// <returns>const Nature *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetNature")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetNature")]
internal static extern IntPtr GetNature(IntPtr p); internal static extern IntPtr GetNature(IntPtr p);
/// <param name="p">const Pokemon *</param> /// <param name="p">const Pokemon *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetIndividualValue")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetIndividualValue")]
internal static extern byte GetIndividualValue(IntPtr p, Statistic stat); internal static extern byte GetIndividualValue(IntPtr p, Statistic stat);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <param name="value">unsigned char</param> /// <param name="value">unsigned char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetIndividualValue")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetIndividualValue")]
internal static extern void SetIndividualValue(IntPtr p, Statistic stat, byte value); internal static extern void SetIndividualValue(IntPtr p, Statistic stat, byte value);
/// <param name="p">const Pokemon *</param> /// <param name="p">const Pokemon *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetEffortValue")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetEffortValue")]
internal static extern byte GetEffortValue(IntPtr p, Statistic stat); internal static extern byte GetEffortValue(IntPtr p, Statistic stat);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <param name="stat">Statistic</param> /// <param name="stat">Statistic</param>
/// <param name="value">unsigned char</param> /// <param name="value">unsigned char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetEffortValue")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetEffortValue")]
internal static extern void SetEffortValue(IntPtr p, Statistic stat, byte value); internal static extern void SetEffortValue(IntPtr p, Statistic stat, byte value);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <param name="name">const char *</param> /// <param name="name">const char *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetStatus")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetStatus")]
internal static extern byte SetStatus(IntPtr p, IntPtr name); internal static extern byte SetStatus(IntPtr p, IntPtr name);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_ClearStatus")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_ClearStatus")]
internal static extern byte ClearStatus(IntPtr p); internal static extern byte ClearStatus(IntPtr p);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetStatusName")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetStatusName")]
internal static extern IntPtr GetStatusName(IntPtr p); internal static extern IntPtr GetStatusName(IntPtr p);
/// <param name="p">const Pokemon *</param> /// <param name="p">const Pokemon *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetFriendship")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_GetFriendship")]
internal static extern byte GetFriendship(IntPtr p); internal static extern byte GetFriendship(IntPtr p);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <param name="value">unsigned char</param> /// <param name="value">unsigned char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetFriendship")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_SetFriendship")]
internal static extern void SetFriendship(IntPtr p, byte value); internal static extern void SetFriendship(IntPtr p, byte value);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <param name="amount">signed char</param> /// <param name="amount">signed char</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_ChangeFriendship")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_ChangeFriendship")]
internal static extern void ChangeFriendship(IntPtr p, sbyte amount); internal static extern void ChangeFriendship(IntPtr p, sbyte amount);
/// <param name="p">Pokemon *</param> /// <param name="p">Pokemon *</param>
/// <param name="species">const PokemonSpecies *</param> /// <param name="species">const PokemonSpecies *</param>
/// <param name="forme">const PokemonForme *</param> /// <param name="forme">const PokemonForme *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Evolve")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_Pokemon_Evolve")]
internal static extern byte Evolve(IntPtr p, IntPtr species, IntPtr forme); internal static extern byte Evolve(IntPtr p, IntPtr species, IntPtr forme);
} }

View File

@ -26,7 +26,7 @@ namespace Pkmnlib.Generated
/// <param name="flags">const char * *</param> /// <param name="flags">const char * *</param>
/// <param name="flagsCount">long unsigned int</param> /// <param name="flagsCount">long unsigned int</param>
/// <returns>PokemonForme *</returns> /// <returns>PokemonForme *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonForme_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonForme_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, IntPtr flags, ulong flagsCount); 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, IntPtr flags, ulong flagsCount);
} }

View File

@ -15,17 +15,17 @@ namespace Pkmnlib.Generated
/// <param name="typeLibrary">TypeLibrary *</param> /// <param name="typeLibrary">TypeLibrary *</param>
/// <param name="natures">NatureLibrary *</param> /// <param name="natures">NatureLibrary *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonLibrary_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonLibrary_Construct")]
internal static extern byte Construct(ref IntPtr @out, IntPtr settings, IntPtr species, IntPtr moves, IntPtr items, IntPtr growthRates, IntPtr typeLibrary, IntPtr natures); internal static extern byte Construct(ref IntPtr @out, IntPtr settings, IntPtr species, IntPtr moves, IntPtr items, IntPtr growthRates, IntPtr typeLibrary, IntPtr natures);
/// <param name="p">const PokemonLibrary *</param> /// <param name="p">const PokemonLibrary *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonLibrary_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonLibrary_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const PokemonLibrary *</param> /// <param name="p">const PokemonLibrary *</param>
/// <returns>const NatureLibrary *</returns> /// <returns>const NatureLibrary *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonLibrary_GetNatureLibrary")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonLibrary_GetNatureLibrary")]
internal static extern IntPtr GetNatureLibrary(IntPtr p); internal static extern IntPtr GetNatureLibrary(IntPtr p);
} }

View File

@ -19,52 +19,52 @@ namespace Pkmnlib.Generated
/// <param name="flags">const char * *</param> /// <param name="flags">const char * *</param>
/// <param name="flagsCount">long unsigned int</param> /// <param name="flagsCount">long unsigned int</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_Construct")]
internal static extern byte Construct(ref IntPtr @out, ushort id, IntPtr name, IntPtr defaultForme, float genderRatio, IntPtr growthRate, byte captureRate, byte baseHappiness, IntPtr eggGroupsRaw, ulong eggGroupsLength, IntPtr flags, ulong flagsCount); internal static extern byte Construct(ref IntPtr @out, ushort id, IntPtr name, IntPtr defaultForme, float genderRatio, IntPtr growthRate, byte captureRate, byte baseHappiness, IntPtr eggGroupsRaw, ulong eggGroupsLength, IntPtr flags, ulong flagsCount);
/// <param name="p">const PokemonSpecies *</param> /// <param name="p">const PokemonSpecies *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">const PokemonSpecies *</param> /// <param name="p">const PokemonSpecies *</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetBaseHappiness")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetBaseHappiness")]
internal static extern byte GetBaseHappiness(IntPtr p); internal static extern byte GetBaseHappiness(IntPtr p);
/// <param name="p">PokemonSpecies *</param> /// <param name="p">PokemonSpecies *</param>
/// <param name="evo">EvolutionData *</param> /// <param name="evo">EvolutionData *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_AddEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_AddEvolution")]
internal static extern void AddEvolution(IntPtr p, IntPtr evo); internal static extern void AddEvolution(IntPtr p, IntPtr evo);
/// <param name="p">const PokemonSpecies *</param> /// <param name="p">const PokemonSpecies *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolutionCount")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolutionCount")]
internal static extern ulong GetEvolutionCount(IntPtr p); internal static extern ulong GetEvolutionCount(IntPtr p);
/// <param name="p">const PokemonSpecies *</param> /// <param name="p">const PokemonSpecies *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <param name="out">const EvolutionData * &</param> /// <param name="out">const EvolutionData * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolution")]
internal static extern byte GetEvolution(IntPtr p, ulong index, ref IntPtr @out); internal static extern byte GetEvolution(IntPtr p, ulong index, ref IntPtr @out);
/// <param name="p">const PokemonSpecies *</param> /// <param name="p">const PokemonSpecies *</param>
/// <param name="out">const const EvolutionData * * &</param> /// <param name="out">const const EvolutionData * * &</param>
/// <returns>unsigned char</returns> /// <returns>unsigned char</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolutions")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEvolutions")]
internal static extern byte GetEvolutions(IntPtr p, ref IntPtr @out); internal static extern byte GetEvolutions(IntPtr p, ref IntPtr @out);
/// <param name="p">const PokemonSpecies *</param> /// <param name="p">const PokemonSpecies *</param>
/// <returns>long unsigned int</returns> /// <returns>long unsigned int</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEggGroupCount")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEggGroupCount")]
internal static extern ulong GetEggGroupCount(IntPtr p); internal static extern ulong GetEggGroupCount(IntPtr p);
/// <param name="p">const PokemonSpecies *</param> /// <param name="p">const PokemonSpecies *</param>
/// <param name="index">long unsigned int</param> /// <param name="index">long unsigned int</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEggGroup")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_PokemonSpecies_GetEggGroup")]
internal static extern IntPtr GetEggGroup(IntPtr p, ulong index); internal static extern IntPtr GetEggGroup(IntPtr p, ulong index);
} }

View File

@ -9,7 +9,7 @@ namespace Pkmnlib.Generated
/// <param name="p">const SpeciesLibrary *</param> /// <param name="p">const SpeciesLibrary *</param>
/// <param name="species">const PokemonSpecies *</param> /// <param name="species">const PokemonSpecies *</param>
/// <returns>const PokemonSpecies *</returns> /// <returns>const PokemonSpecies *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_SpeciesLibrary_FindPreEvolution")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_SpeciesLibrary_FindPreEvolution")]
internal static extern IntPtr FindPreEvolution(IntPtr p, IntPtr species); internal static extern IntPtr FindPreEvolution(IntPtr p, IntPtr species);
} }

View File

@ -7,12 +7,12 @@ namespace Pkmnlib.Generated
internal static class StatCalculator internal static class StatCalculator
{ {
/// <returns>StatCalculator *</returns> /// <returns>StatCalculator *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_StatCalculator_Construct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_StatCalculator_Construct")]
internal static extern IntPtr Construct(); internal static extern IntPtr Construct();
/// <param name="p">StatCalculator *</param> /// <param name="p">StatCalculator *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_StatCalculator_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_StatCalculator_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
} }

View File

@ -8,12 +8,12 @@ namespace Pkmnlib.Generated
{ {
/// <param name="p">WeatherChangeEvent *</param> /// <param name="p">WeatherChangeEvent *</param>
/// <returns>void</returns> /// <returns>void</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_WeatherChangeEvent_Destruct")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_WeatherChangeEvent_Destruct")]
internal static extern void Destruct(IntPtr p); internal static extern void Destruct(IntPtr p);
/// <param name="p">WeatherChangeEvent *</param> /// <param name="p">WeatherChangeEvent *</param>
/// <returns>const char *</returns> /// <returns>const char *</returns>
[DllImport("pkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_WeatherChangeEvent_GetWeatherName")] [DllImport("libpkmnLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "PkmnLib_WeatherChangeEvent_GetWeatherName")]
internal static extern IntPtr GetWeatherName(IntPtr p); internal static extern IntPtr GetWeatherName(IntPtr p);
} }

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

View File

@ -1 +1 @@
{"enums":[{"byteSize":4,"filename":"Arbutils","name":"float_denorm_style","values":{"-1":"denorm_indeterminate","0":"denorm_absent","1":"denorm_present"}},{"byteSize":4,"filename":"Arbutils","name":"float_round_style","values":{"-1":"round_indeterminate","0":"round_toward_zero","1":"round_to_nearest","2":"round_toward_infinity","3":"round_toward_neg_infinity"}}],"functions":[{"filename":"Arbutils","name":"Arbutils_C_GetLastException","parameters":[],"returns":"const char *"},{"filename":"Arbutils","name":"Arbutils_C_SetSignalCallback","parameters":[{"name":"callback","type":"Function *"}],"returns":"void"},{"filename":"Arbutils","name":"Arbutils_C_RaiseSignal","parameters":[],"returns":"void"},{"filename":"Arbutils","name":"Arbutils_Random_Construct","parameters":[],"returns":"Random *"},{"filename":"Arbutils","name":"Arbutils_Random_ConstructWithSeed","parameters":[{"name":"seed","type":"long unsigned int"}],"returns":"Random *"},{"filename":"Arbutils","name":"Arbutils_Random_Destruct","parameters":[{"name":"p","type":"Random *"}],"returns":"void"},{"filename":"Arbutils","name":"Arbutils_Random_GetFloat","parameters":[{"name":"p","type":"Random *"}],"returns":"float"},{"filename":"Arbutils","name":"Arbutils_Random_GetDouble","parameters":[{"name":"p","type":"Random *"}],"returns":"double"},{"filename":"Arbutils","name":"Arbutils_Random_Get","parameters":[{"name":"p","type":"Random *"}],"returns":"int"},{"filename":"Arbutils","name":"Arbutils_Random_GetWithMax","parameters":[{"name":"p","type":"Random *"},{"name":"max","type":"int"},{"name":"out","type":"int &"}],"returns":"unsigned char"},{"filename":"Arbutils","name":"Arbutils_Random_GetInLimits","parameters":[{"name":"p","type":"Random *"},{"name":"min","type":"int"},{"name":"max","type":"int"},{"name":"out","type":"int &"}],"returns":"unsigned char"},{"filename":"Arbutils","name":"Arbutils_Random_GetUnsigned","parameters":[{"name":"p","type":"Random *"}],"returns":"unsigned int"},{"filename":"Arbutils","name":"Arbutils_Random_GetUnsignedWithMax","parameters":[{"name":"p","type":"Random *"},{"name":"max","type":"unsigned int"},{"name":"out","type":"unsigned int &"}],"returns":"unsigned char"},{"filename":"Arbutils","name":"Arbutils_Random_GetUnsignedInLimits","parameters":[{"name":"p","type":"Random *"},{"name":"min","type":"unsigned int"},{"name":"max","type":"unsigned int"},{"name":"out","type":"unsigned int &"}],"returns":"unsigned char"},{"filename":"Arbutils","name":"Arbutils_Random_GetSeed","parameters":[{"name":"p","type":"Random *"}],"returns":"long unsigned int"}]} {"enums":[{"byteSize":4,"filename":"libArbutils","name":"float_denorm_style","values":{"-1":"denorm_indeterminate","0":"denorm_absent","1":"denorm_present"}},{"byteSize":4,"filename":"libArbutils","name":"float_round_style","values":{"-1":"round_indeterminate","0":"round_toward_zero","1":"round_to_nearest","2":"round_toward_infinity","3":"round_toward_neg_infinity"}}],"functions":[{"filename":"libArbutils","name":"Arbutils_C_GetLastException","parameters":[],"returns":"const char *"},{"filename":"libArbutils","name":"Arbutils_C_SetSignalCallback","parameters":[{"name":"callback","type":"Function *"}],"returns":"void"},{"filename":"libArbutils","name":"Arbutils_Random_Construct","parameters":[],"returns":"Random *"},{"filename":"libArbutils","name":"Arbutils_Random_ConstructWithSeed","parameters":[{"name":"seed","type":"long unsigned int"}],"returns":"Random *"},{"filename":"libArbutils","name":"Arbutils_Random_Destruct","parameters":[{"name":"p","type":"Random *"}],"returns":"void"},{"filename":"libArbutils","name":"Arbutils_Random_GetFloat","parameters":[{"name":"p","type":"Random *"}],"returns":"float"},{"filename":"libArbutils","name":"Arbutils_Random_GetDouble","parameters":[{"name":"p","type":"Random *"}],"returns":"double"},{"filename":"libArbutils","name":"Arbutils_Random_Get","parameters":[{"name":"p","type":"Random *"}],"returns":"int"},{"filename":"libArbutils","name":"Arbutils_Random_GetWithMax","parameters":[{"name":"p","type":"Random *"},{"name":"max","type":"int"},{"name":"out","type":"int &"}],"returns":"unsigned char"},{"filename":"libArbutils","name":"Arbutils_Random_GetInLimits","parameters":[{"name":"p","type":"Random *"},{"name":"min","type":"int"},{"name":"max","type":"int"},{"name":"out","type":"int &"}],"returns":"unsigned char"},{"filename":"libArbutils","name":"Arbutils_Random_GetUnsigned","parameters":[{"name":"p","type":"Random *"}],"returns":"unsigned int"},{"filename":"libArbutils","name":"Arbutils_Random_GetUnsignedWithMax","parameters":[{"name":"p","type":"Random *"},{"name":"max","type":"unsigned int"},{"name":"out","type":"unsigned int &"}],"returns":"unsigned char"},{"filename":"libArbutils","name":"Arbutils_Random_GetUnsignedInLimits","parameters":[{"name":"p","type":"Random *"},{"name":"min","type":"unsigned int"},{"name":"max","type":"unsigned int"},{"name":"out","type":"unsigned int &"}],"returns":"unsigned char"},{"filename":"libArbutils","name":"Arbutils_Random_GetSeed","parameters":[{"name":"p","type":"Random *"}],"returns":"long unsigned int"}]}

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ def resolve_enum_size(size):
raise Exception("Unknown size {}".format(size)) raise Exception("Unknown size {}".format(size))
def write_enum(enum, enumNames): def write_enum(enum, enumNames):
namespace = str.capitalize(enum["filename"]) namespace = str.capitalize(enum["filename"][3:])
if (enum["name"].startswith("bfd_")): if (enum["name"].startswith("bfd_")):
return return
if (enum["name"].startswith("float_")): if (enum["name"].startswith("float_")):
@ -24,10 +24,10 @@ def write_enum(enum, enumNames):
f.write("namespace {}\n{{\n".format(namespace)) f.write("namespace {}\n{{\n".format(namespace))
f.write(" [SuppressMessage(\"ReSharper\", \"InconsistentNaming\")]\n") f.write(" [SuppressMessage(\"ReSharper\", \"InconsistentNaming\")]\n")
f.write(" internal enum {} : {}\n {{\n".format(enum["name"], resolve_enum_size(enum["byteSize"]) )) f.write(" internal enum {} : {}\n {{\n".format(enum["name"], resolve_enum_size(enum["byteSize"]) ))
vals = enum["values"].items(); vals = enum["values"].items()
dict = {} dict = {}
for k, v in vals: for k, v in vals:
dict[int(k)] = v; dict[int(k)] = v
for k, v in sorted(dict.items(), key=lambda item: item[0]): for k, v in sorted(dict.items(), key=lambda item: item[0]):
f.write(" {} = {},\n".format(v, k)) f.write(" {} = {},\n".format(v, k))
f.write(" }\n") f.write(" }\n")
@ -54,12 +54,12 @@ def parse_function(function, classDict):
splitName = function["name"].split("_") splitName = function["name"].split("_")
classKey = "{}_{}".format(function["filename"], splitName[1]) classKey = "{}_{}".format(function["filename"], splitName[1])
if (not classKey in classDict): if (not classKey in classDict):
classDict[classKey] = classDef(function["filename"].capitalize(), splitName[1], function["filename"]) classDict[classKey] = classDef(function["filename"][3:].capitalize(), splitName[1], function["filename"])
classDict[classKey].register_function(funcDef(function["name"], function["returns"], function["parameters"])) classDict[classKey].register_function(funcDef(function["name"], function["returns"], function["parameters"]))
def parse_type(type, enumSet): def parse_type(type, enumSet):
type = type.strip(); type = type.strip()
if (type == "void"): if (type == "void"):
return "void" return "void"
if (type == "unsigned char"): if (type == "unsigned char"):
@ -97,7 +97,7 @@ def clean_name(name):
return name return name
def write_class(c, enumSet): def write_class(c, enumSet):
filename = "Generated/{}/{}.cs".format(c.file.capitalize(), c.name) filename = "Generated/{}/{}.cs".format(c.file[3:].capitalize(), c.name)
os.makedirs(os.path.dirname(filename), exist_ok=True) os.makedirs(os.path.dirname(filename), exist_ok=True)
with open(filename, "w") as f: with open(filename, "w") as f:
f.write("// AUTOMATICALLY GENERATED, DO NOT EDIT\n") f.write("// AUTOMATICALLY GENERATED, DO NOT EDIT\n")

File diff suppressed because one or more lines are too long

View File

@ -51,7 +51,7 @@ namespace PkmnLibSharpTests.Library
{ {
var p = new EffectParameter(10); var p = new EffectParameter(10);
var ex = Assert.Throws<NativeException>(() => { p.AsString(); }); var ex = Assert.Throws<NativeException>(() => { p.AsString(); });
Assert.AreEqual("[CreatureLibLibrary] - '[CreatureLib_EffectParameter_AsString] [EffectParameter.hpp:52] Cast effect parameter to string, but was Int'", ex.Message); Assert.AreEqual("[CreatureLibLibrary] - '[CreatureLib_EffectParameter_AsString] [EffectParameter.hpp:50] Cast effect parameter to string, but was Int'", ex.Message);
p.Dispose(); p.Dispose();
} }
} }