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

represents base for cargo storage for entities More...

Private Member Functions

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)
 
private void CargoBase ()
 
private 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)
 

Detailed Description

represents base for cargo storage for entities

@NOTE: rows == y axis

Constructor & Destructor Documentation

◆ CargoBase()

private void CargoBase ( )
private

◆ ~CargoBase()

private void ~CargoBase ( )
private

Member Function Documentation

◆ CanReceiveItemIntoCargo()

CanReceiveItemIntoCargo ( EntityAI  item)
inlineprivate

condition EntityAI::CanReceiveItemIntoCargo for Cargo.

Returns
true if cargo can be added, false otherwise

◆ CanSwapItemInCargo()

CanSwapItemInCargo ( EntityAI  child_entity,
EntityAI  new_entity 
)
inlineprivate

condition EntityAI::CanSwapItemInCargo for Cargo.

Returns
true if cargo can be added, false otherwise

◆ ClearUserReservedLocation()

proto native void ClearUserReservedLocation ( notnull EntityAI  eai)
private

◆ FindEntityInCargo()

FindEntityInCargo ( notnull EntityAI  e)
private
Returns
find internal index of the entity in cargo or -1 if not found

◆ GetCargoOwner()

GetCargoOwner ( )
private

get the entity that owns the cargo

Returns
cargo owner

Referenced by VicinityContainer::UpdateInterval().

◆ GetHeight()

◆ GetItem()

◆ GetItemCount()

◆ GetItemRowCol()

GetItemRowCol ( int  index,
out int  row,
out int  col 
)
private
Parameters
[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
Parameters
[out]wreturned width of the item at internal index
[out]hreturned height of the item at internal index

Referenced by 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
Parameters
[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
Returns
true if record found, false otherwise

◆ GetUserReservedLocationCount()

proto native int GetUserReservedLocationCount ( )
private

◆ GetWidth()

◆ IsProxyCargo()

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: