21 lines
568 B
C#
21 lines
568 B
C#
// ReSharper disable CheckNamespace
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
using System.Globalization;
|
|
using MonoMod;
|
|
|
|
namespace MAI2System;
|
|
|
|
class patch_IniSection : IniSection
|
|
{
|
|
[MonoModIgnore]
|
|
public patch_IniSection(ref IniSection head, ref IniSection tail, string name, string value) : base(ref head, ref tail, name, value)
|
|
{
|
|
}
|
|
|
|
[MonoModReplace]
|
|
public new bool getFloatValue(out float value)
|
|
{
|
|
return float.TryParse(_variableValue, NumberStyles.Float, CultureInfo.InvariantCulture, out value);
|
|
}
|
|
} |