Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
Attachments Class Reference

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 3 of file attachments.c.

Constructor & Destructor Documentation

◆ Attachments()

void Attachments::Attachments ( Container parent,
EntityAI entity )
protected

Definition at line 16 of file attachments.c.

◆ ~Attachments()

void Attachments::~Attachments ( )
protected

Definition at line 31 of file attachments.c.

Member Function Documentation

◆ AttachmentAdded()

void Attachments::AttachmentAdded ( EntityAI item,
string slot,
EntityAI parent )
protected

Definition at line 416 of file attachments.c.

◆ AttachmentRemoved()

void Attachments::AttachmentRemoved ( EntityAI item,
string slot,
EntityAI parent )
protected

Definition at line 431 of file attachments.c.

◆ CanCombine()

bool Attachments::CanCombine ( )
protected

Definition at line 205 of file attachments.c.

◆ CanCombineAmmo()

bool Attachments::CanCombineAmmo ( )
protected

Definition at line 213 of file attachments.c.

◆ CanEquip()

bool Attachments::CanEquip ( )
protected

Definition at line 224 of file attachments.c.

◆ Combine()

bool Attachments::Combine ( )
protected

Definition at line 235 of file attachments.c.

◆ EquipItem()

bool Attachments::EquipItem ( )
protected

Definition at line 263 of file attachments.c.

◆ GetAttachmentHeight()

int Attachments::GetAttachmentHeight ( )
protected

Definition at line 316 of file attachments.c.

◆ GetAttachmentSlotID()

int Attachments::GetAttachmentSlotID ( )
protected

Definition at line 616 of file attachments.c.

◆ GetFalseHeaderTextWidget()

TextWidget Attachments::GetFalseHeaderTextWidget ( )
protected

Definition at line 606 of file attachments.c.

◆ GetFocusedItem()

EntityAI Attachments::GetFocusedItem ( )
protected

Definition at line 104 of file attachments.c.

◆ GetFocusedSlot()

int Attachments::GetFocusedSlot ( )
protected

Definition at line 109 of file attachments.c.

◆ GetFocusedSlotsIcon()

SlotsIcon Attachments::GetFocusedSlotsIcon ( )
protected

Definition at line 99 of file attachments.c.

◆ GetItemSlots()

array< string > Attachments::GetItemSlots ( EntityAI e)
protected

Definition at line 563 of file attachments.c.

◆ GetRecipeCount()

int Attachments::GetRecipeCount ( bool recipe_anywhere,
EntityAI entity1,
EntityAI entity2 )
protected

Definition at line 199 of file attachments.c.

◆ GetSlotsSorted()

array< int > Attachments::GetSlotsSorted ( )
protected

Definition at line 411 of file attachments.c.

◆ GetWrapper()

AttachmentsWrapper Attachments::GetWrapper ( )
protected

Definition at line 44 of file attachments.c.

◆ InitAttachmentGrid()

void Attachments::InitAttachmentGrid ( int att_row_index)
protected

Definition at line 458 of file attachments.c.

◆ InspectItem()

bool Attachments::InspectItem ( )
protected

Definition at line 285 of file attachments.c.

◆ IsActive()

bool Attachments::IsActive ( )
protected

Definition at line 311 of file attachments.c.

◆ IsEmpty()

bool Attachments::IsEmpty ( )
protected

Definition at line 49 of file attachments.c.

◆ IsItemActive()

bool Attachments::IsItemActive ( )
protected

Definition at line 54 of file attachments.c.

◆ IsItemWithQuantityActive()

bool Attachments::IsItemWithQuantityActive ( )
protected

Definition at line 64 of file attachments.c.

◆ OnAttachmentReservationRelease()

void Attachments::OnAttachmentReservationRelease ( EntityAI item,
int slot_id )
protected

Definition at line 451 of file attachments.c.

◆ OnAttachmentReservationSet()

void Attachments::OnAttachmentReservationSet ( EntityAI item,
int slot_id )
protected

Definition at line 441 of file attachments.c.

◆ Select()

bool Attachments::Select ( )
protected

Definition at line 137 of file attachments.c.

◆ SelectItem()

bool Attachments::SelectItem ( )
protected

Definition at line 117 of file attachments.c.

◆ SelFirstActive()

void Attachments::SelFirstActive ( )
protected

Definition at line 94 of file attachments.c.

◆ SetActive()

void Attachments::SetActive ( bool active)
protected

Definition at line 89 of file attachments.c.

◆ SetAttachmentSlotID()

void Attachments::SetAttachmentSlotID ( int slotID)
protected

Definition at line 611 of file attachments.c.

◆ SetDefaultFocus()

void Attachments::SetDefaultFocus ( bool while_micromanagment_mode = false)
protected

Definition at line 79 of file attachments.c.

◆ SetFalseAttachmentsHeaderText()

void Attachments::SetFalseAttachmentsHeaderText ( string text)
protected

Definition at line 601 of file attachments.c.

◆ SetLastActive()

void Attachments::SetLastActive ( )
protected

Definition at line 84 of file attachments.c.

◆ ShowFalseAttachmentsHeader()

void Attachments::ShowFalseAttachmentsHeader ( bool show)
protected

Definition at line 596 of file attachments.c.

◆ SplitItem()

bool Attachments::SplitItem ( )
protected

Definition at line 249 of file attachments.c.

◆ TransferItem()

bool Attachments::TransferItem ( )
protected

Definition at line 274 of file attachments.c.

◆ TransferItemToVicinity()

bool Attachments::TransferItemToVicinity ( )
protected

Definition at line 296 of file attachments.c.

◆ UnfocusAll()

void Attachments::UnfocusAll ( )
protected

Definition at line 74 of file attachments.c.

◆ UpdateInterval()

void Attachments::UpdateInterval ( )
protected

Definition at line 321 of file attachments.c.

Member Data Documentation

◆ m_AttachmentIDOrdered

ref array<int> Attachments::m_AttachmentIDOrdered
protected

Definition at line 11 of file attachments.c.

◆ m_AttachmentsContainer

ref AttachmentsWrapper Attachments::m_AttachmentsContainer
protected

Definition at line 7 of file attachments.c.

◆ m_AttachmentSlotDisplayable

ref array<string> Attachments::m_AttachmentSlotDisplayable
protected

Definition at line 9 of file attachments.c.

◆ m_AttachmentSlotID

int Attachments::m_AttachmentSlotID = -1
protected

Definition at line 14 of file attachments.c.

◆ m_AttachmentSlotNames

ref array<string> Attachments::m_AttachmentSlotNames
protected

Definition at line 8 of file attachments.c.

◆ m_AttachmentSlots

ref map<int, SlotsIcon> Attachments::m_AttachmentSlots
protected

Definition at line 10 of file attachments.c.

◆ m_Entity

EntityAI Attachments::m_Entity
protected

Definition at line 6 of file attachments.c.

◆ m_Parent

Container Attachments::m_Parent
protected

Definition at line 5 of file attachments.c.

◆ m_RowIndex

int Attachments::m_RowIndex
protected

Definition at line 13 of file attachments.c.


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