Use extension method to compare online IDs

This commit is contained in:
Dean Herbert
2021-11-15 14:34:50 +09:00
parent 9f7e2750a5
commit a4c11e8813
3 changed files with 34 additions and 1 deletions

View File

@ -1,11 +1,14 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
#nullable enable
namespace osu.Game.Database
{
public interface IHasOnlineID<out T>
where T : IEquatable<T>
{
/// <summary>
/// The server-side ID representing this instance, if one exists. Any value 0 or less denotes a missing ID (except in special cases where autoincrement is not used, like rulesets).