Files
rmbgame 798355e342 更新目录结构
新增反代脚本只对Steam内置浏览器生效的选项
2021-01-06 04:30:56 +08:00

43 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace SteamTool.Model
{
public class FloatStatInfo : StatInfo
{
public float OriginalValue { get; set; }
public float FloatValue { get; set; }
public float MinValue { get; set; }
public float MaxValue { get; set; }
public float MaxChange { get; set; }
public bool IncrementOnly { get; set; }
public float DefaultValue { get; set; }
public override object Value
{
get { return this.FloatValue; }
set
{
var b = float.TryParse((string)value, out float f);
if (b)
{
if ((this.Permission & 2) != 0 && this.FloatValue != f)
{
//this.FloatValue = this.FloatValue;
}
else
{
this.FloatValue = f;
}
}
}
}
public override bool IsModified
{
get { return this.FloatValue.Equals(this.OriginalValue) == false; }
}
}
}