DIFF

class CargoBaseSource

CargoBase Managed

Derived classes

All members, including inherited

represents base for cargo storage for entities

@NOTE: rows == y axis

Constructors 2

private void CargoBase()
private void ~CargoBase()

Methods 16

proto native EntityAI GetCargoOwner()

get the entity that owns the cargo

Returns: cargo owner

proto native int GetOwnerCargoIndex()

get index of this cargo in the entity that owns the cargo

Returns: owner's index of this cargo

proto native bool IsProxyCargo()

Returns: true if cargo is in proxy object

proto native int GetItemCount()

Returns: number of items in cargo

Referenced by ActionPackGift.ActionCondition(), ActionTargetsCursor.AttachmentsWithInventoryOrCargoCount(), ActionUnpackGift.OnFinishProgressServer()
Show 45 more, AnniversaryBox.EmtpyInventory(), Barrel_ColorBase.BleachClothes(), Barrel_ColorBase.ColourClothes(), Barrel_ColorBase.ColourLeatherClothes(), Barrel_ColorBase.OnFreezeStateChangeServer(), Barrel_ColorBase.TanPelts(), Bottle_Base.OnFreezeStateChangeServer(), CachedEquipmentStorage.ProcessCargo(), CargoContainer.AddedToCargoEx(), CargoContainer.GetCargoCapacity(), CargoContainer.GetIcon(), CargoContainer.RemovedFromCargo(), CargoContainer.SetEntity(), ContainerWithCargo.DraggingOverGrid(), ContainerWithCargo.DropReceived(), ContainerWithCargoAndAttachments.DropReceived(), Cooking.CookWithEquipment(), Cooking.GetCookingMethodWithTimeOverride(), Cooking.GetItemTypeFromCargo(), Cooking.TerminateCookingSounds(), DayZPlayerInventory.SendRepairToClientDst(), EntityAI.FixEntity(), EntityAI.GetInventoryAndCargoWeight(), EntityAI.HasAnyCargo(), Environment.ApplyDrynessToItemEx(), Environment.ApplyWetnessToItem(), Environment.BodyPartHeatProperties(), Environment.ProcessItemHierarchyRecursive(), FireplaceBase.BurnItemsInFireplace(), FireplaceBase.IsCargoEmpty(), FireplaceBase.IsEmpty(), FireplaceBase.StopCooling(), HandsContainer.DropReceived(), ItemBase.CanReceiveAttachment(), ItemBase.DamageItemInCargo(), ItemBase.EEHealthLevelChanged(), ItemBase.GetNumberOfItems(), MiscGameplayFunctions.ThrowAllItemsInInventory(), PlateCarrierPouches.CanLoadItemIntoCargo(), PlateCarrierPouches.CanReceiveItemIntoCargo(), PlayerBase.GetMagazineToReload(), PluginInventoryRepair.MoveItemToCorrectPosition(), TentBase.CanBePacked(), UndergroundStash.GetStashedItem(), and UniversalTemperatureSourceLambdaBaseImpl.UpdateVicinityTemperatureRecursive()
proto bool GetItemRowCol(int index, out int row, out int col)
out row
returned row of the item at internal index
out col
returned col. 0 on xbox
proto bool GetItemSize(int index, out int w, out int h)
out w
returned width of the item at internal index
out h
returned height of the item at internal index
proto native int FindEntityInCargo(notnull EntityAI e)

Returns: find internal index of the entity in cargo or -1 if not found

bool CanReceiveItemIntoCargo(EntityAI item)

condition EntityAI::CanReceiveItemIntoCargo for Cargo.

Returns: true if cargo can be added, false otherwise

bool CanSwapItemInCargo(EntityAI child_entity, EntityAI new_entity)

condition EntityAI::CanSwapItemInCargo for Cargo.

Returns: true if cargo can be added, false otherwise

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)
in idx
index of the user reserved location
out eai
returned entity of the user reservation at internal index
out row
returned row of the user reservation at internal index
out col
returned col
out w
returned width of the user reservation at internal index
out h
returned height of the user reservation at internal index
out flp
returned flip

Returns: true if record found, false otherwise

proto native void SetUserReservedLocation(notnull EntityAI eai)
proto native void ClearUserReservedLocation(notnull EntityAI eai)