io::printn("TODO: don't do this, make it similar to the '@get' interface, and make the sizes not be constants because that's a bit schewpid in the year of our lord twenty twenty four");
ImageList* list = (ImageList*)calloc(ImageList.sizeof);
this.assets.set( (usz)category, list );
}
foreach (path: paths) {
foreach (path: image_paths) {
// TODO: don't do this, make it similar to the '@get'
Image img;
// interface, and make the sizes not be constants because that's a
img = raylib::load_image(path);
// bit schewpid in the year of our lord twenty twenty four
any val = this.assets.get( (usz)category )!!;
switch (val.type) {
case ImageList:
((ImageList*)val).push(img);
break;
default:
io::printfn("WARNING: Type mismatch error pushing images to Assets.");
break;
}
}
}
return null;
}
}
fn void Assets.free(Assets this) {
fn void Assets.free(Assets this) {
io::printfn("TODO: IMPLEMENT FREEING ASSETS");
io::printfn("TODO: IMPLEMENT FREEING ASSETS");
this.assets.free();
//for (int i = 0; i < TEXTURE_COUNT; i ++) raylib::unload_image(textures[i]);
//for (int i = 0; i < TEXTURE_COUNT; i ++) raylib::unload_image(textures[i]);