2018-02-15 04:45:39 +00:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2018-02-22 07:29:05 +00:00
|
|
|
|
using System;
|
2018-02-15 04:45:39 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using osu.Game.Database;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Skinning
|
|
|
|
|
{
|
2018-02-22 07:29:05 +00:00
|
|
|
|
public class SkinInfo : IHasFiles<SkinFileInfo>, IEquatable<SkinInfo>, IHasPrimaryKey, ISoftDelete
|
2018-02-15 04:45:39 +00:00
|
|
|
|
{
|
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Creator { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<SkinFileInfo> Files { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool DeletePending { get; set; }
|
|
|
|
|
|
|
|
|
|
public static SkinInfo Default { get; } = new SkinInfo { Name = "osu!lazer", Creator = "team osu!" };
|
2018-02-22 07:29:05 +00:00
|
|
|
|
|
|
|
|
|
public bool Equals(SkinInfo other) => other != null && ID == other.ID;
|
2018-02-15 04:45:39 +00:00
|
|
|
|
}
|
|
|
|
|
}
|