Skip to content

OnInputUpdate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnInputUpdate( IOEntity instance, int inputAmount, int inputSlot )
{
    Puts( "OnInputUpdate works!" );
}

Location

  • IOEntity::UpdateFromInput(int inputAmount, int inputSlot)
csharp
public virtual void UpdateFromInput(int inputAmount, int inputSlot)
{
	if (Interface.CallHook("OnInputUpdate", this, inputAmount, inputSlot) != null)
	{
		return;
	}
	if (this.inputs[inputSlot].type != this.ioType || this.inputs[inputSlot].type == IOEntity.IOType.Industrial)
	{
//---

Released under the MIT License.