Remove Exts.Enum<T>

This functionality is now built in. We can rely on the built in functions rather than a custom class.
This commit is contained in:
RoosterDragon
2025-11-20 20:09:13 +00:00
committed by Gustas Kažukauskas
parent 00cd438190
commit e652f95be9
6 changed files with 20 additions and 46 deletions

View File

@@ -298,7 +298,7 @@ namespace OpenRA.Mods.Common.Server
{
lock (server.LobbyInfo)
{
if (!Enum<Session.ClientState>.TryParse(s, false, out var state))
if (!Enum.TryParse<Session.ClientState>(s, out var state))
{
server.SendFluentMessageTo(conn, MalformedCommand, ["command", "state"]);