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_BD_1;
				if ((arg_BD_1 = VendingMachine.<>c.<>9__27_0) == null)
				{
					arg_BD_1 = (VendingMachine.<>c.<>9__27_0 = new Func<Item, int>(VendingMachine.<>c.<>9.<RefreshSellOrderStockLevel>b__27_0));
				}
				Interface.CallHook("OnRefreshVendingStock", this, itemDef);
				arg_C5_1 = arg_BD_0.Sum(arg_BD_1) / num2;
			}
			arg_C5_0.inStock = arg_C5_1;
			float itemCondition = 0f;
			float itemConditionMax = 0f;
//---

Released under the MIT License.