Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SCR_ResourceContainerItemData Interface Reference
Inheritance diagram for SCR_ResourceContainerItemData:
[legend]

Public Member Functions

int GetMaxResourceValue ()
 Get max resource value of container Data obtained from prefab, -1 if no max resource value found.
 
override void InitData (notnull SCR_EntityCatalogEntry entry)
 Called by Catalog on creation.
 
- Public Member Functions inherited from SCR_BaseEntityCatalogData
bool IsEnabled ()
 If is Enabled.
 
void InitData (notnull SCR_EntityCatalogEntry entry)
 Called by Catalog on creation.
 
void PostInitData (notnull SCR_EntityCatalogEntry entry)
 Called by Catalog after init data is called for all other entries.
 

Protected Member Functions

void SetMaxResourceValue (int maxResourceValue)
 
SCR_ResourceContainer GetResourceContainer (notnull SCR_EntityCatalogEntry entry, bool showError=true)
 

Protected Attributes

EResourceType m_eResourceType
 
int m_iMaxResourceValue = -1
 
- Protected Attributes inherited from SCR_BaseEntityCatalogData
bool m_bEnabled
 

Member Function Documentation

◆ GetMaxResourceValue()

int SCR_ResourceContainerItemData.GetMaxResourceValue ( )

Get max resource value of container Data obtained from prefab, -1 if no max resource value found.

Returns
max Resource value

◆ GetResourceContainer()

SCR_ResourceContainer SCR_ResourceContainerItemData.GetResourceContainer ( notnull SCR_EntityCatalogEntry  entry,
bool  showError = true 
)
protected

◆ InitData()

override void SCR_ResourceContainerItemData.InitData ( notnull SCR_EntityCatalogEntry  entry)

Called by Catalog on creation.

Special init for data. To be overidden. Never called if Data is disabled

Parameters
[in]entryEntry the data is attached to

Implements SCR_BaseEntityCatalogData.

◆ SetMaxResourceValue()

void SCR_ResourceContainerItemData.SetMaxResourceValue ( int  maxResourceValue)
protected

Member Data Documentation

◆ m_eResourceType

EResourceType SCR_ResourceContainerItemData.m_eResourceType
protected

◆ m_iMaxResourceValue

int SCR_ResourceContainerItemData.m_iMaxResourceValue = -1
protected

The documentation for this interface was generated from the following file: