Skip to content

CanBeRecycled

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanBeRecycled( Item item, Recycler instance )
{
    Puts( "CanBeRecycled works!" );
}

Location

  • Recycler::CanBeRecycled(Item item)
csharp
private bool CanBeRecycled(Item item)
{
	object returnvar = Interface.CallHook("CanBeRecycled", item, this);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return item != null && item.info.Blueprint != null;
//---

Released under the MIT License.