22 #ifndef QUEEN_BANKMAN_H 23 #define QUEEN_BANKMAN_H 25 #include "common/util.h" 26 #include "queen/structs.h" 39 void load(
const char *bankname, uint32 bankslot);
42 void unpack(uint32 srcframe, uint32 dstframe, uint32 bankslot);
45 void overpack(uint32 srcframe, uint32 dstframe, uint32 bankslot);
48 void close(uint32 bankslot);
61 MAX_FRAMES_NUMBER = 256,
68 uint32 indexes[MAX_BANK_SIZE];
77 PackedBank _banks[MAX_BANKS_NUMBER];
void load(const char *bankname, uint32 bankslot)
load a bank into the specified slot
void close(uint32 bankslot)
close a bank
void eraseFrames(bool joe)
erase all unpacked frames
void unpack(uint32 srcframe, uint32 dstframe, uint32 bankslot)
unpack a frame from a loaded bank
void overpack(uint32 srcframe, uint32 dstframe, uint32 bankslot)
unpack a frame over an existing one from a loaded bank
Definition: structs.h:575
Definition: resource.h:41
void eraseFrame(uint32 index)
erase a frame
BobFrame * fetchFrame(uint32 index)
get a reference to unpacked frame