mirror of
https://github.com/FalloutCollaborationProject/FCP-Tools.git
synced 2026-07-27 16:59:37 -07:00
22 lines
710 B
C#
22 lines
710 B
C#
using System.Reflection;
|
|
using HarmonyLib;
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace FCP.Core.Access;
|
|
|
|
[StaticConstructorOnStartup]
|
|
internal static class AccessExtensions_CompRefuelable
|
|
{
|
|
private static readonly MethodInfo m_ConsumptionRatePerTick_Get =
|
|
AccessTools.PropertyGetter(typeof(CompRefuelable), "ConsumptionRatePerTick");
|
|
|
|
private static readonly Func<CompRefuelable, float> ConsumptionRatePerTick_Get =
|
|
AccessTools.MethodDelegate<Func<CompRefuelable, float>>(m_ConsumptionRatePerTick_Get);
|
|
|
|
static AccessExtensions_CompRefuelable()
|
|
{
|
|
}
|
|
|
|
internal static float GetConsumptionRatePerTick(this CompRefuelable comp) => ConsumptionRatePerTick_Get(comp);
|
|
} |