Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 886 Bytes

generator-asset.rst

File metadata and controls

30 lines (17 loc) · 886 Bytes

Generator Assets

Generators are a placeable power sources. Players can deposit fuel into generators with a fuel canister <doc_item_asset_fuel>.

This inherits the BarricadeAsset <doc_item_asset_barricade> class.

Item Asset Properties

GUID 32-digit hexadecimal: Refer to GUID <doc_data_guid> documentation.

Type enum (Generator)

Useable enum (Barricade)

Build enum (Generator)

ID uint16: Must be a unique identifier.

Generator Asset Properties

Capacity uint16: Maximum units of fuel that can be stored in the generator. Defaults to 0.

Wirerange float [0, 256]: In meters, the radius around the generator that is provided electricity.

Burn float: How many seconds it takes to burn one unit of fuel.