Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Attachments Class Reference

Protected Member Functions

void Attachments (Container parent, EntityAI entity)
void ~Attachments ()
void AttachmentAdded (EntityAI item, string slot, EntityAI parent)
void AttachmentRemoved (EntityAI item, string slot, EntityAI parent)
bool CanCombine ()
bool CanCombineAmmo ()
bool CanEquip ()
bool Combine ()
bool EquipItem ()
int GetAttachmentHeight ()
int GetAttachmentSlotID ()
TextWidget GetFalseHeaderTextWidget ()
EntityAI GetFocusedItem ()
int GetFocusedSlot ()
SlotsIcon GetFocusedSlotsIcon ()
array< stringGetItemSlots (EntityAI e)
int GetRecipeCount (bool recipe_anywhere, EntityAI entity1, EntityAI entity2)
array< intGetSlotsSorted ()
AttachmentsWrapper GetWrapper ()
void InitAttachmentGrid (int att_row_index)
bool InspectItem ()
bool IsActive ()
bool IsEmpty ()
bool IsItemActive ()
bool IsItemWithQuantityActive ()
void OnAttachmentReservationRelease (EntityAI item, int slot_id)
void OnAttachmentReservationSet (EntityAI item, int slot_id)
bool Select ()
bool SelectItem ()
void SelFirstActive ()
void SetActive (bool active)
void SetAttachmentSlotID (int slotID)
void SetDefaultFocus (bool while_micromanagment_mode=false)
void SetFalseAttachmentsHeaderText (string text)
void SetLastActive ()
void ShowFalseAttachmentsHeader (bool show)
bool SplitItem ()
bool TransferItem ()
bool TransferItemToVicinity ()
void UnfocusAll ()
void UpdateInterval ()

Protected Attributes

ref array< intm_AttachmentIDOrdered
ref AttachmentsWrapper m_AttachmentsContainer
ref array< stringm_AttachmentSlotDisplayable
int m_AttachmentSlotID = -1
ref array< stringm_AttachmentSlotNames
ref map< int, SlotsIconm_AttachmentSlots
EntityAI m_Entity
Container m_Parent
int m_RowIndex

Detailed Description

Definition at line 3 of file attachments.c.

Constructor & Destructor Documentation

◆ Attachments()

◆ ~Attachments()

Member Function Documentation

◆ AttachmentAdded()

◆ AttachmentRemoved()

void AttachmentRemoved ( EntityAI item,
string slot,
EntityAI parent )
inlineprotected

◆ CanCombine()

bool CanCombine ( )
inlineprotected

Definition at line 205 of file attachments.c.

References g_Game, ItemManager::GetCombinationFlags(), and GetFocusedItem().

◆ CanCombineAmmo()

bool CanCombineAmmo ( )
inlineprotected

◆ CanEquip()

bool CanEquip ( )
inlineprotected

Definition at line 224 of file attachments.c.

References g_Game, and GetFocusedItem().

◆ Combine()

◆ EquipItem()

bool EquipItem ( )
inlineprotected

Definition at line 263 of file attachments.c.

References g_Game, GetFocusedItem(), and GetFocusedSlotsIcon().

◆ GetAttachmentHeight()

int GetAttachmentHeight ( )
inlineprotected

Definition at line 316 of file attachments.c.

References m_AttachmentsContainer.

◆ GetAttachmentSlotID()

int GetAttachmentSlotID ( )
inlineprotected

Definition at line 616 of file attachments.c.

References m_AttachmentSlotID.

Referenced by ClosableContainer::RecomputeContainers().

◆ GetFalseHeaderTextWidget()

TextWidget GetFalseHeaderTextWidget ( )
inlineprotected

Definition at line 606 of file attachments.c.

References m_AttachmentsContainer.

Referenced by HandsContainer::AttachmentAdded().

◆ GetFocusedItem()

◆ GetFocusedSlot()

int GetFocusedSlot ( )
inlineprotected

Definition at line 109 of file attachments.c.

References SlotsIcon::GetSlotID(), and m_AttachmentsContainer.

◆ GetFocusedSlotsIcon()

SlotsIcon GetFocusedSlotsIcon ( )
inlineprotected

◆ GetItemSlots()

array< string > GetItemSlots ( EntityAI e)
inlineprotected

Definition at line 563 of file attachments.c.

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, g_Game, and path.

Referenced by Attachments().

◆ GetRecipeCount()

int GetRecipeCount ( bool recipe_anywhere,
EntityAI entity1,
EntityAI entity2 )
inlineprotected

Definition at line 199 of file attachments.c.

References g_Game, and GetPlugin().

◆ GetSlotsSorted()

array< int > GetSlotsSorted ( )
inlineprotected

Definition at line 411 of file attachments.c.

References m_AttachmentIDOrdered.

◆ GetWrapper()

AttachmentsWrapper GetWrapper ( )
inlineprotected

Definition at line 44 of file attachments.c.

References m_AttachmentsContainer.

Referenced by HandsContainer::AttachmentAdded().

◆ InitAttachmentGrid()

◆ InspectItem()

bool InspectItem ( )
inlineprotected

Definition at line 285 of file attachments.c.

References GetFocusedItem(), and m_Parent.

◆ IsActive()

bool IsActive ( )
inlineprotected

Definition at line 311 of file attachments.c.

References m_Parent.

◆ IsEmpty()

bool IsEmpty ( )
inlineprotected

Definition at line 49 of file attachments.c.

References m_AttachmentsContainer.

Referenced by IsItemActive(), and IsItemWithQuantityActive().

◆ IsItemActive()

bool IsItemActive ( )
inlineprotected

◆ IsItemWithQuantityActive()

bool IsItemWithQuantityActive ( )
inlineprotected

◆ OnAttachmentReservationRelease()

void OnAttachmentReservationRelease ( EntityAI item,
int slot_id )
inlineprotected

Definition at line 451 of file attachments.c.

References SlotsIcon::Clear(), and m_AttachmentSlots.

Referenced by Attachments(), and ~Attachments().

◆ OnAttachmentReservationSet()

void OnAttachmentReservationSet ( EntityAI item,
int slot_id )
inlineprotected

Definition at line 441 of file attachments.c.

References SlotsIcon::Init(), and m_AttachmentSlots.

Referenced by Attachments(), and ~Attachments().

◆ Select()

◆ SelectItem()

◆ SelFirstActive()

void SelFirstActive ( )
inlineprotected

Definition at line 94 of file attachments.c.

References m_AttachmentsContainer.

◆ SetActive()

void SetActive ( bool active)
inlineprotected

Definition at line 89 of file attachments.c.

References m_AttachmentsContainer.

◆ SetAttachmentSlotID()

void SetAttachmentSlotID ( int slotID)
inlineprotected

Definition at line 611 of file attachments.c.

References m_AttachmentSlotID.

◆ SetDefaultFocus()

void SetDefaultFocus ( bool while_micromanagment_mode = false)
inlineprotected

Definition at line 79 of file attachments.c.

References m_AttachmentsContainer.

Referenced by UpdateInterval().

◆ SetFalseAttachmentsHeaderText()

void SetFalseAttachmentsHeaderText ( string text)
inlineprotected

Definition at line 601 of file attachments.c.

References m_AttachmentsContainer.

◆ SetLastActive()

void SetLastActive ( )
inlineprotected

Definition at line 84 of file attachments.c.

References m_AttachmentsContainer.

◆ ShowFalseAttachmentsHeader()

void ShowFalseAttachmentsHeader ( bool show)
inlineprotected

Definition at line 596 of file attachments.c.

References m_AttachmentsContainer.

Referenced by HandsContainer::AttachmentAdded().

◆ SplitItem()

bool SplitItem ( )
inlineprotected

Definition at line 249 of file attachments.c.

References GetFocusedItem(), and GetFocusedSlotsIcon().

◆ TransferItem()

bool TransferItem ( )
inlineprotected

Definition at line 274 of file attachments.c.

References g_Game, GetFocusedItem(), and GetFocusedSlotsIcon().

◆ TransferItemToVicinity()

bool TransferItemToVicinity ( )
inlineprotected

Definition at line 296 of file attachments.c.

References g_Game, GetFocusedItem(), and GetFocusedSlotsIcon().

◆ UnfocusAll()

void UnfocusAll ( )
inlineprotected

Definition at line 74 of file attachments.c.

References m_AttachmentsContainer.

◆ UpdateInterval()

Field Documentation

◆ m_AttachmentIDOrdered

ref array<int> m_AttachmentIDOrdered
protected

Definition at line 11 of file attachments.c.

Referenced by Attachments(), GetSlotsSorted(), and InitAttachmentGrid().

◆ m_AttachmentsContainer

◆ m_AttachmentSlotDisplayable

ref array<string> m_AttachmentSlotDisplayable
protected

Definition at line 9 of file attachments.c.

Referenced by Attachments(), and UpdateInterval().

◆ m_AttachmentSlotID

int m_AttachmentSlotID = -1
protected

Definition at line 14 of file attachments.c.

Referenced by GetAttachmentSlotID(), and SetAttachmentSlotID().

◆ m_AttachmentSlotNames

ref array<string> m_AttachmentSlotNames
protected

Definition at line 8 of file attachments.c.

Referenced by Attachments(), InitAttachmentGrid(), and UpdateInterval().

◆ m_AttachmentSlots

◆ m_Entity

EntityAI m_Entity
protected

Definition at line 6 of file attachments.c.

Referenced by Attachments(), ~Attachments(), InitAttachmentGrid(), Select(), and UpdateInterval().

◆ m_Parent

Container m_Parent
protected

Definition at line 5 of file attachments.c.

Referenced by Attachments(), InitAttachmentGrid(), InspectItem(), IsActive(), and UpdateInterval().

◆ m_RowIndex

int m_RowIndex
protected

Definition at line 13 of file attachments.c.

Referenced by InitAttachmentGrid().


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