Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс CargoBase

represents base for cargo storage for entities Подробнее...

+ Граф наследования:CargoBase:

Закрытые члены

proto native EntityAI GetCargoOwner ()
 get the entity that owns the cargo
 
proto native int GetOwnerCargoIndex ()
 
proto native bool IsProxyCargo ()
 
proto native int GetItemCount ()
 
proto native EntityAI GetItem (int index)
 
proto native int GetWidth ()
 
proto native int GetHeight ()
 
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 FindEntityInCargo (notnull EntityAI e)
 
void CargoBase ()
 
void ~CargoBase ()
 
bool CanReceiveItemIntoCargo (EntityAI item)
 condition EntityAI::CanReceiveItemIntoCargo for Cargo.
 
bool CanSwapItemInCargo (EntityAI child_entity, EntityAI new_entity)
 condition EntityAI::CanSwapItemInCargo for Cargo.
 
proto native int GetUserReservedLocationCount ()
 
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 void SetUserReservedLocation (notnull EntityAI eai)
 
proto native void ClearUserReservedLocation (notnull EntityAI eai)
 
- Закрытые члены унаследованные от Managed
void IntroSceneCharacter ()
 
void ~IntroSceneCharacter ()
 
bool IsDefaultCharacter ()
 
void SetToDefaultCharacter ()
 
void SetCharacterID (int char_id)
 
int GetCharacterID ()
 
PlayerBase GetCharacterObj ()
 
TStringArray GetCharGenderList ()
 
TStringArray GetCharList (ECharGender gender)
 
TStringArray GetCharShirtsList ()
 
TStringArray GetCharPantsList ()
 
TStringArray GetCharShoesList ()
 
void SetCharacterGender (ECharGender gender)
 
bool IsCharacterFemale ()
 
ECharGender GetCharacterGender ()
 
vector GetPosition ()
 
int GetNextCharacterID ()
 
int GetPrevCharacterID ()
 
void CreateNewCharacterRandom ()
 
void CreateNewCharacterById (int character_id)
 
void CreateNewCharacterByName (string character_name, bool randomize_equip=true)
 
void CreateDefaultCharacter ()
 
void GetLastPlayedServer (int characterID, out string address, out string name, out int port)
 
void CreateNewCharacter ()
 
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 CharacterUnload ()
 
void CharacterLoad (int character_id, vector char_pos, vector char_rot)
 
void SetupPlayerName (bool new_name)
 
void SetAttachment (string type, int slot)
 
string GetCharacterNameById (int char_id)
 
string GetCharacterName ()
 
void SaveCharName (string name)
 
void SaveDefaultCharacter ()
 
void TransferValues (PlayerBase player)
 
void Init ()
 
void OnScheduledTick (float deltatime)
 
void CheckValues ()
 
float GetBlood ()
 
float GetHealth ()
 
void CheckHealth ()
 
void CheckBlood ()
 
void SendInitValues ()
 Sends values on object creation.
 
void SendValue (int value_type, float value)
 
void ReceiveValue (int value_type, float value)
 
void OnRPC (ParamsReadContext ctx)
 
void ShowDebugValues (bool show)
 
void BleedingIndicator (int source_ID, int severity, GameplayEffectsDataBleeding parent)
 
void InitIndicator (vector position)
 
void StopIndicator (bool instant=false)
 
void StartRunningDrops ()
 
bool IsRunningDrops ()
 Are any drops currently being animated?
 
void TrySpawnNextDrop ()
 
void ResetSequence ()
 
void ResetIndicator ()
 
void Update (float timeSlice)
 
bool GetEndNow ()
 
int GetSeverity ()
 
void GameplayEffectsData (array< ref Widget > input, int type, int user_override=-1)
 
void Init (array< ref Widget > input, int type, Widget layout_root, int user_override=-1)
 
array< ref WidgetGetWidgetSet ()
 
int GetWidgetSetType ()
 
int GetWidgetSetID ()
 
bool HasDefinedHandle ()
 Returns 'true' if this class contains update info.
 
bool DataInitialized ()
 
void UpdateVisibility (bool state)
 
void RegisterData (Param p)
 
void Update (float timeSlice=0, Param p=null, int handle=-1)
 
void ForceStop ()
 

Дополнительные унаследованные члены

- Закрытые данные унаследованные от Managed
int m_CharacterId
 
string m_CharacterType
 
MenuData m_CharacterDta
 
PlayerBase m_CharacterObj
 
vector m_CharacterPos
 
vector m_CharacterRot
 
ref TStringArray m_CharGenderList = new TStringArray
 
ref TStringArray m_CharShirtList = new TStringArray
 
ref TStringArray m_CharPantsList = new TStringArray
 
ref TStringArray m_CharShoesList = new TStringArray
 
ref map< ECharGender, ref array< string > > m_Characters = new map<ECharGender, ref array<string>>
 
ECharGender m_CharGender
 
bool m_InitialSyncSent
 
bool m_Initialized
 
bool m_Terminating = false
 
bool m_EndNow = false
 
bool m_IsRunning = false
 
int m_DropSpawnsQueued
 
int m_ActiveDropsCount
 
int m_Severity
 
int m_SourceID
 
GameplayEffectsDataBleeding m_ParentMetaData
 
array< floatm_DropProbabilityArray
 
float m_AverageFrequency
 
float m_SequenceTick
 
float m_SequenceDuration
 
float m_TimeElapsedTotal
 
float m_TimeElapsedSequence
 
float m_LastDropSpawnTime
 
float m_DropSpawnMinDelay
 
float m_DropSpawnMaxDelay
 
int m_CurrentDropProbabilityStep
 
int m_DropProbabilityRollsCount
 
vector m_BasePosition
 
ref set< ref BleedingIndicatorDropDatam_ActiveDrops
 
ref set< intm_CleanupQueue
 
ref array< ref Widgetm_WidgetArray
 
int m_Type
 
int m_WidgetSetIdentifier
 
Widget m_LayoutRoot
 

Подробное описание

represents base for cargo storage for entities

@NOTE: rows == y axis

Конструктор(ы)

◆ CargoBase()

void CargoBase ( )
private

◆ ~CargoBase()

void ~CargoBase ( )
private

Методы

◆ CanReceiveItemIntoCargo()

CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate

condition EntityAI::CanReceiveItemIntoCargo for Cargo.

Возвращает
true if cargo can be added, false otherwise
65{ return true; }

◆ CanSwapItemInCargo()

CanSwapItemInCargo ( EntityAI child_entity,
EntityAI new_entity )
inlineprivate

condition EntityAI::CanSwapItemInCargo for Cargo.

Возвращает
true if cargo can be added, false otherwise
71{ return true; }

◆ ClearUserReservedLocation()

proto native void ClearUserReservedLocation ( notnull EntityAI eai)
private

◆ FindEntityInCargo()

FindEntityInCargo ( notnull EntityAI e)
private
Возвращает
find internal index of the entity in cargo or -1 if not found

◆ GetCargoOwner()

GetCargoOwner ( )
private

get the entity that owns the cargo

Возвращает
cargo owner

◆ GetHeight()

GetHeight ( )
private
Возвращает
height of the cargo

Используется в Container::GetMaxCargoCapacity().

◆ GetItem()

GetItem ( int index)
private
Возвращает
get item at specific index

Используется в Container::AddedToCargoEx(), Container::GetIcon(), Container::RemovedFromCargo() и Container::SetEntity().

◆ GetItemCount()

GetItemCount ( )
private
Возвращает
number of items in cargo

Используется в Container::AddedToCargoEx(), Container::GetCargoCapacity(), Container::GetIcon(), Container::RemovedFromCargo() и Container::SetEntity().

◆ GetItemRowCol()

GetItemRowCol ( int index,
out int row,
out int col )
private
Аргументы
[out]rowreturned row of the item at internal index
[out]colreturned col. 0 on xbox

◆ GetItemSize()

GetItemSize ( int index,
out int w,
out int h )
private
Аргументы
[out]wreturned width of the item at internal index
[out]hreturned height of the item at internal index

Используется в Container::GetCargoCapacity().

◆ GetOwnerCargoIndex()

proto native int GetOwnerCargoIndex ( )
private

◆ GetUserReservedLocation()

GetUserReservedLocation ( int index,
out EntityAI eai,
out int row,
out int col,
out int w,
out int h,
out int flp )
private
Аргументы
[in]idxindex of the user reserved location
[out]eaireturned entity of the user reservation at internal index
[out]rowreturned row of the user reservation at internal index
[out]colreturned col
[out]wreturned width of the user reservation at internal index
[out]hreturned height of the user reservation at internal index
[out]flpreturned flip
Возвращает
true if record found, false otherwise

◆ GetUserReservedLocationCount()

proto native int GetUserReservedLocationCount ( )
private

◆ GetWidth()

GetWidth ( )
private
Возвращает
width of the cargo

Используется в Container::GetMaxCargoCapacity().

◆ IsProxyCargo()

IsProxyCargo ( )
private
Возвращает
true if cargo is in proxy object

◆ SetUserReservedLocation()

proto native void SetUserReservedLocation ( notnull EntityAI eai)
private

Объявления и описания членов класса находятся в файле: