CanVendingAcceptItem
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanVendingAcceptItem( VendingMachine instance, Item item, int targetSlot )
{
Puts( "CanVendingAcceptItem works!" );
}
Location
- VendingMachine::CanAcceptItem(Item item, int targetSlot)
csharp
public bool CanAcceptItem(Item item, int targetSlot)
{
object returnvar = Interface.CallHook("CanVendingAcceptItem", this, item, targetSlot);
if (returnvar is bool)
{
return (bool)returnvar;
}
ItemContainer expr_29 = item.GetRootContainer();
//---