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

represents base for cargo storage for entities More...

Inheritance diagram for CargoBase:
Managed CargoGrid

Private Member Functions

void CargoBase ()
void ~CargoBase ()
bool CanReceiveItemIntoCargo (EntityAI item)
bool CanSwapItemInCargo (EntityAI child_entity, EntityAI new_entity)
proto native void ClearUserReservedLocation (notnull EntityAI eai)
proto native int FindEntityInCargo (notnull EntityAI e)
proto native EntityAI GetCargoOwner ()
 get the entity that owns the cargo
proto native int GetHeight ()
proto native EntityAI GetItem (int index)
proto native int GetItemCount ()
proto bool GetItemRowCol (int index, out int row, out int col)
proto bool GetItemSize (int index, out int w, out int h)
proto native int GetOwnerCargoIndex ()
proto bool GetUserReservedLocation (int index, out EntityAI eai, out int row, out int col, out int w, out int h, out int flp)
proto native int GetUserReservedLocationCount ()
proto native int GetWidth ()
proto native bool IsProxyCargo ()
proto native void SetUserReservedLocation (notnull EntityAI eai)
Private Member Functions inherited from Managed
void ~IntroSceneCharacter ()
void BleedingIndicator (int source_ID, int severity, GameplayEffectsDataBleeding parent)
void CharacterLoad (int character_id, vector char_pos, vector char_rot)
void CharacterUnload ()
void CheckBlood ()
void CheckHealth ()
void CheckValues ()
void CreateDefaultCharacter ()
void CreateNewCharacter ()
void CreateNewCharacterById (int character_id)
void CreateNewCharacterByName (string character_name, bool randomize_equip=true)
void CreateNewCharacterRandom ()
bool DataInitialized ()
void ForceStop ()
void GameplayEffectsData (array< ref Widget > input, int type, int user_override=-1)
float GetBlood ()
ECharGender GetCharacterGender ()
int GetCharacterID ()
string GetCharacterName ()
string GetCharacterNameById (int char_id)
PlayerBase GetCharacterObj ()
TStringArray GetCharGenderList ()
TStringArray GetCharList (ECharGender gender)
TStringArray GetCharPantsList ()
TStringArray GetCharShirtsList ()
TStringArray GetCharShoesList ()
bool GetEndNow ()
float GetHealth ()
void GetLastPlayedServer (int characterID, out string address, out string name, out int port)
void GetLastPlayedServerEx (int characterID, out string address, out string name, out int port, out int steamQueryPort)
int GetNextCharacterID ()
vector GetPosition ()
int GetPrevCharacterID ()
int GetSeverity ()
array< ref WidgetGetWidgetSet ()
int GetWidgetSetID ()
int GetWidgetSetType ()
bool HasDefinedHandle ()
 Returns 'true' if this class contains update info.
void Init ()
void Init (array< ref Widget > input, int type, Widget layout_root, int user_override=-1)
void InitIndicator (vector position)
void IntroSceneCharacter ()
bool IsCharacterFemale ()
bool IsDefaultCharacter ()
bool IsRunningDrops ()
 Are any drops currently being animated?
void LoadCharacterData (vector char_pos, vector char_rot, bool default_char=false)
 Generates random equip for the new IntroSceneCharacter, whatever is defined in 'cfgCharacterCreation'.
void OnRPC (ParamsReadContext ctx)
void OnScheduledTick (float deltatime)
void ReceiveValue (int value_type, float value)
void RegisterData (Param p)
void ResetIndicator ()
void ResetSequence ()
void SaveCharName (string name)
void SaveDefaultCharacter ()
void SendInitValues ()
 Sends values on object creation.
void SendValue (int value_type, float value)
void SetAttachment (string type, int slot)
void SetCharacterGender (ECharGender gender)
void SetCharacterID (int char_id)
void SetToDefaultCharacter ()
void SetupPlayerName (bool new_name)
void ShowDebugValues (bool show)
void StartRunningDrops ()
void StopIndicator (bool instant=false)
void TransferValues (PlayerBase player)
void TrySpawnNextDrop ()
void Update (float timeSlice)
void Update (float timeSlice=0, Param p=null, int handle=-1)
void UpdateVisibility (bool state)

Additional Inherited Members

Private Attributes inherited from Managed
ref set< ref BleedingIndicatorDropDatam_ActiveDrops
int m_ActiveDropsCount
float m_AverageFrequency
vector m_BasePosition
MenuData m_CharacterDta
int m_CharacterId
PlayerBase m_CharacterObj
vector m_CharacterPos
vector m_CharacterRot
ref map< ECharGender, ref array< string > > m_Characters = new map<ECharGender, ref array<string>>
string m_CharacterType
ECharGender m_CharGender
ref TStringArray m_CharGenderList = new TStringArray
ref TStringArray m_CharPantsList = new TStringArray
ref TStringArray m_CharShirtList = new TStringArray
ref TStringArray m_CharShoesList = new TStringArray
ref set< intm_CleanupQueue
int m_CurrentDropProbabilityStep
array< floatm_DropProbabilityArray
int m_DropProbabilityRollsCount
float m_DropSpawnMaxDelay
float m_DropSpawnMinDelay
int m_DropSpawnsQueued
bool m_EndNow = false
bool m_Initialized
bool m_InitialSyncSent
bool m_IsRunning = false
float m_LastDropSpawnTime
Widget m_LayoutRoot
GameplayEffectsDataBleeding m_ParentMetaData
float m_SequenceDuration
float m_SequenceTick
int m_Severity
int m_SourceID
bool m_Terminating = false
float m_TimeElapsedSequence
float m_TimeElapsedTotal
int m_Type
ref array< ref Widgetm_WidgetArray
int m_WidgetSetIdentifier

Detailed Description

represents base for cargo storage for entities

@NOTE: rows == y axis

Definition at line 6 of file cargo.c.

Constructor & Destructor Documentation

◆ CargoBase()

void CargoBase ( )
private

◆ ~CargoBase()

void ~CargoBase ( )
private

Member Function Documentation

◆ CanReceiveItemIntoCargo()

bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate

Definition at line 65 of file cargo.c.

Referenced by Entity::CanReceiveItemIntoCargo().

◆ CanSwapItemInCargo()

bool CanSwapItemInCargo ( EntityAI child_entity,
EntityAI new_entity )
inlineprivate

Definition at line 71 of file cargo.c.

Referenced by Entity::CanSwapItemInCargo().

◆ ClearUserReservedLocation()

proto native void ClearUserReservedLocation ( notnull EntityAI eai)
private

◆ FindEntityInCargo()

proto native int FindEntityInCargo ( notnull EntityAI e)
private

◆ GetCargoOwner()

proto native EntityAI GetCargoOwner ( )
private

get the entity that owns the cargo

Returns
cargo owner

Referenced by VicinityContainer::UpdateInterval().

◆ GetHeight()

◆ GetItem()

◆ GetItemCount()

◆ GetItemRowCol()

proto bool GetItemRowCol ( int index,
out int row,
out int col )
private

◆ GetItemSize()

proto bool GetItemSize ( int index,
out int w,
out int h )
private

◆ GetOwnerCargoIndex()

proto native int GetOwnerCargoIndex ( )
private

◆ GetUserReservedLocation()

proto bool GetUserReservedLocation ( int index,
out EntityAI eai,
out int row,
out int col,
out int w,
out int h,
out int flp )
private

◆ GetUserReservedLocationCount()

proto native int GetUserReservedLocationCount ( )
private

◆ GetWidth()

◆ IsProxyCargo()

proto native bool IsProxyCargo ( )
private
Returns
true if cargo is in proxy object

◆ SetUserReservedLocation()

proto native void SetUserReservedLocation ( notnull EntityAI eai)
private

The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/3_game/systems/inventory/cargo.c