Skip to content

OnSolarPanelSunUpdate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • SolarPanel::SunUpdate()
csharp
//---
		}
		num = Mathf.FloorToInt((float)maximalPowerOutput * num2 * base.healthFraction);
	}
	bool num3 = currentEnergy != num;
	currentEnergy = num;
	if (num3 && Interface.CallHook("OnSolarPanelSunUpdate", this, num) == null)
	{
		MarkDirty();
	}
}

Released under the MIT License.