User Tools

Site Tools


api:comp_resource_container

COMP_RESOURCE_CONTAINER

Category: Component

Parent class: COMPONENT

Lazy-init

Properties


ResourceData

Serialized


IsReplenishable

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: false

ReplenishDurationInDays

Serialized

  • Type: integer
  • Expected: integer value
  • Default value: 5

ReplenishQuantity

Serialized

  • Type: integer
  • Expected: integer value
  • Default value: 50

ResourceValue

Serialized

  • Type: float
  • Expected: float value
  • Default value: 1.0f

ReplenishedMaterial

Serialized

  • Type: MATERIAL
  • Expected: asset ID
  • Default value: nil

DepletedMaterial

Serialized

  • Type: MATERIAL
  • Expected: asset ID
  • Default value: nil

ObjectToDisableWhenDepleted

Serialized

  • Expected: GAME_OBJECT value
  • Default value: nil

AvailableQuantity

Serialized, Savegame

  • Type: integer
  • Expected: integer value
  • Default value: 1

DaysLeftBeforeReplenish

Serialized, Savegame

  • Type: integer
  • Expected: integer value
  • Default value: m_replenishDurationInDays

Radius

Serialized

  • Type: float
  • Expected: float value
  • Default value: 1.25f

IsDestroyWhenEmpty

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: true

HasMaximumWorkstation

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: false
api/comp_resource_container.txt · Last modified: 2022/11/17 19:03 (external edit)