Shared.Inventory.Models.DeltaTransaction
Type JSONpublic class in Shared.Inventory.Models
Type metadata
- Assembly
Shared - Namespace
Shared.Inventory.Models - Base type
System.Object - Hash
089189C663FF8BE88059B60F6277E50CDC965297AB173A5D48D48427A1676550
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
Actions# | public | public System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction> Actions |
Inventories# | public | public Shared.Models.Items.SharedInventoryModel[] Inventories |
Length# | public | public System.Int32 Length |
_actionsHasFailed# | private | private System.Boolean _actionsHasFailed |
_nextActionIndex# | private | private System.Int32 _nextActionIndex |
_result# | private | private Shared.Inventory.DeltaModels.InventoryResult _result |
Methods
ApplyActions
#
private System.Void ApplyActions()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
9B482AD527E7970F88C25C222A1F35D3CE8A2781D875C7B0D8F50ABB25D84D70 - Body hash
CCA0298CF2EA8F79963CF7FF91E2D38C7F107D97BF7BA3B732FA66B52AD94DF4 - IL size78
Referenced calls
Shared.Inventory.InventoryApplyBridge.InventoryDeltaApplyBridge::GetInstance(Shared.Models.Items.SharedInventoryModel[])System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>::get_Item(System.Int32)Shared.Inventory.InventoryApplyEngine::TryApplyAction(Shared.Inventory.InventoryApplyBridge.IInventoryApplyBridge, Shared.Inventory.DeltaModels.DeltaAction)System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>::get_Count()
Build
#
public Shared.Inventory.DeltaModels.DeltaComplexResult Build()
Method metadata
- Visibilitypublic
- Return type
Shared.Inventory.DeltaModels.DeltaComplexResult - StaticFalse
- VirtualFalse
- Hash
2F6462B0BC217A327A1129FBC61E773959DB831473015F830D8CAA62AA2691F8 - Body hash
C2732B73E105399090770398ED0B3816C6A3D268A8F3781C8A11D900F8B9FEBC - IL size48
Called by
Shared.Inventory.ComplexInventoryDeltaEngine::Equipment_SimultaneousSwapShared.Inventory.ComplexInventoryDeltaEngine::FulfillAmountsFromInventoriesToInventoryShared.Inventory.ComplexInventoryDeltaEngine::LootAllShared.Inventory.ComplexInventoryDeltaEngine::LootAllFromManyShared.Inventory.ComplexInventoryDeltaEngine::LootAllIntoManyShared.Inventory.ComplexInventoryDeltaEngine::LootItemShared.Inventory.ComplexInventoryDeltaEngine::MoveItemAmountsFromInventoryToInventoryShared.Inventory.ComplexInventoryDeltaEngine::Player_LootItemEquipment
CloneInventory
#
private Shared.Models.Items.SharedInventoryModel CloneInventory(Shared.Models.Items.SharedInventoryModel inventory)
Method metadata
- Visibilityprivate
- Return type
Shared.Models.Items.SharedInventoryModel - StaticTrue
- VirtualFalse
- Hash
EC3AF1AEF277E39C577ED9661F7BCA88380402A7FFFB687B131C8ABF8679A090 - Body hash
65FA719C08CFBF46511EA8B49001D5166F40A4A2DD5437C37CF18AF0754518DA - IL size215
Referenced calls
Shared.Data.ItemDataBase::GetItemDataOrMissing(System.String)Shared.Models.Items.ItemInstanceModel::.ctor(Shared.Models.Items.ItemData)Shared.Models.Items.SharedInventoryModel::.ctor()
Example
#
private System.Void Example()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
D3A13E1BA87883A568CC9FEE15E646B28D469CC66772BE3BF531F17869F640CC - Body hash
1A53985FD384DB7D60CA59841F4C972027F5D5CCFA0B495167ECE03A8F840AA2 - IL size32
Referenced calls
System.Span<System.Int32>::.ctor(System.Void*, System.Int32)System.Span<System.Int32>::get_Item(System.Int32)
LootItem
#
public System.Boolean LootItem(System.Int32 sourceInventoryIndex, System.Int32 slotIndex, System.ReadOnlySpan<System.Boolean> allowPartialStack, System.ReadOnlySpan<System.Int32> targetInventories)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
87B0FEDAB0EF19A65ED55C0815BF68F26348979C0994F58A813E1CF44BE6E122 - Body hash
5FBF51DA60E808971C859606E4B0ECAADEA079D422EF4DEF3A15F7B87305AA38 - IL size63
Referenced calls
System.ReadOnlySpan<System.Int32>::get_Length()System.ReadOnlySpan<System.Int32>::get_Item(System.Int32)System.ReadOnlySpan<System.Boolean>::get_Item(System.Int32)Shared.Inventory.Models.DeltaTransaction::LootItem(System.Int32, System.Int32, System.Boolean, System.Int32)
LootItem
#
public System.Boolean LootItem(System.Int32 sourceInventoryIndex, System.Int32 sourceSlotIndex, System.Boolean allowPartialStack, System.Int32 targetInventoryIndex)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
5B547CCE09889FEF01463CDF8D29B772911037AF2D339AB3FBB9E4D762F9A0B9 - Body hash
D4791B45AC5237FDD7EF7E005E893494C1A85B98F3D7EA76C69168E7054A3DEB - IL size269
Referenced calls
Shared.Inventory.InventoryDeltaEngine::MoveAmountIntoExistingStacks(System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>, Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Int32, System.Int32&)Shared.Inventory.Models.DeltaTransaction::ApplyActions()Shared.Models.Items.SharedInventoryModel::FilterAcceptsItem(Shared.Models.Items.ItemInstanceModel)Shared.Models.Items.SharedInventoryModel::SlotAcceptsItem(Shared.Models.Items.ItemInstanceModel, System.Int32)Shared.Inventory.InventoryDeltaEngine::SwapSlots(Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Int32)System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>::Add(!0)Shared.Inventory.Exceptions.InventoryDeltaException::.ctor(System.String)
Called by
String literals
LootItem: Amount to move was less than 0. Something has gone wrong.
Move
#
public System.Boolean Move(System.Int32 sourceInventoryIndex, System.Int32 amount, System.String itemDataId, Shared.Inventory.Models.SearchStrategy sourceSearchStrategy, System.Boolean allowPartialStack, System.Int32 targetInventoryIndex)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
F43B45B91EB0B2F60980E4A1B55CF17EAD123A973840F8323588852667357810 - Body hash
7B4001F0E92BEE6F4A4D58FCC9065C9292C9F7A6B184CE7976B136DCECEEB488 - IL size37
Move
#
public System.Boolean Move(System.Int32 sourceInventoryIndex, System.Int32 amount, System.String itemDataId, Shared.Inventory.Models.SearchStrategy sourceSearchStrategy, System.ReadOnlySpan<System.Boolean> allowPartialStack, System.ReadOnlySpan<System.Int32> targetInventories)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
74FAD4416FEA8359724CA992BC74AAD5CF1CE1D8665C60C1E58F1799B4878F22 - Body hash
E40D27AC7500A3DB482FCCD56170C688B13759DCF98B3E57662F65C67E99F087 - IL size66
Referenced calls
System.ReadOnlySpan<System.Int32>::get_Length()System.ReadOnlySpan<System.Int32>::get_Item(System.Int32)System.ReadOnlySpan<System.Boolean>::get_Item(System.Int32)Shared.Inventory.Models.DeltaTransaction::Move(System.Int32, System.Int32, System.String, Shared.Inventory.Models.SearchStrategy, System.Boolean, System.Int32)
MoveMoney
#
public System.Boolean MoveMoney(System.Int32 sourceInventoryIndex, System.UInt64 moneyAmount, Shared.Inventory.Models.SearchStrategy sourceSearchStrategy, System.Boolean allowPartialStack, System.Int32 targetInventoryIndex)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
F8BD8DD6BD705A2D86304730F245AB266016E137035F68EA5DF63620B23934C3 - Body hash
058D8A311F174900032A9522565022B2E30E408B1A8D500B063F829FD8B3DCF7 - IL size36
Referenced calls
MoveMoney_ReturnRest
#
public System.ValueTuple<System.UInt64, System.Boolean> MoveMoney_ReturnRest(System.Int32 sourceInventoryIndex, System.UInt64 moneyAmount, Shared.Inventory.Models.SearchStrategy sourceSearchStrategy, System.Int32 targetInventoryIndex)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.UInt64, System.Boolean> - StaticFalse
- VirtualFalse
- Hash
4384FEFE4071A16A788847FAC4D1620C41E5205D7BD4066D6B7456D7D1025258 - Body hash
C808BA7CDB9F4F7ED3F32883E67D36C08BEFF76C73367A141466715EFFED5E2B - IL size637
Referenced calls
Shared.Models.Items.SharedInventoryModel::HasMoneyField()Shared.Inventory.DeltaModels.DeltaAction::MoveMoney(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.SharedInventoryModel, System.UInt64)System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>::Add(!0)Shared.Inventory.Models.DeltaTransaction::ApplyActions()System.ValueTuple<System.UInt64, System.Boolean>::.ctor(!0, !1)Shared.Helpers.MoneyHelper::GetCoinAmountForMoney(System.UInt64, System.Int32)Shared.Inventory.InventoryDeltaEngine::MoveCoinTypeIntoItems(System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>, Shared.Models.Items.SharedInventoryModel, System.Int32, System.Int32, Shared.Models.Items.SharedInventoryModel, System.UInt64&)Shared.Inventory.InventoryDeltaEngine::MoveMoneyItemsIntoMoney_Coin(System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>, Shared.Models.Items.SharedInventoryModel, Shared.Inventory.Models.SearchStrategy, System.Int32, System.UInt64, Shared.Models.Items.SharedInventoryModel, System.UInt64&, System.UInt64&)Shared.Inventory.Models.SlotsEnumerator::.ctor(Shared.Models.Items.SharedInventoryModel, Shared.Inventory.Models.SearchStrategy)Shared.Helpers.MoneyHelper::GetCoinItemId(System.Int32)Shared.Inventory.Models.SlotsEnumerator::Index()System.String::op_Inequality(System.String, System.String)Shared.Helpers.MoneyHelper::GetMultiplierForCoinType(System.Int32)Shared.Inventory.DeltaModels.DeltaAction::SplitMoneyItemIntoNewMoneyItem(Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Int32, System.Int32)Shared.Inventory.Models.SlotsEnumerator::Increment()System.Span<System.Int32>::.ctor(System.Void*, System.Int32)Shared.Helpers.MoneyHelper::CreateCoinsArrayForMoney(System.UInt64, System.Span<System.Int32>)System.Span<System.Int32>::get_Item(System.Int32)Shared.Inventory.Models.DeltaTransaction::Move_ReturnRest(System.Int32, System.Int32, System.String, Shared.Inventory.Models.SearchStrategy, System.Int32)
Move_ReturnRest
#
public System.ValueTuple<System.Int32, System.Boolean> Move_ReturnRest(System.Int32 sourceInventoryIndex, System.Int32 amount, System.String itemDataId, Shared.Inventory.Models.SearchStrategy sourceSearchStrategy, System.Int32 targetInventoryIndex)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.Int32, System.Boolean> - StaticFalse
- VirtualFalse
- Hash
971AFF8460C904EF9A40F9F750E2F64DAEAD066DA9178157477B27F596101294 - Body hash
856AA9F0AAE021B280F3C7BC1A18FD2440195E28704CF48C8E43266EDE71AC93 - IL size356
Referenced calls
Shared.Inventory.Models.SlotsEnumerator::.ctor(Shared.Models.Items.SharedInventoryModel, Shared.Inventory.Models.SearchStrategy)Shared.Inventory.Models.SlotsEnumerator::Index()System.String::op_Inequality(System.String, System.String)System.Math::Min(System.Int32, System.Int32)Shared.Inventory.InventoryDeltaEngine::MoveAmountIntoExistingStacks(System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>, Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Int32, System.Int32&)System.ValueTuple<System.Int32, System.Boolean>::.ctor(!0, !1)Shared.Inventory.Models.DeltaTransaction::ApplyActions()Shared.Models.Items.SharedInventoryModel::FilterAcceptsItem(Shared.Models.Items.ItemInstanceModel)Shared.Models.Items.SharedInventoryModel::SlotAcceptsItem(Shared.Models.Items.ItemInstanceModel, System.Int32)Shared.Inventory.InventoryDeltaEngine::MoveAmount(Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Int32, System.Int32)System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>::Add(!0)Shared.Inventory.Models.SlotsEnumerator::Increment()Shared.Inventory.Exceptions.InventoryDeltaException::.ctor(System.String)
Called by
String literals
Move: Amount was less than 0. Something has gone wrong.
Swap
#
public System.Boolean Swap(System.Int32 sourceInventoryIndex, System.Int32 sourceSlotIndex, System.Int32 targetInventoryIndex, System.Int32 targetSlotIndex)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
91DC2F1290E9F4CDFC97FD305216A4F800CAB859E0E28275F900BE2B299B0A79 - Body hash
1941195081509A382354141BD902F93F9C7C6B89CCBFECCF7B693799F9C4CD84 - IL size62
Referenced calls
Shared.Inventory.InventoryDeltaEngine::SwapSlots(Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Int32)System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>::Add(!0)Shared.Inventory.Models.DeltaTransaction::ApplyActions()
VerifyNoActionsHaveBeenAdded
#
private System.Boolean VerifyNoActionsHaveBeenAdded()
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
71B16E61B06E9FFA5A1E840A9495E4675F80C295E32AE67CA5A0B6C5752ABF5B - Body hash
2B413B6777EFD29B471F6EA5B315F3F08159A608383A6B60ACD407D8B7CAA8D2 - IL size20
Referenced calls
System.Collections.Generic.List<Shared.Inventory.DeltaModels.DeltaAction>::get_Count()