1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00
osu-lazer/osu.Game/Skinning/SkinInfo.cs

33 lines
954 B
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using osu.Game.Database;
namespace osu.Game.Skinning
{
public class SkinInfo : IHasFiles<SkinFileInfo>, IEquatable<SkinInfo>, IHasPrimaryKey, ISoftDelete
{
public int ID { get; set; }
public string Name { get; set; }
2018-11-28 18:01:22 +08:00
public string Hash { get; set; }
2018-04-13 17:19:50 +08:00
public string Creator { get; set; }
public List<SkinFileInfo> Files { get; set; }
public bool DeletePending { get; set; }
2018-11-28 18:01:22 +08:00
public string FullName => $"\"{Name}\" by {Creator}";
2018-04-13 17:19:50 +08:00
public static SkinInfo Default { get; } = new SkinInfo { Name = "osu!lazer", Creator = "team osu!" };
public bool Equals(SkinInfo other) => other != null && ID == other.ID;
2018-11-28 18:01:22 +08:00
public override string ToString() => FullName;
2018-04-13 17:19:50 +08:00
}
}