⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 permissionpointvalue.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Core
{
    using System;

    public class PermissionPointValue
    {
        private int _finalValue;
        private Imps.Client.Core.PermissionPoint _point;
        private ProposedData<int> _value;

        public PermissionPointValue(Imps.Client.Core.PermissionPoint point)
        {
            this._point = point;
        }

        public void SetProposedValueSafely(int proposedVal)
        {
            if (this.ProposedOrFinalValue != proposedVal)
            {
                if (this.Value == null)
                {
                    this.Value = new ProposedData<int>(-1);
                }
                this.Value.ProposedValue = proposedVal;
            }
        }

        public int FinalValue
        {
            get
            {
                return this._finalValue;
            }
            set
            {
                this._finalValue = value;
            }
        }

        public Imps.Client.Core.PermissionPoint PermissionPoint
        {
            get
            {
                return this._point;
            }
        }

        public int ProposedOrFinalValue
        {
            get
            {
                if ((this.Value != null) && this.Value.HasProposedValue)
                {
                    return this.Value.ProposedValue;
                }
                return this._finalValue;
            }
        }

        public ProposedData<int> Value
        {
            get
            {
                return this._value;
            }
            set
            {
                this._value = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -