Home Reference Source
import {StorageSystem} from 'shapez.io/js/game/systems/storage.js'
public class | source

StorageSystem

Extends:

GameSystemGameSystemWithFilter → StorageSystem

Static Method Summary

Static Public Methods
public static

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Stores which uids were already drawn to avoid drawing entities twice

public

Method Summary

Public Methods
public
public
public

update()

Inherited Summary

From class GameSystem
public static

Returns static id

public

root: *

public

draw(parameters: DrawParameters)

Override, do not call this directly, use startDraw()

public

Should refresh all caches

public

startDraw(parameters: DrawParameters)

public

update()

Updates the game system, override to perform logic

From class GameSystemWithFilter
public

All entities which match the current components

public
public
public
public
public

Recomputes all target entities after the game has loaded

public
public
public
public

Static Public Methods

public static getId(): string source

Returns static id

Override:

GameSystem#getId

Return:

string

Public Constructors

public constructor() source

Constructs a new game system with the given component filter. It will process all entities which have all of the passed components

Override:

GameSystemWithFilter#constructor

Public Members

public drawnUids: Set<number> source

Stores which uids were already drawn to avoid drawing entities twice

public storageOverlaySprite: * source

Public Methods

public clearDrawnUids() source

public drawChunk_ForegroundStaticLayer(parameters: DrawParameters, chunk: MapChunkView) source

Params:

NameTypeAttributeDescription
parameters DrawParameters
chunk MapChunkView

public update() source

Updates the game system, override to perform logic

Override:

GameSystem#update