Skip to content

OnRefreshVendingStock

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnRefreshVendingStock( VendingMachine instance, ItemDefinition itemDef )
{
    Puts( "OnRefreshVendingStock works!" );
}

Location

  • VendingMachine::RefreshSellOrderStockLevel(ItemDefinition itemDef)
csharp
//---
				Func<Item, int> arg_82_1;
				if ((arg_82_1 = VendingMachine.<>c.<>9__24_0) == null)
				{
					arg_82_1 = (VendingMachine.<>c.<>9__24_0 = new Func<Item, int>(VendingMachine.<>c.<>9.<RefreshSellOrderStockLevel>b__24_0));
				}
				Interface.CallHook("OnRefreshVendingStock", this, itemDef);
				arg_8E_1 = arg_82_0.Sum(arg_82_1) / current.itemToSellAmount;
			}
			arg_8E_0.inStock = arg_8E_1;
			float itemCondition = 0f;
			float itemConditionMax = 0f;
//---

Released under the MIT License.