26 #ifndef SAGA2_ONCALL_H 27 #define SAGA2_ONCALL_H 35 byte *(*_loader)(hResID, bool);
37 HandleArray(uint16 size, byte*(*loadfunction)(hResID,
bool), uint32 newID) {
38 for (
int i = 0; i < size; ++i)
40 _loader = loadfunction;
45 for (
unsigned int i = 0; i < _handles.
size(); ++i) {
48 _handles[i] =
nullptr;
53 byte *operator[](uint32 ind) {
57 return _handles[ind] = _loader(_tileID +
MKTAG(0, 0, 0, ind),
false);
void push_back(const T &element)
Definition: array.h:180
size_type size() const
Definition: array.h:315
#define MKTAG(a0, a1, a2, a3)
Definition: endian.h:188