MapResourcesSystem
Extends:
Method Summary
| Public Methods | ||
| public |
drawChunk_BackgroundLayer(parameters: DrawParameters, chunk: MapChunkView) Draws the map resources |
|
| public |
generateChunkBackground(chunk: MapChunkView, canvas: HTMLCanvasElement, context: CanvasRenderingContext2D, w: number, h: number, dpi: number) |
|
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 |
|
Static Public Methods
Public Methods
public drawChunk_BackgroundLayer(parameters: DrawParameters, chunk: MapChunkView) source
Draws the map resources
Params:
| Name | Type | Attribute | Description |
| parameters | DrawParameters | ||
| chunk | MapChunkView |
public generateChunkBackground(chunk: MapChunkView, canvas: HTMLCanvasElement, context: CanvasRenderingContext2D, w: number, h: number, dpi: number) source
Params:
| Name | Type | Attribute | Description |
| chunk | MapChunkView | ||
| canvas | HTMLCanvasElement | ||
| context | CanvasRenderingContext2D | ||
| w | number | ||
| h | number | ||
| dpi | number |
