mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
482c73e1bc
- Added MaxCapacity property to RoomEntity and updated related controllers to utilize it. - Modified RoomsController to set MaxPlayers based on room's MaxCapacity. - Introduced QuestTeamSize class to dynamically adjust quest party sizes beyond the default limit. - Updated DevMenu to include options for debugging and managing room settings. - Created UI elements for adjusting MaxCapacity in the admin interface. - Added configuration file for DevMenu with default settings.
68 lines
2.9 KiB
XML
68 lines
2.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net6.0</TargetFramework>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<RootNamespace>DorkNet.ClientMod</RootNamespace>
|
|
<AssemblyName>DorkNet.ClientMod</AssemblyName>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
|
<NoWarn>$(NoWarn);CS8602;CS8604;CS0436</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
MelonLoader 0.6.x build of the DorkNet client patches. Resolves
|
|
every game-side type at runtime via AccessTools.TypeByName, so
|
|
Rec Room's IL2CPP-derived interop assemblies (Assembly-CSharp,
|
|
Photon3Unity3D, UnityEngine.*) are NOT needed at compile time —
|
|
they would be derivative works of the game anyway, so we never
|
|
reference them. Only MelonLoader's own DLLs are needed.
|
|
|
|
By default the project downloads the pinned MelonLoader release
|
|
into DorkNet.ClientMod/build/ and references those DLLs. Pass
|
|
-p:MelonLoaderDir=<path-to-extracted-MelonLoader> only when you
|
|
deliberately want to use a local override.
|
|
-->
|
|
<PropertyGroup>
|
|
<MelonLoaderVersion Condition="'$(MelonLoaderVersion)' == ''">v0.6.6</MelonLoaderVersion>
|
|
<MelonLoaderCacheRoot>$(MSBuildThisFileDirectory)build\melonloader</MelonLoaderCacheRoot>
|
|
<MelonLoaderZip>$(MelonLoaderCacheRoot)\MelonLoader.x64.$(MelonLoaderVersion).zip</MelonLoaderZip>
|
|
<MelonLoaderDir Condition="'$(MelonLoaderDir)' == ''">$(MelonLoaderCacheRoot)\MelonLoader</MelonLoaderDir>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="EnsureMelonLoaderReferences"
|
|
BeforeTargets="ResolveAssemblyReferences"
|
|
Condition="!Exists('$(MelonLoaderDir)\net6\MelonLoader.dll')">
|
|
<MakeDir Directories="$(MelonLoaderCacheRoot)" />
|
|
<DownloadFile
|
|
SourceUrl="https://github.com/LavaGang/MelonLoader/releases/download/$(MelonLoaderVersion)/MelonLoader.x64.zip"
|
|
DestinationFolder="$(MelonLoaderCacheRoot)"
|
|
DestinationFileName="MelonLoader.x64.$(MelonLoaderVersion).zip"
|
|
SkipUnchangedFiles="true" />
|
|
<Unzip SourceFiles="$(MelonLoaderZip)"
|
|
DestinationFolder="$(MelonLoaderCacheRoot)"
|
|
OverwriteReadOnlyFiles="true" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="MelonLoader">
|
|
<HintPath>$(MelonLoaderDir)\net6\MelonLoader.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="0Harmony">
|
|
<HintPath>$(MelonLoaderDir)\net6\0Harmony.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="Il2CppInterop.Runtime">
|
|
<HintPath>$(MelonLoaderDir)\net6\Il2CppInterop.Runtime.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="Il2CppInterop.Common">
|
|
<HintPath>$(MelonLoaderDir)\net6\Il2CppInterop.Common.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
</Project>
|