mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Fix tabs
Tab characters replaced with spaces.
This commit is contained in:
parent
62230374b8
commit
71409b62f4
@ -231,69 +231,69 @@ export class MetaUndergroundBeltBuilding extends MetaBuilding {
|
|||||||
*/
|
*/
|
||||||
updateVariants(entity, rotationVariant, variant) {
|
updateVariants(entity, rotationVariant, variant) {
|
||||||
entity.components.UndergroundBelt.tier = enumUndergroundBeltVariantToTier[variant];
|
entity.components.UndergroundBelt.tier = enumUndergroundBeltVariantToTier[variant];
|
||||||
entity.components.UndergroundBelt.direction = enumUndergroundBeltVariantToDirection[variant];
|
entity.components.UndergroundBelt.direction = enumUndergroundBeltVariantToDirection[variant];
|
||||||
|
|
||||||
switch (arrayUndergroundRotationVariantToMode[rotationVariant]) {
|
switch (arrayUndergroundRotationVariantToMode[rotationVariant]) {
|
||||||
case enumUndergroundBeltMode.sender: {
|
case enumUndergroundBeltMode.sender: {
|
||||||
entity.components.UndergroundBelt.mode = enumUndergroundBeltMode.sender;
|
entity.components.UndergroundBelt.mode = enumUndergroundBeltMode.sender;
|
||||||
entity.components.ItemEjector.setSlots([]);
|
entity.components.ItemEjector.setSlots([]);
|
||||||
switch (enumUndergroundBeltVariantToDirection[variant]) {
|
switch (enumUndergroundBeltVariantToDirection[variant]) {
|
||||||
case "straight": {
|
case "straight": {
|
||||||
entity.components.ItemAcceptor.setSlots([
|
entity.components.ItemAcceptor.setSlots([
|
||||||
{
|
{
|
||||||
pos: new Vector(0, 0),
|
pos: new Vector(0, 0),
|
||||||
directions: [enumDirection.bottom],
|
directions: [enumDirection.bottom],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
case "left": {
|
case "left": {
|
||||||
entity.components.ItemAcceptor.setSlots([
|
entity.components.ItemAcceptor.setSlots([
|
||||||
{
|
{
|
||||||
pos: new Vector(0, 0),
|
pos: new Vector(0, 0),
|
||||||
directions: [enumDirection.left],
|
directions: [enumDirection.left],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
case "right": {
|
case "right": {
|
||||||
entity.components.ItemAcceptor.setSlots([
|
entity.components.ItemAcceptor.setSlots([
|
||||||
{
|
{
|
||||||
pos: new Vector(0, 0),
|
pos: new Vector(0, 0),
|
||||||
directions: [enumDirection.right],
|
directions: [enumDirection.right],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case enumUndergroundBeltMode.receiver: {
|
case enumUndergroundBeltMode.receiver: {
|
||||||
entity.components.UndergroundBelt.mode = enumUndergroundBeltMode.receiver;
|
entity.components.UndergroundBelt.mode = enumUndergroundBeltMode.receiver;
|
||||||
entity.components.ItemAcceptor.setSlots([]);
|
entity.components.ItemAcceptor.setSlots([]);
|
||||||
switch (enumUndergroundBeltVariantToDirection[variant]) {
|
switch (enumUndergroundBeltVariantToDirection[variant]) {
|
||||||
case "straight": {
|
case "straight": {
|
||||||
entity.components.ItemEjector.setSlots([
|
entity.components.ItemEjector.setSlots([
|
||||||
{
|
{
|
||||||
pos: new Vector(0, 0),
|
pos: new Vector(0, 0),
|
||||||
directions: [enumDirection.bottom],
|
directions: [enumDirection.bottom],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
case "left": {
|
case "left": {
|
||||||
entity.components.ItemEjector.setSlots([
|
entity.components.ItemEjector.setSlots([
|
||||||
{
|
{
|
||||||
pos: new Vector(0, 0),
|
pos: new Vector(0, 0),
|
||||||
directions: [enumDirection.left],
|
directions: [enumDirection.left],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
case "right": {
|
case "right": {
|
||||||
entity.components.ItemEjector.setSlots([
|
entity.components.ItemEjector.setSlots([
|
||||||
{
|
{
|
||||||
pos: new Vector(0, 0),
|
pos: new Vector(0, 0),
|
||||||
directions: [enumDirection.right],
|
directions: [enumDirection.right],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -80,10 +80,10 @@ export function initMetaBuildingRegistry() {
|
|||||||
// Underground belt
|
// Underground belt
|
||||||
registerBuildingVariant(22, MetaUndergroundBeltBuilding, defaultBuildingVariant, 0);
|
registerBuildingVariant(22, MetaUndergroundBeltBuilding, defaultBuildingVariant, 0);
|
||||||
registerBuildingVariant(23, MetaUndergroundBeltBuilding, defaultBuildingVariant, 1);
|
registerBuildingVariant(23, MetaUndergroundBeltBuilding, defaultBuildingVariant, 1);
|
||||||
registerBuildingVariant(24, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.side, 0);
|
registerBuildingVariant(24, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.side, 0);
|
||||||
registerBuildingVariant(25, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.side, 1);
|
registerBuildingVariant(25, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.side, 1);
|
||||||
registerBuildingVariant(26, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.sideMirrored, 0);
|
registerBuildingVariant(26, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.sideMirrored, 0);
|
||||||
registerBuildingVariant(27, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.sideMirrored, 1);
|
registerBuildingVariant(27, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.sideMirrored, 1);
|
||||||
registerBuildingVariant(28, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.tier2, 0);
|
registerBuildingVariant(28, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.tier2, 0);
|
||||||
registerBuildingVariant(29, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.tier2, 1);
|
registerBuildingVariant(29, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.tier2, 1);
|
||||||
registerBuildingVariant(30, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.tier2Side, 0);
|
registerBuildingVariant(30, MetaUndergroundBeltBuilding, enumUndergroundBeltVariants.tier2Side, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user