- tweak: remove dependency from Nebula.Shared

This commit is contained in:
2025-05-02 10:56:19 +03:00
parent 7187b4fba8
commit 4178c173e1
14 changed files with 461 additions and 76 deletions

View File

@@ -0,0 +1,14 @@
using System;
namespace Nebula.UpdateResolver.Configuration;
public static class ConVarBuilder
{
public static ConVar<T> Build<T>(string name, T? defaultValue = default)
{
if (string.IsNullOrWhiteSpace(name))
throw new ArgumentException("ConVar name cannot be null or whitespace.", nameof(name));
return new ConVar<T>(name, defaultValue);
}
}