Started working on a Steam library

This commit is contained in:
2026-04-30 19:20:40 +01:00
parent ab525cc22e
commit c6505fede9
13 changed files with 2603 additions and 4 deletions
@@ -81,9 +81,44 @@
<tbody>
@foreach (var desc in classDoc.Descriptions)
{
var methodParameters = desc.MethodParameters ?? Array.Empty<string>();
var attributeParameters = desc.Parameters ?? Array.Empty<string>();
var methodParameterSet = new HashSet<string>(methodParameters, StringComparer.OrdinalIgnoreCase);
var filteredAttributeParameters = attributeParameters
.Where(p => !methodParameterSet.Contains(p))
.Distinct(StringComparer.OrdinalIgnoreCase)
.ToArray();
<tr>
<td><code>@desc.Title</code></td>
<td>@Html.Raw(Markdig.Markdown.ToHtml(desc.Description))<br/>
@if (desc.ReturnType.IsNotNullOrEmpty())
{
<strong>Returns:</strong> <code>@desc.ReturnType</code><br/>
}
@if (methodParameters.Any())
{
<strong>Parameters:</strong>
<ul class="mb-2">
@foreach (var methodParameter in methodParameters)
{
<li><code>@methodParameter</code></li>
}
</ul>
}
@if (filteredAttributeParameters.Any())
{
<strong>Attribute Args:</strong>
<ul class="mb-2">
@foreach (var attributeParameter in filteredAttributeParameters)
{
<li><code>@attributeParameter</code></li>
}
</ul>
}
@if (desc.CodeExample.IsNotNullOrEmpty())
{
<strong>Example:</strong><br/>
@@ -39,6 +39,9 @@
<li class="nav-item">
<a class="nav-link" asp-area="" asp-controller="Home" asp-action="Library" asp-route-id="shared">Shared Components</a>
</li>
<li class="nav-item">
<a class="nav-link" asp-area="" asp-controller="Home" asp-action="Library" asp-route-id="steamworks">Steamworks</a>
</li>
</ul>
<ul class="navbar-nav ms-auto">