ProductionAnalytics
Extends:
Constructor Summary
| Public Constructor | ||
| public |
constructor(root: GameRoot) |
|
Method Summary
| Public Methods | ||
| public |
getCurrentShapeRate(dataSource: enumAnalyticsDataSource, definition: ShapeDefinition): * Returns the current rate of a given shape |
|
| public |
getCurrentShapeRates(dataSource: enumAnalyticsDataSource): * Returns the rates of all shapes |
|
| public |
getPastShapeRate(dataSource: enumAnalyticsDataSource, definition: ShapeDefinition, historyOffset: number): * Returns the rate of a given shape, <historyOffset> frames ago |
|
| public |
onItemProduced(item: BaseItem) |
|
| public |
onShapeDelivered(definition: ShapeDefinition) |
|
| public |
Starts a new time slice |
|
| public |
update() |
|
Inherited Summary
| From class BasicSerializableObject | ||
| public static |
|
|
| public static |
getId() |
|
| public static |
Should return the serialization schema |
|
| public static |
|
|
| public |
deserialize(data: any, root: import("./savegame_serializer").GameRoot): string | void |
|
| public |
|
|
Static Public Methods
Public Constructors
public constructor(root: GameRoot) source
Fixes typeof DerivedComponent is not assignable to typeof Component, compiled out in non-dev builds
Override:
BasicSerializableObject#constructorParams:
| Name | Type | Attribute | Description |
| root | GameRoot |
Public Methods
public getCurrentShapeRate(dataSource: enumAnalyticsDataSource, definition: ShapeDefinition): * source
Returns the current rate of a given shape
Params:
| Name | Type | Attribute | Description |
| dataSource | enumAnalyticsDataSource | ||
| definition | ShapeDefinition |
Return:
| * |
public getCurrentShapeRates(dataSource: enumAnalyticsDataSource): * source
Returns the rates of all shapes
Params:
| Name | Type | Attribute | Description |
| dataSource | enumAnalyticsDataSource |
Return:
| * |
public getPastShapeRate(dataSource: enumAnalyticsDataSource, definition: ShapeDefinition, historyOffset: number): * source
Returns the rate of a given shape, <historyOffset> frames ago
Params:
| Name | Type | Attribute | Description |
| dataSource | enumAnalyticsDataSource | ||
| definition | ShapeDefinition | ||
| historyOffset | number |
Return:
| * |
public onShapeDelivered(definition: ShapeDefinition) source
Params:
| Name | Type | Attribute | Description |
| definition | ShapeDefinition |
