namespace pkNX.Structures.FlatBuffers.SWSH;
attribute "fs_serializer";

table EncounterArchive (fs_serializer) {
    Field_00:uint;
    EncounterTables:[EncounterTable] (required);
}

table EncounterTable {
    ZoneID:ulong;
    SubTables:[EncounterSubTable] (required);
}

table EncounterSubTable {
    LevelMin:ubyte;
    LevelMax:ubyte;
    Slots:[EncounterSlot] (required);
}

table EncounterSlot {
    Probability:ubyte;
    Species:int;
    Form:ubyte;
}

root_type EncounterArchive;
