Methods
Static getGeneratedEnergy
- getGeneratedEnergy(target: YEntity): number
-
Parameters
Returns number
Static getOtherConnectedEntity
- getOtherConnectedEntity(entity: YEntity, port: number, connected: (entity: YEntity, port: number) => void, noConnection: () => void): void
-
Parameters
-
-
port: number
-
connected: (entity: YEntity, port: number) => void
-
- (entity: YEntity, port: number): void
-
noConnection: () => void
Returns void
Static getPortCount
- getPortCount(target: YEntity): number
-
Parameters
Returns number
Static getRequiredEnergy
- getRequiredEnergy(target: YEntity): number
-
Parameters
Returns number
Static getUsedEnergy
- getUsedEnergy(target: YEntity): number
-
Parameters
Returns number
Static isEnergyPortConnected
- isEnergyPortConnected(entity: YEntity, port: number): boolean
-
Parameters
Returns boolean
Static linkEnergy
-
Parameters
-
-
port1: number
-
-
port2: number
Returns void
-
Parameters
Returns void
Static unlinkEnergy
- unlinkEnergy(entity: YEntity, port: number): void
- unlinkEnergy(entity: YEntity): void
-
Parameters
Returns void
-
Parameters
Returns void
Returns amount of energy generated by target entity.