mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-30 13:16:58 -05:00
Cumulative changes from the team. Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com> Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com> Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
28 lines
785 B
C#
28 lines
785 B
C#
using System;
|
|
|
|
namespace pkNX.Structures;
|
|
|
|
public abstract class TrainerData(Memory<byte> raw)
|
|
{
|
|
public abstract int SIZE { get; }
|
|
protected Span<byte> Data => raw.Span;
|
|
|
|
public abstract int Class { get; set; }
|
|
public abstract BattleMode Mode { get; set; }
|
|
public abstract int NumPokemon { get; set; }
|
|
public abstract int Item1 { get; set; }
|
|
public abstract int Item2 { get; set; }
|
|
public abstract int Item3 { get; set; }
|
|
public abstract int Item4 { get; set; }
|
|
|
|
public abstract uint AI { get; set; }
|
|
public abstract bool Heal { get; set; }
|
|
public abstract int Money { get; set; }
|
|
public abstract int Gift { get; set; }
|
|
|
|
// derived
|
|
public bool HasAllyTrainer => (AI & 8) != 0;
|
|
|
|
public byte[] Write() => Data.ToArray();
|
|
}
|