WiredPinsSystem
Extends:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
pinSprites: {"undefined": *} |
|
Method Summary
| Public Methods | ||
| public |
checkEntityPinsCollide(entity: Entity, offset: Vector=): boolean Checks if the pins of the given entity collide on the wires layer |
|
| public |
drawChunk_WiresForegroundLayer(parameters: DrawParameters, chunk: MapChunkView) Draws a given entity |
|
| public |
freeEntityAreaBeforeBuild(entity: Entity) Called to free space for the given entity |
|
| public |
prePlacementCheck(entity: Entity, offset: Vector): * Performs pre-placement checks |
|
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 Members
public pinSprites: {"undefined": *} source
Public Methods
public checkEntityPinsCollide(entity: Entity, offset: Vector=): boolean source
Checks if the pins of the given entity collide on the wires layer
Params:
| Name | Type | Attribute | Description |
| entity | Entity | ||
| offset | Vector= | Optional, move the entity by the given offset first |
public drawChunk_WiresForegroundLayer(parameters: DrawParameters, chunk: MapChunkView) source
Draws a given entity
Params:
| Name | Type | Attribute | Description |
| parameters | DrawParameters | ||
| chunk | MapChunkView |
