Skip to main content

storage - Storage

Store and load data

Any data

file.pool 20000;
file.i 0;

# save data
storage.save.object(storage.t.data,file.pool,file.i, 0, data, 0);

# load data
data = storage.load.object(storage.t.data,file.pool,file.i, 0, 0,0);

Images

Load texture

tex0:=storage.image.load.texture(pool,id,i);

Event new image

l0:=storage.get.event(0);
if (l0==storage.e.new.file) {
load.texture(tex0, o1,o2,o3);
};