Pixel Place Map Loader
As of
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://updategf.qytechs.cn/scripts/443803/1042799/PPML.js
to make this lib working require CWSS and WorkerTimer
Variable: PPML || window.PPML
PPML.ws // WebSocket
PPML.safeEmit(x,y,pixel) // undefined
PPML.emit(x,y,pixel) // undefined / false / true
PPML.map
{
pixels, // Uint8[]
colors, // Uint32[]
width, height, // number
find(pixel) // index of pixels
get(x,y) // pixel
set(x,y,pixel) // undefined
}
PPML.setHook({
priority: 0,
init(map) {
// ...
}
});