import {UndergroundBeltSystem} from 'shapez.io/js/game/systems/underground_belt.js'UndergroundBeltSystem
Extends:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
beltSprites: {"undefined": *} |
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
findRecieverForSender(entity: Entity): import("../components/underground_belt").LinkedUndergroundBelt Finds the receiver for a given sender |
|
| public |
handleReceiver(entity: Entity) |
|
| public |
handleSender(entity: Entity) |
|
| public |
onEntityManuallyPlaced(entity: Entity) Callback when an entity got placed, used to remove belts between underground belts |
|
| public |
recomputeArea(area: Rectangle) Recomputes the cache in the given area, invalidating all entries there |
|
| 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 findRecieverForSender(entity: Entity): import("../components/underground_belt").LinkedUndergroundBelt source
Finds the receiver for a given sender
Params:
| Name | Type | Attribute | Description |
| entity | Entity |
Return:
| import("../components/underground_belt").LinkedUndergroundBelt |
public onEntityManuallyPlaced(entity: Entity) source
Callback when an entity got placed, used to remove belts between underground belts
Params:
| Name | Type | Attribute | Description |
| entity | Entity |
public recomputeArea(area: Rectangle) source
Recomputes the cache in the given area, invalidating all entries there
Params:
| Name | Type | Attribute | Description |
| area | Rectangle |
public update() source
Updates the game system, override to perform logic
