new TemplateManager()
Manages the template system. This class handles all external requests for template modification, creation, and analysis. It serves as the central coordinator between template instances and the user interface.
- Since:
- 0.55.8
- Source:
Examples
// JSON structure for a template made in schema version 2.0.0.
// Note: The pixel "colors" Object contains more than 2 keys.
// Note: The template tiles are stored as base64 PNG images.
{
"whoami": "BlueMarble",
"scriptVersion": "1.13.0",
"schemaVersion": "2.0.0",
"templates": {
"0 $Z": {
"name": "My Template",
"enabled": true,
"pixels": {
"total": 40399,
"colors": {
"-2": 40000,
"0": 399
}
}
"tiles": {
"1231,0047,183,593": "iVBORw0KGgoAAAANSUhEUgAA",
"1231,0048,183,000": "AAAFCAYAAACNbyblAAAAHElEQVQI12P4"
}
},
"1 $Z": {
"name": "My Template",
"URL": "https://github.com/SwingTheVine/Wplace-BlueMarble/blob/main/dist/assets/Favicon.png",
"URLType": "template",
"enabled": false,
"pixels": {
"total": 40399,
"colors": {
"-2": 40000,
"0": 399
}
}
"tiles": {
"375,1846,276,188": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA",
"376,1846,000,188": "data:image/png;AAAFCAYAAACNbyblAAAAHElEQVQI12P4"
}
}
}
}
// JSON structure for a template made in schema version 1.0.0.
// Note: The template tiles are stored as base64 PNG images.
{
"whoami": "BlueMarble",
"scriptVersion": "1.13.0",
"schemaVersion": "1.0.0",
"templates": {
"0 $Z": {
"name": "My Template",
"enabled": true,
"coords": "2000, 230, 45, 201"
"palette": {
"0,0,0": {
"count": 123,
"enabled": true
},
"255,255,255": {
"count": 1315,
"enabled": false
}
}
"tiles": {
"1231,0047,183,593": "iVBORw0KGgoAAAANSUhEUgAA",
"1231,0048,183,000": "AAAFCAYAAACNbyblAAAAHElEQVQI12P4"
}
}
}
}