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
//---
		}
		else
		{
			List<Item> source = obj;
			Func<Item, int> selector = (Item x) => x.amount;
			Interface.CallHook("OnRefreshVendingStock", this, itemDef);
			inStock = source.Sum(selector) / num2;
		}
		sellOrder.inStock = inStock;
		float itemCondition = 0f;
		float itemConditionMax = 0f;
//---

Released under the MIT License.