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:
parent
4899651ebd
commit
dcda551233
@ -3,9 +3,9 @@ import { Vector } from "../../../core/vector";
|
|||||||
import { Entity } from "../../../game/entity";
|
import { Entity } from "../../../game/entity";
|
||||||
|
|
||||||
class MetaTestBuilding extends GeoZ.MetaModBuilding {
|
class MetaTestBuilding extends GeoZ.MetaModBuilding {
|
||||||
static getId() {
|
static getId() {
|
||||||
return "test";
|
return "test";
|
||||||
}
|
}
|
||||||
|
|
||||||
static getKeybinding() {
|
static getKeybinding() {
|
||||||
return "0";
|
return "0";
|
||||||
@ -13,17 +13,17 @@ class MetaTestBuilding extends GeoZ.MetaModBuilding {
|
|||||||
|
|
||||||
static getTranslations() {
|
static getTranslations() {
|
||||||
return {
|
return {
|
||||||
variants: {
|
variants: {
|
||||||
default: {
|
default: {
|
||||||
name: "Test",
|
name: "Test",
|
||||||
description: "Test GeoZ building"
|
description: "Test GeoZ building",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
keybinding: "Test"
|
keybinding: "Test",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super("test");
|
super("test");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,17 +35,44 @@ 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,
|
||||||
|
};
|
||||||
|
|
||||||
setupEntityComponents() {}
|
return {
|
||||||
|
default: [
|
||||||
|
{
|
||||||
|
normal,
|
||||||
|
blueprint: normal,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
setupEntityComponents() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**@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;
|
Loading…
Reference in New Issue
Block a user