PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
InventoryItemType Class Reference

Private Member Functions

private void InventoryItemType ()
 
private void ~InventoryItemType ()
 
void LoadSoundEvents ()
 
AnimSoundEvent GetSoundEvent (int event_id)
 
proto native owned string GetName ()
 
proto native void SetOptics2DTexture (int index, string textureName)
 Set optics 2D model texture at provided selection index.
 
proto native void SetOptics2DMaterial (int index, string materialName)
 Set optics 2D material at provided selection index.
 
proto native int FindOptics2DSelection (string selectionName, bool ignoreCase=true)
 Finds selection index by name.
 
proto native bool IsUsingOptics2DModel ()
 Whether 2D model (modelOptics) is set and used for this type.
 

Private Attributes

private ref map< int, ref AnimSoundEvent > m_AnimSoundEvents
 
ref array< ref AnimSoundEvent > m_animSoundEvents
 DEPRECATED.
 

Constructor & Destructor Documentation

◆ InventoryItemType()

private void InventoryItemType ( )
inlineprivate

References LoadSoundEvents().

◆ ~InventoryItemType()

private void ~InventoryItemType ( )
private

Member Function Documentation

◆ FindOptics2DSelection()

proto native int FindOptics2DSelection ( string  selectionName,
bool  ignoreCase = true 
)
private

Finds selection index by name.

Parameters
selectionNameName of selection to find
ignoreCaseWhether search ignores case sensitivity
Returns
Index of selection or -1 when none.

◆ GetName()

proto native owned string GetName ( )
private

Referenced by LoadSoundEvents().

◆ GetSoundEvent()

AnimSoundEvent GetSoundEvent ( int  event_id)
inlineprivate

◆ IsUsingOptics2DModel()

proto native bool IsUsingOptics2DModel ( )
private

Whether 2D model (modelOptics) is set and used for this type.

◆ LoadSoundEvents()

void LoadSoundEvents ( )
inlineprivate

◆ SetOptics2DMaterial()

proto native void SetOptics2DMaterial ( int  index,
string  materialName 
)
private

Set optics 2D material at provided selection index.

Parameters
indexSelection index
materialNameName of material to set (/dz/.../*.rvmat)

◆ SetOptics2DTexture()

proto native void SetOptics2DTexture ( int  index,
string  textureName 
)
private

Set optics 2D model texture at provided selection index.

Parameters
indexSelection index
textureNameName of texture to set (/dz/.../*.paa)

Field Documentation

◆ m_AnimSoundEvents

private ref map<int, ref AnimSoundEvent> m_AnimSoundEvents
private

Referenced by GetSoundEvent(), and LoadSoundEvents().

◆ m_animSoundEvents

ref array<ref AnimSoundEvent> m_animSoundEvents
private

DEPRECATED.


The documentation for this class was generated from the following files: