mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Fixed imports
This commit is contained in:
parent
9f5ceff0bb
commit
fa68e13286
@ -129,7 +129,7 @@ export class BufferMaintainer {
|
||||
* @param {number} param0.w
|
||||
* @param {number} param0.h
|
||||
* @param {number} param0.dpi
|
||||
* @param {function(canvas: HTMLCanvasElement, context: CanvasRenderingContext2D, width: number, height: number, dpi: number, additionalParams: object?) : void} param0.redrawMethod
|
||||
* @param {function(HTMLCanvasElement, CanvasRenderingContext2D, number, number, number, object?) : void} param0.redrawMethod
|
||||
* @param {object=} param0.additionalParams
|
||||
* @returns {HTMLCanvasElement}
|
||||
*
|
||||
|
@ -146,7 +146,7 @@ export class MetaWireBuilding extends MetaBuilding {
|
||||
*
|
||||
* @param {number} rotationVariant
|
||||
* @param {string} variant
|
||||
* @returns {import("../../core/draw_utils").AtlasSprite}
|
||||
* @returns {import("../../core/sprites").AtlasSprite}
|
||||
*/
|
||||
getPreviewSprite(rotationVariant, variant) {
|
||||
const wireVariant = MetaWireBuilding.wireVariantToVariant[variant];
|
||||
|
@ -98,7 +98,7 @@ export class HUDLayerPreview extends BaseHUDPart {
|
||||
|
||||
/**
|
||||
* Renders the preview at the given position
|
||||
* @param {import("../../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../../core/draw_parameters").DrawParameters} parameters
|
||||
* @param {Vector} worldPos
|
||||
* @param {number} scale 1 / zoomLevel
|
||||
*/
|
||||
|
@ -11,7 +11,7 @@ export class HUDMinerHighlight extends BaseHUDPart {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {import("../../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../../core/draw_parameters").DrawParameters} parameters
|
||||
*/
|
||||
draw(parameters) {
|
||||
const mousePos = this.root.app.mousePosition;
|
||||
|
@ -53,7 +53,7 @@ export class HUDWatermark extends BaseHUDPart {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {import("../../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../../core/draw_parameters").DrawParameters} parameters
|
||||
*/
|
||||
drawOverlays(parameters) {
|
||||
const w = this.root.gameWidth;
|
||||
|
@ -13,7 +13,7 @@ export class HUDWireInfo extends BaseHUDPart {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {import("../../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../../core/draw_parameters").DrawParameters} parameters
|
||||
*/
|
||||
drawOverlays(parameters) {
|
||||
if (this.root.currentLayer !== "wires") {
|
||||
@ -81,7 +81,7 @@ export class HUDWireInfo extends BaseHUDPart {
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param {import("../../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../../core/draw_parameters").DrawParameters} parameters
|
||||
* @param {WireNetwork} network
|
||||
*/
|
||||
drawHighlightedNetwork(parameters, network) {
|
||||
|
@ -12,7 +12,7 @@ export class DisplaySystem extends GameSystemWithFilter {
|
||||
constructor(root) {
|
||||
super(root, [DisplayComponent]);
|
||||
|
||||
/** @type {Object<string, import("../../core/draw_utils").AtlasSprite>} */
|
||||
/** @type {Object<string, import("../../core/sprites").AtlasSprite>} */
|
||||
this.displaySprites = {};
|
||||
|
||||
for (const colorId in enumColors) {
|
||||
@ -44,7 +44,7 @@ export class DisplaySystem extends GameSystemWithFilter {
|
||||
|
||||
/**
|
||||
* Draws a given chunk
|
||||
* @param {import("../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../core/draw_parameters").DrawParameters} parameters
|
||||
* @param {MapChunkView} chunk
|
||||
*/
|
||||
drawChunk_ForegroundStaticLayer(parameters, chunk) {
|
||||
|
@ -31,7 +31,7 @@ export class LeverSystem extends GameSystemWithFilter {
|
||||
|
||||
/**
|
||||
* Draws a given chunk
|
||||
* @param {import("../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../core/draw_parameters").DrawParameters} parameters
|
||||
* @param {MapChunkView} chunk
|
||||
*/
|
||||
drawChunk_ForegroundStaticLayer(parameters, chunk) {
|
||||
|
@ -571,7 +571,7 @@ export class WireSystem extends GameSystemWithFilter {
|
||||
/**
|
||||
* Returns the given tileset and opacity
|
||||
* @param {WireComponent} wireComp
|
||||
* @returns {{ spriteSet: Object<enumWireType, import("../../core/draw_utils").AtlasSprite>, opacity: number}}
|
||||
* @returns {{ spriteSet: Object<enumWireType, import("../../core/sprites").AtlasSprite>, opacity: number}}
|
||||
*/
|
||||
getSpriteSetAndOpacityForWire(wireComp) {
|
||||
if (!wireComp.linkedNetwork) {
|
||||
@ -601,7 +601,7 @@ export class WireSystem extends GameSystemWithFilter {
|
||||
|
||||
/**
|
||||
* Draws a given chunk
|
||||
* @param {import("../../core/draw_utils").DrawParameters} parameters
|
||||
* @param {import("../../core/draw_parameters").DrawParameters} parameters
|
||||
* @param {MapChunkView} chunk
|
||||
*/
|
||||
drawChunk_WiresForegroundLayer(parameters, chunk) {
|
||||
|
@ -945,6 +945,8 @@ export class ShapezAPI {
|
||||
{
|
||||
meta: atlasData.atlasData.meta,
|
||||
sourceData: atlasData.atlasData.frames,
|
||||
sourceFileName: null,
|
||||
getFullSourcePath: null,
|
||||
},
|
||||
sourceImage
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user