RustDedicated/Rust.Platform/ServerInfoExtensions.cs
2025-05-25 05:29:54 +09:30

11 lines
378 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using Steamworks.Data;
public static class ServerInfoExtensions
{
public static async Task<Dictionary<string, string>> QueryRulesAsync(this ServerInfo server)
{
return await new Steamworks.Data.ServerInfo(server.AddressRaw, (ushort)server.ConnectionPort, (ushort)server.QueryPort, 0u).QueryRulesAsync();
}
}