1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Internal test mod update

This commit is contained in:
Exund 2020-09-10 00:05:54 +02:00
parent 4899651ebd
commit dcda551233

View File

@ -16,10 +16,10 @@ class MetaTestBuilding extends GeoZ.MetaModBuilding {
variants: { variants: {
default: { default: {
name: "Test", name: "Test",
description: "Test GeoZ building" description: "Test GeoZ building",
}
}, },
keybinding: "Test" },
keybinding: "Test",
}; };
} }
@ -35,8 +35,24 @@ class MetaTestBuilding extends GeoZ.MetaModBuilding {
return new Vector(1, 1); return new Vector(1, 1);
} }
getSpriteMeta() { /**
return {url:"https://raw.githubusercontent.com/Exund/shapez.io/master/res_raw/sprites/wires/boolean_false.png", width: 64, height: 64}; * @returns {import("../../mod_building").BuildingSpriteMetas}
*/
getSpriteMetas() {
const normal = {
url: "https://raw.githubusercontent.com/Exund/shapez.io/master/res_raw/sprites/wires/boolean_false.png",
width: 64,
height: 64,
};
return {
default: [
{
normal,
blueprint: normal,
},
],
};
} }
setupEntityComponents() {} setupEntityComponents() {}
@ -45,7 +61,18 @@ class MetaTestBuilding extends GeoZ.MetaModBuilding {
/**@type {GeoZ.Mod}*/ /**@type {GeoZ.Mod}*/
const test = { const test = {
name: "test", name: "test",
buildings: [MetaTestBuilding] buildings: [MetaTestBuilding],
shapes: [
{
id: "leaf",
code: "F",
draw: "M 0 0 v 0.5 a 0.5 0.5 0 0 0 0.5 0.5 h 0.5 v -0.5 a 0.5 0.5 0 0 0 -0.5 -0.5 z",
tier: 2,
spawnData: {
color: "yellow",
},
},
],
}; };
export default test; export default test;