Skip to content

OnSolarPanelSunUpdate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnSolarPanelSunUpdate( SolarPanel instance, int num )
{
    Puts( "OnSolarPanelSunUpdate works!" );
}

Location

  • SolarPanel::SunUpdate()
csharp
//---
	}
	bool arg_B3_0 = this.currentEnergy != num;
	this.currentEnergy = num;
	if (arg_B3_0)
	{
		if (Interface.CallHook("OnSolarPanelSunUpdate", this, num) != null)
		{
			return;
		}
		this.MarkDirty();
	}
//---

Released under the MIT License.