WireComponent
Extends:
Constructor Summary
| Public Constructor | ||
| public |
constructor(param0: object) |
|
Member Summary
| Public Members | ||
| public |
linkedNetwork: import("../systems/wire").WireNetwork |
|
| public |
type: * |
|
| public |
variant: import("../buildings/wire").MetaWireBuilding.wireVariants The variant of the wire, different variants do not connect |
|
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 |
|
|
| From class Component | ||
| public static |
Returns the components unique id |
|
| public static |
getSchema(): {} Should return the schema used for serialization |
|
| public |
copyAdditionalStateTo(otherComponent: Component) Copy the current state to another component |
|
| public |
Returns a string representing the components data, only in dev builds |
|
Static Public Methods
Public Constructors
public constructor(param0: object) source
Fixes typeof DerivedComponent is not assignable to typeof Component, compiled out in non-dev builds
Override:
Component#constructorParams:
| Name | Type | Attribute | Description |
| param0 | object | ||
| param0.type | enumWireType= | ||
| param0.variant | import("../buildings/wire").MetaWireBuilding.wireVariants= |
