Pixel Place Map Loader
Versione datata
Questo script non dovrebbe essere installato direttamente. È una libreria per altri script da includere con la chiave // @require https://update.greatest.deepsurf.us/scripts/443803/1042765/PPML.js
Variable: PPML || window.PPML
PPML.ws // WebSocket
PPML.emit(x,y,pixel) // undefined
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) {
// ...
}
});