Members
# AliveEnergy
amount of energy
Example
world = this.world
function test() {
return world
}
Properties
| Name | Type | Description |
|---|---|---|
energy |
Energy
|
The energy wasted in this surviving instance. |
- Default Value:
null
Methods
# fetchWeatherIcon(reading) → {string}
Maps a weather forecast description to an appropriate icon
Parameters
| Name | Type | Description |
|---|---|---|
reading |
WeatherReading
|
A weather forecast object |
Returns
A keyword matching a CSS class name in the icon set
Type
-
string
Type Definitions
# PhotoSize
Properties| Name | Type | Attributes | Description |
|---|---|---|---|
file_id |
string
|
Identifier for this file, which can be used to download or reuse the file |
|
file_unique_id |
string
|
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. |
|
width |
number
|
Photo width |
|
height |
number
|
Photo height |
|
file_size |
number
|
<optional> |
Optional. File size in bytes |
# EnergyUnit
Type
Properties
-
object
| Name | Type | Description |
|---|---|---|
foo |
string
|
kajsdh kajhsd |
hello |
Array.<Array.<string>>
|
aksjdh kaj shdkj asd |
# EnvironmentConfiguration
Type
Properties
-
object
| Name | Type | Description |
|---|---|---|
name |
string
|
Name of a living thing |
attributes |
Map.<string, number>
|
A mapping of attributes |
- Source: