Updates to latest pkmnlib

This commit is contained in:
Deukhoofd 2021-05-24 11:41:55 +02:00
parent 02c812a84b
commit 1153ad6034
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
14 changed files with 87 additions and 14 deletions

View File

@ -12,10 +12,11 @@ namespace Creaturelib.Generated
/// <param name="numberHits">unsigned char</param>
/// <param name="user">Creature *</param>
/// <param name="attack">LearnedAttack *</param>
/// <param name="attackData">AttackData *</param>
/// <param name="script">BattleScript *</param>
/// <returns>unsigned char</returns>
[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 attackData, IntPtr script);
/// <param name="p">ExecutingAttack *</param>
/// <returns>void</returns>
@ -61,5 +62,10 @@ namespace Creaturelib.Generated
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetAttack")]
internal static extern IntPtr GetAttack(IntPtr p);
/// <param name="p">ExecutingAttack *</param>
/// <returns>const AttackData *</returns>
[DllImport("libCreatureLib", CallingConvention = CallingConvention.Cdecl, EntryPoint= "CreatureLib_ExecutingAttack_GetUseAttack")]
internal static extern IntPtr GetUseAttack(IntPtr p);
}
}

View File

@ -0,0 +1,20 @@
// AUTOMATICALLY GENERATED, DO NOT EDIT
using System.Diagnostics.CodeAnalysis;
namespace Pkmnlib
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
internal enum file_type : byte
{
not_found = 255,
none = 0,
regular = 1,
directory = 2,
symlink = 3,
block = 4,
character = 5,
fifo = 6,
socket = 7,
unknown = 8,
}
}

View File

@ -0,0 +1,13 @@
// AUTOMATICALLY GENERATED, DO NOT EDIT
using System.Diagnostics.CodeAnalysis;
namespace Pkmnlib
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
internal enum format : byte
{
native_format = 0,
generic_format = 1,
auto_format = 2,
}
}

View File

@ -0,0 +1,29 @@
// AUTOMATICALLY GENERATED, DO NOT EDIT
using System.Diagnostics.CodeAnalysis;
namespace Pkmnlib
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
internal enum perms : int
{
none = 0,
others_exec = 1,
others_write = 2,
others_read = 4,
others_all = 7,
group_exec = 8,
group_write = 16,
group_read = 32,
group_all = 56,
owner_exec = 64,
owner_write = 128,
owner_read = 256,
owner_all = 448,
all = 511,
sticky_bit = 512,
set_gid = 1024,
set_uid = 2048,
mask = 4095,
unknown = 65535,
}
}

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

Binary file not shown.

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

Binary file not shown.

BIN
PkmnLibSharp/Native/Windows/libpkmnlib_ai.dll (Stored with Git LFS) Executable file

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -36,6 +36,8 @@ def write_enum(enum, enumNames):
for k, v in vals:
dict[int(k)] = v
for k, v in sorted(dict.items(), key=lambda item: item[0]):
if (enum["byteSize"] == 1 and k < 0):
k = 256 + k
f.write(" {} = {},\n".format(v, k))
f.write(" }\n")
f.write("}\n")

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long