Update RT to 268.0.0

This commit is contained in:
PJB3005 2025-11-16 20:34:33 +01:00
parent 6347ddffb8
commit ca2bb9dcff
No known key found for this signature in database
14 changed files with 44 additions and 77 deletions

View file

@ -1,17 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\RobustToolbox\MSBuild\Robust.Properties.targets" />
<PropertyGroup>
<!-- Work around https://github.com/dotnet/project-system/issues/4314 -->
<TargetFramework>$(TargetFramework)</TargetFramework>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\bin\Content.Server\</OutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<OutputType Condition="'$(FullRelease)' != 'True'">Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Content.Packaging\Content.Packaging.csproj" />

View file

@ -13,7 +13,7 @@ public sealed class EntryPoint : GameServer
{
base.Init();
var factory = IoCManager.Resolve<IComponentFactory>();
var factory = Dependencies.Resolve<IComponentFactory>();
factory.DoAutoRegistrations();
@ -22,7 +22,7 @@ public sealed class EntryPoint : GameServer
factory.RegisterIgnore(ignoreName);
}
ServerContentIoC.Register();
ServerContentIoC.Register(Dependencies);
IoCManager.BuildGraph();

View file

@ -2,7 +2,6 @@
using System.Net;
using JetBrains.Annotations;
using Robust.Server.Console;
using Robust.Server.Player;
using Robust.Shared.Player;
using Robust.Shared.Toolshed;
using Robust.Shared.Toolshed.Errors;
@ -14,7 +13,10 @@ namespace Content.Server;
/// Debug/example ConGroup controller implementation that gives any client connected through localhost every permission.
/// </summary>
[UsedImplicitly]
public sealed class LocalHostConGroup : IConGroupControllerImplementation, IPostInjectInit {
public sealed class LocalHostConGroup : IConGroupControllerImplementation, IPostInjectInit
{
[Dependency] private readonly IConGroupController _controller = null!;
public bool CanCommand(ICommonSession session, string cmdName) {
return IsLocal(session);
}
@ -50,7 +52,7 @@ public sealed class LocalHostConGroup : IConGroupControllerImplementation, IPost
}
void IPostInjectInit.PostInject() {
IoCManager.Resolve<IConGroupController>().Implementation = this;
_controller.Implementation = this;
}
private record NotLocalError : IConError

View file

@ -2,9 +2,9 @@ namespace Content.Server;
internal static class ServerContentIoC
{
public static void Register()
public static void Register(IDependencyCollection dependencies)
{
// DEVNOTE: IoCManager registrations for the server go here and only here.
IoCManager.Register<LocalHostConGroup>();
dependencies.Register<LocalHostConGroup>();
}
}

View file

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>