Files
stgsharp/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Logic/Counter.cs
T

35 lines
601 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Logic
{
public unsafe class Counter<T> where T : struct
{
private T _value;
public T Value
{
get { return _value; }
set { _value = value; }
}
public Counter()
{
}
public void Increase(T deltaValue)
{
//_value += deltaValue;
}
public void Decrease(T deltaValue)
{
//_value -= deltaValue;
}
}
}