using System; using System.Runtime.InteropServices; namespace Creaturelibbattling.Generated { internal static class Creature { /// Creature *& /// const BattleLibrary * /// const CreatureSpecies * /// const SpeciesVariant * /// unsigned char /// unsigned int /// unsigned int /// Gender /// unsigned char /// const Item * /// const char * /// bool /// unsigned char /// LearnedAttack * * /// long unsigned int /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Construct")] internal static extern byte Construct(ref IntPtr @out, IntPtr library, IntPtr species, IntPtr variant, byte level, uint experience, uint uid, Gender gender, byte coloring, IntPtr heldItem, string nickname, bool secretTalent, byte talent, IntPtr attacks, ulong attacksNum); /// const Creature * /// void [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Destruct")] internal static extern void Destruct(IntPtr p); /// const Creature * /// const CreatureSpecies * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetSpecies")] internal static extern IntPtr GetSpecies(IntPtr p); /// const Creature * /// const SpeciesVariant * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetVariant")] internal static extern IntPtr GetVariant(IntPtr p); /// const Creature * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetLevel")] internal static extern byte GetLevel(IntPtr p); /// const Creature * /// unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetExperience")] internal static extern uint GetExperience(IntPtr p); /// const Creature * /// Gender [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetGender")] internal static extern Gender GetGender(IntPtr p); /// const Creature * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetColoring")] internal static extern byte GetColoring(IntPtr p); /// const Creature * /// const char * /// bool [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItem")] internal static extern bool HasHeldItem(IntPtr p, string name); /// const Creature * /// unsigned int /// bool [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasHeldItemWithHash")] internal static extern bool HasHeldItemWithHash(IntPtr p, uint hash); /// const Creature * /// const Item * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetHeldItem")] internal static extern IntPtr GetHeldItem(IntPtr p); /// Creature * /// const char * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItem")] internal static extern byte SetHeldItem(IntPtr p, string name); /// Creature * /// unsigned int /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemWithHash")] internal static extern byte SetHeldItemWithHash(IntPtr p, uint hash); /// Creature * /// const Item * /// void [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetHeldItemFromItem")] internal static extern void SetHeldItemFromItem(IntPtr p, IntPtr item); /// const Creature * /// unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetCurrentHealth")] internal static extern uint GetCurrentHealth(IntPtr p); /// const Creature * /// Battle * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattle")] internal static extern IntPtr GetBattle(IntPtr p); /// const Creature * /// BattleSide * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBattleSide")] internal static extern IntPtr GetBattleSide(IntPtr p); /// const Creature * /// bool [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_IsOnBattleField")] internal static extern bool IsOnBattleField(IntPtr p); /// Creature * /// const char * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetNickname")] internal static extern string GetNickname(IntPtr p); /// Creature * /// long unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetTypesCount")] internal static extern ulong GetTypesCount(IntPtr p); /// Creature * /// const unsigned char * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetTypes")] internal static extern IntPtr GetTypes(IntPtr p); /// Creature * /// unsigned char /// bool [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasType")] internal static extern bool HasType(IntPtr p, byte type); /// const Creature * /// unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetMaxHealth")] internal static extern uint GetMaxHealth(IntPtr p); /// Creature * /// signed char /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeLevelBy")] internal static extern byte ChangeLevelBy(IntPtr p, sbyte level); /// Creature * /// unsigned int /// DamageSource /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Damage")] internal static extern byte Damage(IntPtr p, uint damage, DamageSource source); /// Creature * /// unsigned int /// bool /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_Heal")] internal static extern byte Heal(IntPtr p, uint health, bool canRevive); /// Creature * /// const char * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_OverrideActiveTalent")] internal static extern byte OverrideActiveTalent(IntPtr p, string talent); /// Creature * /// unsigned int /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddExperience")] internal static extern byte AddExperience(IntPtr p, uint experience); /// Creature * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ClearVolatileScripts")] internal static extern byte ClearVolatileScripts(IntPtr p); /// Creature * /// const char * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScriptByName")] internal static extern byte AddVolatileScriptByName(IntPtr p, string scriptName); /// Creature * /// Script * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_AddVolatileScript")] internal static extern byte AddVolatileScript(IntPtr p, IntPtr script); /// Creature * /// const char * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScriptByName")] internal static extern byte RemoveVolatileScriptByName(IntPtr p, string scriptName); /// Creature * /// Script * /// unsigned char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_RemoveVolatileScript")] internal static extern byte RemoveVolatileScript(IntPtr p, IntPtr script); /// Creature * /// const char * /// bool [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_HasVolatileScript")] internal static extern bool HasVolatileScript(IntPtr p, string scriptName); /// Creature * /// long unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacksCount")] internal static extern ulong GetAttacksCount(IntPtr p); /// Creature * /// const LearnedAttack * * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetAttacks")] internal static extern IntPtr GetAttacks(IntPtr p); /// const Creature * /// const CreatureSpecies * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplaySpecies")] internal static extern IntPtr GetDisplaySpecies(IntPtr p); /// const Creature * /// const SpeciesVariant * [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetDisplayVariant")] internal static extern IntPtr GetDisplayVariant(IntPtr p); /// Creature * /// const CreatureSpecies * /// void [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplaySpecies")] internal static extern void SetDisplaySpecies(IntPtr p, IntPtr species); /// Creature * /// const SpeciesVariant * /// void [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_SetDisplayVariant")] internal static extern void SetDisplayVariant(IntPtr p, IntPtr variant); /// Creature * /// Statistic /// signed char /// void [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_ChangeStatBoost")] internal static extern void ChangeStatBoost(IntPtr p, Statistic stat, sbyte diffAmount); /// Creature * /// Statistic /// unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetFlatStat")] internal static extern uint GetFlatStat(IntPtr p, Statistic stat); /// Creature * /// Statistic /// unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBoostedStat")] internal static extern uint GetBoostedStat(IntPtr p, Statistic stat); /// Creature * /// Statistic /// unsigned int [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetBaseStat")] internal static extern uint GetBaseStat(IntPtr p, Statistic stat); /// Creature * /// Statistic /// signed char [DllImport("CreatureLibBattling", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_Creature_GetStatBoost")] internal static extern sbyte GetStatBoost(IntPtr p, Statistic stat); } }