Skip to content

Commit b00b096

Browse files
authored
fix: clear every build warning and move generation fixups into templates (#39)
1 parent 383502d commit b00b096

14 files changed

Lines changed: 282 additions & 171 deletions

‎.github/workflows/ci.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ jobs:
9696
with:
9797
repository: vrchatapi/vrchatapi-csharp
9898

99+
# The artifact is overlaid onto the checkout rather than replacing it, so anything the
100+
# generator stops emitting would otherwise survive in src/ forever.
101+
- run: rm -rf src
102+
99103
- uses: actions/download-artifact@v8
100104
with:
101105
name: csharp-generated

‎.openapi-generator-ignore‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
2424

25+
# Files the generator emits that this repository does not ship. Listing them here stops
26+
# them being written at all, rather than deleting them afterwards in generate.sh.
2527
README.md
2628
VRChat.API.sln
27-
src/VRChat.API.Test/
29+
src/VRChat.API.Test/**
30+
docs/**
31+
api/**
32+
appveyor.yml
33+
git_push.sh
34+
build.sh
35+
build.bat
36+
mono_nunit_test.sh
37+
nuget.exe

‎VRChat.API.sln‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ VisualStudioVersion = 18.0.11205.157
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API", "src\VRChat.API\VRChat.API.csproj", "{CFFD58F6-C881-46CB-BD52-445A8A8A8710}"
66
EndProject
7-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API.Wrapper", "wrapper\VRChat.API\VRChat.API.Wrapper.csproj", "{A38F1B7D-A1FF-B23E-08C3-81561FBF1C30}"
8-
EndProject
97
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API.Extensions.Hosting", "wrapper\VRChat.API.Extensions.Hosting\VRChat.API.Extensions.Hosting.csproj", "{D9043377-EF21-E16A-7F4A-58D093467DC1}"
108
EndProject
119
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API.Examples.AspNetCore", "examples\VRChat.API.Examples.AspNetCore\VRChat.API.Examples.AspNetCore.csproj", "{9F172233-1AF6-700F-5F54-423D12F46099}"
@@ -26,10 +24,6 @@ Global
2624
{CFFD58F6-C881-46CB-BD52-445A8A8A8710}.Debug|Any CPU.Build.0 = Debug|Any CPU
2725
{CFFD58F6-C881-46CB-BD52-445A8A8A8710}.Release|Any CPU.ActiveCfg = Release|Any CPU
2826
{CFFD58F6-C881-46CB-BD52-445A8A8A8710}.Release|Any CPU.Build.0 = Release|Any CPU
29-
{A38F1B7D-A1FF-B23E-08C3-81561FBF1C30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{A38F1B7D-A1FF-B23E-08C3-81561FBF1C30}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{A38F1B7D-A1FF-B23E-08C3-81561FBF1C30}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{A38F1B7D-A1FF-B23E-08C3-81561FBF1C30}.Release|Any CPU.Build.0 = Release|Any CPU
3327
{D9043377-EF21-E16A-7F4A-58D093467DC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3428
{D9043377-EF21-E16A-7F4A-58D093467DC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
3529
{D9043377-EF21-E16A-7F4A-58D093467DC1}.Release|Any CPU.ActiveCfg = Release|Any CPU

‎generate.sh‎

Lines changed: 36 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,59 @@
11
#!/usr/bin/env bash
2+
set -euo pipefail
23

34
if [ ${#} -le 1 ]
45
then
56
echo "Usage: generate.sh <openapi.yaml> <version>" >&2
67
exit 1
78
fi
89

9-
rm src docs *.nupkg *.snupkg -rf
10+
spec="${1}"
11+
version="${2}"
1012

13+
# Applies a sed expression to a file, but only after confirming the text it targets is still
14+
# there. sed exits 0 when it matches nothing, so without this guard a patch that stopped
15+
# applying after a generator upgrade would fail silently.
16+
patch_generated() {
17+
local file="${1}" probe="${2}" expression="${3}"
18+
19+
if ! grep -qF "${probe}" "${file}"
20+
then
21+
echo "generate.sh: '${probe}' is no longer present in ${file}; the patch below is stale" >&2
22+
exit 1
23+
fi
24+
25+
sed -i "${expression}" "${file}"
26+
}
27+
28+
rm -rf src docs ./*.nupkg ./*.snupkg
29+
30+
# Output this repository does not ship is listed in .openapi-generator-ignore, so it is never
31+
# written. Everything VRChat-specific about the generated code lives in ./templates, and the
32+
# csproj customisation in ./templates/netcore_project.additions.mustache.
1133
openapi-generator generate \
1234
-g csharp \
1335
-t ./templates \
1436
--library httpclient \
15-
--additional-properties=packageGuid=1c420561-97f1-4810-ad2d-cd344d27170a,packageName=VRChat.API,packageTags=vrchat,packageVersion="${2}",targetFramework=net8.0,licenseId=MIT,equatable=true \
37+
--additional-properties=packageGuid=1c420561-97f1-4810-ad2d-cd344d27170a,packageName=VRChat.API,packageVersion="${version}",targetFramework=net8.0,licenseId=MIT,equatable=true,packageAuthors="VRChat API Docs Community",packageCompany="VRChat API Docs Community",packageTitle="VRChat API Library for .NET",packageDescription="VRChat API Library for .NET",packageCopyright="Copyright © 2021 Owners of GitHub organisation \"vrchatapi\" and individual contributors." \
1638
--git-user-id=vrchatapi \
1739
--git-repo-id=vrchatapi-csharp \
1840
-o . \
19-
-i "${1}" \
41+
-i "${spec}" \
2042
--http-user-agent="vrchatapi-csharp"
2143

22-
rm build.sh
23-
rm build.bat
24-
rm git_push.sh
25-
rm mono_nunit_test.sh
26-
rm nuget.exe
27-
rm appveyor.yml
28-
29-
rm -rf docs/
30-
rm -rf api/
31-
rm -rf src/VRChat.API.Test/
32-
33-
# Move wrapper code to src/VRChat.API/Client/
34-
cp -r wrapper/VRChat.API/Client/* src/VRChat.API/Client/
35-
3644
cp wrapper/VRChat.API.Extensions.Hosting/vrc_cat.ico src/VRChat.API/vrc_cat.ico
3745
cp wrapper/VRChat.API.Extensions.Hosting/vrc_cat.png src/VRChat.API/vrc_cat.png
3846

39-
# Fix cookie handling
40-
for file in $(find ./src/VRChat.API -name '*.cs'); do
41-
sed -i 's/new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"))/new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "\/", "api.vrchat.cloud")/g' $file
42-
sed -i 's/new Cookie("twoFactorAuth", this.Configuration.GetApiKeyWithPrefix("twoFactorAuth"))/new Cookie("twoFactorAuth", this.Configuration.GetApiKeyWithPrefix("twoFactorAuth"), "\/", "api.vrchat.cloud")/g' $file
43-
sed -i 's/new Cookie(cookie.Name, cookie.Value)/new Cookie(cookie.Name, cookie.Value, cookie.Path, cookie.Domain)/g' $file
44-
done
45-
46-
# Add ITwoFactorCode to two-factor authentication types
47-
sed -i 's/\(class.*IValidatableObject\)/\1, ITwoFactorCode/' src/VRChat.API/Model/TwoFactorAuthCode.cs
48-
sed -i 's/\(class.*IValidatableObject\)/\1, ITwoFactorCode/' src/VRChat.API/Model/TwoFactorEmailCode.cs
49-
50-
# Add icons and readme to package
51-
sed -i ':a;N;$!ba;s|\(.*\)</ItemGroup>|\1\t <Content Include="vrc_cat.ico" />\n\t <None Include="..\\README.md">\n\t <Pack>True</Pack>\n\t <PackagePath>\\</PackagePath>\n\t </None>\n\t <None Include="vrc_cat.png">\n\t <Pack>True</Pack>\n\t <PackagePath>\\</PackagePath>\n\t </None>\n </ItemGroup>|' src/VRChat.API/VRChat.API.csproj
52-
sed -i '/<PackageTags>vrchat<\/PackageTags>/a\ <ApplicationIcon>vrc_cat.ico</ApplicationIcon>' src/VRChat.API/VRChat.API.csproj
53-
54-
# Adjust package tags
55-
sed -i 's/<PackageTags>vrchat<\/PackageTags>/<PackageTags>vrchat,vrcapi,vrc-api,vrc<\/PackageTags>/' src/VRChat.API/VRChat.API.csproj
56-
57-
# Fix username and password encoding
58-
sed -i 's/VRChat.API.Client.ClientUtils.Base64Encode(this.Configuration.Username + \":\" + this.Configuration.Password)/VRChat.API.Client.ClientUtils.Base64Encode(System.Web.HttpUtility.UrlEncode(this.Configuration.Username) + ":" + System.Web.HttpUtility.UrlEncode(this.Configuration.Password))/g' src/VRChat.API/Api/AuthenticationApi.cs
59-
60-
# Fix fields in csproj
61-
sed -i 's/OpenAPI Library/VRChat API Library for .NET/' src/VRChat.API/VRChat.API.csproj
62-
sed -i 's/A library generated from a OpenAPI doc/VRChat API Library for .NET/' src/VRChat.API/VRChat.API.csproj
63-
sed -i 's/No Copyright/Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors./' src/VRChat.API/VRChat.API.csproj
64-
sed -i 's/OpenAPI/VRChat API Docs Community/' src/VRChat.API/VRChat.API.csproj
65-
sed -i 's/Minor update/Automated deployment/' src/VRChat.API/VRChat.API.csproj
66-
67-
# Fix failure to compile
68-
sed -i 's/<GenerateAssemblyInfo>false<\/GenerateAssemblyInfo>/<GenerateAssemblyInfo>true<\/GenerateAssemblyInfo>/' src/VRChat.API/VRChat.API.csproj
69-
70-
# Update VRChat.API.Extensions.Hosting version
71-
sed -i "s|<Version>[^<]*</Version>|<Version>${2}</Version>|g" wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj
72-
73-
# Add README.md to fields
74-
sed -i '/PackageTags/a \ <PackageReadmeFile>README.md<\/PackageReadmeFile>' src/VRChat.API/VRChat.API.csproj
75-
sed -i '/System.ComponentModel.Annotations/a \ <None Include="..\\README.md" Pack="true" PackagePath="\\"/>' src/VRChat.API/VRChat.API.csproj
76-
77-
# Add Otp.NET package to project
78-
sed -i '/JsonSubTypes/a \ <PackageReference Include="Otp.NET" Version="1.4.0" \/>' src/VRChat.API/VRChat.API.csproj
79-
80-
# Make CurrentUser fields optional for 2FA response compatibility
81-
sed -i 's/IsRequired = true/IsRequired = false/g' src/VRChat.API/Model/CurrentUser.cs
82-
83-
# Add RequiresTwoFactorAuth property to CurrentUser
84-
sed -i '/public string UserIcon { get; set; }/a\\n /// <summary>\n /// An array of two-factor authentication methods available to use to with two factor authentication.\n /// </summary>\n [DataMember(Name = "requiresTwoFactorAuth", IsRequired = false, EmitDefaultValue = true)]\n public List<string> RequiresTwoFactorAuth { get; set; }' src/VRChat.API/Model/CurrentUser.cs
85-
86-
# Remove messily pasted markdown at top of every file
87-
for i in src/VRChat.API/*/*.cs; do
88-
sed -i '/VRChat API Banner/d' $i
89-
done
90-
9147
cp README.md src/VRChat.API/
9248
cp README.md src/
49+
50+
# The only edit to generated code that no template or partial class can express: CurrentUser is
51+
# also returned mid-login, before two-factor verification, with most of its fields absent. The
52+
# specification marks them required, which makes deserialising that response throw, so the
53+
# generated attributes are relaxed for this one model.
54+
patch_generated src/VRChat.API/Model/CurrentUser.cs \
55+
'IsRequired = true' 's/IsRequired = true/IsRequired = false/g'
56+
57+
# VRChat.API.Extensions.Hosting is hand-maintained, so its version is stamped rather than generated.
58+
patch_generated wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj \
59+
'<Version>' "s|<Version>[^<]*</Version>|<Version>${version}</Version>|g"

‎templates/WebRequestPathBuilder.mustache‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,22 @@ namespace {{packageName}}.Client
1818
_path = path;
1919
}
2020

21+
/// <summary>
22+
/// Percent-encodes a value, then restores "(" and ")".
23+
/// </summary>
24+
/// <remarks>VRChat's API answers 400 "malformed url" when parentheses arrive
25+
/// percent-encoded, and instance IDs contain them, for example
26+
/// wrld_0000:12345~group(grp_0000)~groupAccessType(plus)~region(use).</remarks>
27+
private static string Escape(string value)
28+
{
29+
return Uri.EscapeDataString(value).Replace("%28", "(").Replace("%29", ")");
30+
}
31+
2132
public void AddPathParameters(Dictionary<string, string> parameters)
2233
{
2334
foreach (var parameter in parameters)
2435
{
25-
_path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value));
36+
_path = _path.Replace("{" + parameter.Key + "}", Escape(parameter.Value));
2637
}
2738
}
2839

@@ -32,7 +43,7 @@ namespace {{packageName}}.Client
3243
{
3344
foreach (var value in parameter.Value)
3445
{
35-
_query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&";
46+
_query = _query + parameter.Key + "=" + Escape(value) + "&";
3647
}
3748
}
3849
}

‎templates/libraries/httpclient/api.mustache‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ namespace {{packageName}}.{{apiPackage}}
487487
// cookie parameter support
488488
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
489489
{
490-
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
490+
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"), "/", "api.vrchat.cloud"));
491491
}
492492
{{/isKeyInCookie}}
493493
{{#isKeyInHeader}}
@@ -507,7 +507,7 @@ namespace {{packageName}}.{{apiPackage}}
507507
// http basic authentication required
508508
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
509509
{
510-
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
510+
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(System.Web.HttpUtility.UrlEncode(this.Configuration.Username) + ":" + System.Web.HttpUtility.UrlEncode(this.Configuration.Password)));
511511
}
512512
{{/isBasicBasic}}
513513
{{#isBasicBearer}}
@@ -721,7 +721,7 @@ namespace {{packageName}}.{{apiPackage}}
721721
// cookie parameter support
722722
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")))
723723
{
724-
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")));
724+
localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"), "/", "api.vrchat.cloud"));
725725
}
726726
{{/isKeyInCookie}}
727727
{{#isKeyInHeader}}
@@ -742,7 +742,7 @@ namespace {{packageName}}.{{apiPackage}}
742742
// http basic authentication required
743743
if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
744744
{
745-
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
745+
localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(System.Web.HttpUtility.UrlEncode(this.Configuration.Username) + ":" + System.Web.HttpUtility.UrlEncode(this.Configuration.Password)));
746746
}
747747
{{/isBasicBasic}}
748748
{{#isBasicBearer}}

‎templates/modelGeneric.mustache‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,13 @@
364364
return {{#vars}}{{#parent}}base.Equals(input) && {{/parent}}{{^isContainer}}
365365
(
366366
this.{{name}} == input.{{name}} ||
367-
{{^vendorExtensions.x-is-value-type}}
367+
{{^vendorExtensions.x-csharp-value-type}}
368368
(this.{{name}} != null &&
369369
this.{{name}}.Equals(input.{{name}}))
370-
{{/vendorExtensions.x-is-value-type}}
371-
{{#vendorExtensions.x-is-value-type}}
370+
{{/vendorExtensions.x-csharp-value-type}}
371+
{{#vendorExtensions.x-csharp-value-type}}
372372
this.{{name}}.Equals(input.{{name}})
373-
{{/vendorExtensions.x-is-value-type}}
373+
{{/vendorExtensions.x-csharp-value-type}}
374374
){{^-last}} && {{/-last}}{{/isContainer}}{{#isContainer}}
375375
(
376376
this.{{name}} == input.{{name}} ||
@@ -399,15 +399,15 @@
399399
int hashCode = 41;
400400
{{/parent}}
401401
{{#vars}}
402-
{{^vendorExtensions.x-is-value-type}}
402+
{{^vendorExtensions.x-csharp-value-type}}
403403
if (this.{{name}} != null)
404404
{
405405
hashCode = (hashCode * 59) + this.{{name}}.GetHashCode();
406406
}
407-
{{/vendorExtensions.x-is-value-type}}
408-
{{#vendorExtensions.x-is-value-type}}
407+
{{/vendorExtensions.x-csharp-value-type}}
408+
{{#vendorExtensions.x-csharp-value-type}}
409409
hashCode = (hashCode * 59) + this.{{name}}.GetHashCode();
410-
{{/vendorExtensions.x-is-value-type}}
410+
{{/vendorExtensions.x-csharp-value-type}}
411411
{{/vars}}
412412
{{#isAdditionalPropertiesTrue}}
413413
if (this.AdditionalProperties != null)
Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
{{! if needed users can add this file to their templates folder to append to the csproj }}
1+
{{!
2+
Everything VRChat-specific about the generated csproj lives here, in the generator's own
3+
extension point, rather than being sed-patched into the output afterwards. Rendered as the
4+
last children of <Project>, so these PropertyGroup values override the ones above.
5+
}}
6+
<PropertyGroup>
7+
<!-- The stock template sets this to false for non-generic-host clients, which breaks the build:
8+
https://github.com/dotnet/project-system/issues/3934 -->
9+
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
10+
<!-- Set here because generator property values cannot contain a comma. -->
11+
<PackageTags>vrchat,vrcapi,vrc-api,vrc</PackageTags>
12+
<PackageReleaseNotes>Automated deployment</PackageReleaseNotes>
13+
<PackageReadmeFile>README.md</PackageReadmeFile>
14+
<ApplicationIcon>vrc_cat.ico</ApplicationIcon>
15+
</PropertyGroup>
16+
17+
<ItemGroup>
18+
<!-- Hand-written code that ships as part of this package, compiled straight from wrapper/
19+
so there is exactly one definition of each type. Client/ holds the VRChatClient wrapper;
20+
Model/ holds partial halves of generated model types. -->
21+
<Compile Include="..\..\wrapper\VRChat.API\**\*.cs" Exclude="..\..\wrapper\VRChat.API\bin\**\*.cs;..\..\wrapper\VRChat.API\obj\**\*.cs" />
22+
</ItemGroup>
23+
24+
<ItemGroup>
25+
<!-- Required by the TOTP login path in wrapper/VRChat.API/Client/VRChat.cs. -->
26+
<PackageReference Include="Otp.NET" Version="1.4.0" />
27+
</ItemGroup>
28+
29+
<ItemGroup>
30+
<Content Include="vrc_cat.ico" />
31+
<None Include="..\README.md">
32+
<Pack>True</Pack>
33+
<PackagePath>\</PackagePath>
34+
</None>
35+
<None Include="vrc_cat.png">
36+
<Pack>True</Pack>
37+
<PackagePath>\</PackagePath>
38+
</None>
39+
</ItemGroup>

‎wrapper/VRChat.API.Extensions.Hosting/DefaultVRChatClientFactory.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ public bool TryAddClient(string clientName, VRChatClientBuilder vcb, bool overri
7272
{
7373
if (_builders.ContainsKey(clientName) && !overrideIfExists) // So that the default may be registered in the case of it being nonexistant
7474
return false;
75-
else
76-
_builders.Add(clientName, vcb);
7775

76+
_builders[clientName] = vcb; // Indexer rather than Add, so overrideIfExists actually overrides
7877
return true;
7978
}
8079
}

‎wrapper/VRChat.API.Extensions.Hosting/IVRChatClientFactory.cs‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ public interface IVRChatClientFactory
5050
/// </returns>
5151
Task<VRChatLoginResult> LoginClientAsync(string name = "vrc_default", bool throwOnFail = false, CancellationToken ct = default);
5252

53+
/// <summary>
54+
/// Registers a <see cref="VRChatClientBuilder"/> under a name, so <see cref="CreateClient(string)"/>
55+
/// can later build a client from it.
56+
/// </summary>
57+
/// <param name="clientName">The name to register the builder under.</param>
58+
/// <param name="vcb">The <see cref="VRChatClientBuilder"/> to register.</param>
59+
/// <param name="overrideIfExists">Whether to replace an existing registration under the same name.</param>
60+
/// <returns><see langword="true"/> if the builder was registered; <see langword="false"/> if a builder
61+
/// is already registered under <paramref name="clientName"/> and <paramref name="overrideIfExists"/>
62+
/// is <see langword="false"/>.</returns>
5363
bool TryAddClient(string clientName, VRChatClientBuilder vcb, bool overrideIfExists = false);
5464
}
5565
}

0 commit comments

Comments
 (0)