Scene change support

This commit is contained in:
2023-06-30 07:33:22 -07:00
parent ee7963fb1a
commit af3b0751f7
24 changed files with 163 additions and 20 deletions

View File

@ -14,7 +14,7 @@ namespace Dawn {
AssetManager *assetManager;
std::string name;
uint8_t state = 0x00;
bool loaded = false;
bool_t loaded = false;
Event<> eventLoaded;
StateEvent<> event2Loaded;

View File

@ -95,11 +95,11 @@ namespace Dawn {
* @return The count of bytes read.
*/
template<class T>
size_t loadBufferedCallback(T *instance, bool (T::*callback)(uint8_t n)) {
size_t loadBufferedCallback(T *instance, bool_t (T::*callback)(uint8_t n)) {
uint8_t buffer[1024];
size_t read, length;
int32_t i;
bool result;
bool_t result;
assertNotNull(instance);
assertNotNull(callback);