import {BeltUnderlaysSystem} from 'shapez.io/js/game/systems/belt_underlays.js'BeltUnderlaysSystem
Extends:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
staleArea: * |
|
| public |
underlayBeltSprites: *[] |
|
Method Summary
| Public Methods | ||
| public |
checkIsAcceptorConnected(tile: Vector, fromDirection: enumDirection): boolean Checks if a given tile is connected and has an acceptor |
|
| public |
checkIsEjectorConnected(tile: Vector, toDirection: enumDirection): boolean Checks if a given tile is connected and has an ejector |
|
| public |
computeBeltUnderlayType(entity: Entity, underlayTile: import("../components/belt_underlays").BeltUnderlayTile): enumClippedBeltUnderlayType Computes the flag for a given tile |
|
| public |
drawChunk_BackgroundLayer(parameters: DrawParameters, chunk: MapChunkView) Draws a given chunk |
|
| public |
recomputeStaleArea(area: Rectangle) Called when an area changed - Resets all caches in the given area |
|
| 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 |
internalPopEntityIfMatching(entity: Entity) |
|
| public |
Recomputes all target entities after the game has loaded |
|
| public |
internalPushEntityIfMatching(entity: Entity) |
|
| public |
internalReconsiderEntityToAdd(entity: Entity) |
|
| public |
internalRegisterEntity(entity: Entity) |
|
| public |
|
|
Static Public Methods
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#constructorPublic Methods
public checkIsAcceptorConnected(tile: Vector, fromDirection: enumDirection): boolean source
Checks if a given tile is connected and has an acceptor
Params:
| Name | Type | Attribute | Description |
| tile | Vector | ||
| fromDirection | enumDirection |
public checkIsEjectorConnected(tile: Vector, toDirection: enumDirection): boolean source
Checks if a given tile is connected and has an ejector
Params:
| Name | Type | Attribute | Description |
| tile | Vector | ||
| toDirection | enumDirection |
public computeBeltUnderlayType(entity: Entity, underlayTile: import("../components/belt_underlays").BeltUnderlayTile): enumClippedBeltUnderlayType source
Computes the flag for a given tile
Params:
| Name | Type | Attribute | Description |
| entity | Entity | ||
| underlayTile | import("../components/belt_underlays").BeltUnderlayTile |
public drawChunk_BackgroundLayer(parameters: DrawParameters, chunk: MapChunkView) source
Draws a given chunk
Params:
| Name | Type | Attribute | Description |
| parameters | DrawParameters | ||
| chunk | MapChunkView |
public recomputeStaleArea(area: Rectangle) source
Called when an area changed - Resets all caches in the given area
Params:
| Name | Type | Attribute | Description |
| area | Rectangle |
public update() source
Updates the game system, override to perform logic
