-
-
Notifications
You must be signed in to change notification settings - Fork 0
API Wrappers
3cxc edited this page Sep 13, 2026
·
1 revision
Strongly-typed helpers passed across the ABI.
public readonly struct EntityId : IEquatable<EntityId>
{
public readonly ulong Low;
public readonly ulong High;
public EntityId(ulong low, ulong high);
public bool IsEmpty { get; }
public static bool operator ==(EntityId a, EntityId b);
public static bool operator !=(EntityId a, EntityId b);
}A 16-byte identity representing the low/high 64 bits of the host's Guid-backed ObjectId. Plugins obtain these from Entity.GetEntityIdAt(index) or Entity.GetAllEntityIds() and pass them back to any Entity method.
[StructLayout(LayoutKind.Sequential)]
public struct ObjectIdNative
{
public ulong Low;
public ulong High;
}Raw ABI form of EntityId. Embedded in event payloads such as EntityDamagedEvent.
public enum CardAttackType
{
Physical = 0, Magic = 1, Fire = 2, Ice = 3, Thunder = 4, True = 5,
}
public enum CardCategory
{
Skill = 0, Environment = 1, Special = 2,
}
public enum EffectCategory
{
DamageOverTime = 0, Fire = 1, Stun = 2, StatMod = 3, Confuse = 4, Instant = 5,
}Numeric values must match the host's enumerations exactly (AttackType, CardType, EffectCategory).