Tile - YEnergy - Link Energy – Ylands
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
Line 68: | Line 68: | ||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] |
Latest revision as of 14:27, 24 November 2023
Link Energy(Entity A, Entity B)
static linkEnergy(entity1: YEntity, entity2: YEntity): void;
Parameters
entity1
Entity A to link
entity2
Entity B to link
Availability
Description
Allows to link two energy entities to each other automatically.
Notes
- Energy ports are selected randomly, if there are any available.
- Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2.
Link Energy(Entity A, Port A, Entity B, Port B)
static linkEnergy(entity1: YEntity, port1: number, entity2: YEntity, port2: number): void;
Parameters
entity1
Entity A to link
port1
Entity A energy port to use for connection
entity2
Entity B to link
port2
Entity B energy port to use for connection
Availability
Description
Allows to link two energy entities to each other trough specific ports.
Notes
- Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2.