daily update on 20240828 by nitload youmu, autotexture added
This commit is contained in:
@@ -35,17 +35,21 @@ namespace StgSharp
|
||||
{
|
||||
|
||||
public class Counter<T> where T : struct, IConvertible, IFormattable, IComparable
|
||||
#if NET8_OR_GREATER
|
||||
,INumber
|
||||
#endif
|
||||
|
||||
{
|
||||
|
||||
internal dynamic _value;
|
||||
|
||||
internal readonly T _defualtAddValue;
|
||||
internal readonly T _defualtSubValue;
|
||||
internal readonly T _defualtValue;
|
||||
|
||||
internal dynamic _value;
|
||||
|
||||
public Counter(T defualtValue, T defualtAddValue, T defualtSubValue)
|
||||
{
|
||||
var type = Type.GetTypeCode(defualtValue.GetType());
|
||||
TypeCode type = Type.GetTypeCode(defualtValue.GetType());
|
||||
switch (type)
|
||||
{
|
||||
case TypeCode.Byte:
|
||||
|
||||
Reference in New Issue
Block a user