Adds official .NET 5 support (#300)

This commit is contained in:
Kamron Batman 2020-11-07 13:26:27 -08:00 • committed by GitHub
parent c3289a20ab
commit 013f333898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 496 additions and 668 deletions

View file

@ -522,28 +522,7 @@ namespace Server.Engines.ConPVP
public static List<Arena> Arenas { get; } = new List<Arena>();
public int CompareTo(Arena c)
{
var a = m_Name;
var b = c.m_Name;
if (a == null && b == null)
{
return 0;
}
if (a == null)
{
return -1;
}
if (b == null)
{
return +1;
}
return a.CompareTo(b);
}
public int CompareTo(Arena c) => string.CompareOrdinal(m_Name, c?.m_Name);
public Ladder AcquireLadder() => Ladder?.Ladder ?? ConPVP.Ladder.Instance;