mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-18 14:41:26 +08:00
798355e342
新增反代脚本只对Steam内置浏览器生效的选项
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Text;
|
|
|
|
namespace SteamTool.Model
|
|
{
|
|
[Flags]
|
|
public enum StatFlags
|
|
{
|
|
[Description("默认")]
|
|
None = 0,
|
|
[Description("仅增加")]
|
|
IncrementOnly = 1 << 0,
|
|
[Description("受保护")]
|
|
Protected = 1 << 1,
|
|
[Description("未知权限")]
|
|
UnknownPermission = 1 << 2,
|
|
}
|
|
public abstract class StatInfo
|
|
{
|
|
public abstract bool IsModified { get; }
|
|
public string Id { get; set; }
|
|
public string DisplayName { get; set; }
|
|
public abstract object Value { get; set; }
|
|
public bool IsIncrementOnly { get; set; }
|
|
public int Permission { get; set; }
|
|
|
|
public string Extra
|
|
{
|
|
get
|
|
{
|
|
var flags = StatFlags.None;
|
|
flags |= this.IsIncrementOnly == false ? 0 : StatFlags.IncrementOnly;
|
|
flags |= ((this.Permission & 2) != 0) == false ? 0 : StatFlags.Protected;
|
|
flags |= ((this.Permission & ~2) != 0) == false ? 0 : StatFlags.UnknownPermission;
|
|
return flags.ToString();
|
|
}
|
|
}
|
|
}
|
|
}
|