com.guru.unity.sdk.core/Runtime/GuruRemote/Runtime/RemoteConfigBase.cs

20 lines
508 B
C#
Raw Normal View History

2023-12-26 04:22:19 +00:00
namespace Guru
{
using System;
public abstract class RemoteConfigBase<T>: IRemoteConfig<T> where T : IRemoteConfig<T>
2023-12-26 04:22:19 +00:00
{
/// <summary>
/// 配置是否可用
/// </summary>
public bool enable { get; set; } = true;
public Action<T> OnValueChanged { get; set; }
2023-12-26 04:22:19 +00:00
/// <summary>
/// 转为Json
/// </summary>
/// <returns></returns>
public virtual string ToJson() => JsonParser.ToJson(this);
2023-12-26 04:22:19 +00:00
}
}