OnCupboardProtectionCalculated
Usage
- No return behavior
Example Autogenerated
csharp
private void OnCupboardProtectionCalculated( BuildingPrivlidge instance, float cachedProtectedMinutes )
{
Puts( "OnCupboardProtectionCalculated works!" );
}Location
- BuildingPrivlidge::GetProtectedMinutes(bool force)
csharp
//---
{
return cachedProtectedMinutes;
}
nextProtectedCalcTime = Time.realtimeSinceStartup + 60f;
cachedProtectedMinutes = CalculateProtectedMinutes();
Interface.CallHook("OnCupboardProtectionCalculated", this, cachedProtectedMinutes);
return cachedProtectedMinutes;
}
return 0f;
}