permissionpointvalue.cs
来自「破解的飞信源代码」· CS 代码 · 共 74 行
CS
74 行
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 + =
减小字号Ctrl + -
显示快捷键?