| 1 | #pragma once |
| 2 | |
| 3 | #include <basis/seadTypes.h> |
| 4 | |
| 5 | #include "System/ByamlSave.h" |
| 6 | |
| 7 | struct SearchAmiiboData { |
| 8 | SearchAmiiboData(); |
| 9 | void init(); |
| 10 | bool isInvalidId() const; |
| 11 | |
| 12 | s32 id; |
| 13 | s32 numberingId; |
| 14 | u64 searchStartTime; |
| 15 | }; |
| 16 | |
| 17 | class SearchAmiiboDataTable : public ByamlSave { |
| 18 | public: |
| 19 | SearchAmiiboDataTable(); |
| 20 | |
| 21 | void init(); |
| 22 | void write(al::ByamlWriter* writer) override; |
| 23 | void read(const al::ByamlIter& iter) override; |
| 24 | s32 getDataNumMax() const; |
| 25 | bool isInvalidId(s32 index) const; |
| 26 | const SearchAmiiboData& getData(s32 index) const; |
| 27 | s32 getId(s32 index) const; |
| 28 | s32 getNumberingId(s32 index) const; |
| 29 | void setId(s32 id, s32 numberingId, s32 index); |
| 30 | u64 getSearchStartTime(s32 index) const; |
| 31 | void setSearchStartTime(u64 searchStartTime, s32 index); |
| 32 | void copy(s32 index, s32 other); |
| 33 | void initByIndex(s32 index); |
| 34 | |
| 35 | private: |
| 36 | SearchAmiiboData* mEntries; |
| 37 | }; |
| 38 | |