Tile - YEnergy - Link Energy – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Link Energy(Entity A, Entity B) == File:Ylan...")
 
No edit summary
Line 10: Line 10:


==== entity1 ====
==== entity1 ====
Entity A to link


==== entity2 ====
==== entity2 ====
Entity B to link
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===


Allows to '''link''' two energy '''entities''' to each other. Energy '''ports''' are selected '''randomly''' if there are any available.
Allows to '''link''' two energy '''entities''' to each other automatically.


=== Notes ===
=== 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.
* Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2.


Line 29: Line 38:


==== entity1 ====
==== entity1 ====
Entity A to link


==== port1 ====
==== port1 ====
Entity A energy port to use for connection


==== entity2 ====
==== entity2 ====
Entity B to link


==== port2 ====
==== port2 ====
Entity B energy port to use for connection
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===

Revision as of 12:16, 12 November 2021

Link Energy(Entity A, Entity B)

YlandsTile-338.png

static linkEnergy(entity1: YEntity, entity2: YEntity): void;

Parameters

entity1

Entity A to link

entity2

Entity B to link

Availability

Server

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)

YlandsTile-336.png

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

Server

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.