Merge branch 'master' into v3.1
大石头 authored at 2024-07-13 19:03:18
515.00 B
Stardust
namespace Stardust.Managers;

/// <summary>版本信息</summary>
public class VerInfo
{
    /// <summary>名称</summary>
    public String Name { get; set; } = null!;

    /// <summary>版本</summary>
    public String Version { get; set; } = null!;

    /// <summary>补丁</summary>
    public String? Sp { get; set; }

    /// <summary>已重载。</summary>
    /// <returns></returns>
    public override String ToString() => String.IsNullOrEmpty(Sp) ? $"{Name} {Version}" : $"{Name} {Version} Sp{Sp}";
}