Update RT to 264.0.0

This commit is contained in:
PJB3005 2025-11-16 15:00:40 +01:00
parent 05cb8ad033
commit 750039957c
No known key found for this signature in database
9 changed files with 67 additions and 28 deletions

View file

@ -1,5 +1,7 @@
using System.Globalization;
using Robust.Client;
using Robust.Shared;
using Robust.Shared.Configuration;
using Robust.Shared.ContentPack;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
@ -25,12 +27,17 @@ public sealed class EntryPoint : GameClient
// Default to en-US.
// DEVNOTE: If you want your game to be multi-regional at runtime, you'll need to
// do something more complicated here.
IoCManager.Resolve<ILocalizationManager>().LoadCulture(new CultureInfo(Culture));
Dependencies.Resolve<ILocalizationManager>().LoadCulture(new CultureInfo(Culture));
// DEVNOTE: Set this to the name of your solution file to make XAML hot reload work.
Dependencies.Resolve<IConfigurationManager>().OverrideDefault(
CVars.XamlHotReloadMarkerName,
"RobustTemplateSingleplayer.sln");
}
public override void Init()
{
var factory = IoCManager.Resolve<IComponentFactory>();
var factory = Dependencies.Resolve<IComponentFactory>();
// DEVNOTE: Registers all of your components.
factory.DoAutoRegistrations();
@ -53,7 +60,7 @@ public sealed class EntryPoint : GameClient
// DEVNOTE: This starts the singleplayer mode,
// which means you can start creating entities, spawning things...
// If you want to have a main menu to start the game from instead, use the StateManager.
IoCManager.Resolve<IBaseClient>().StartSinglePlayer();
Dependencies.Resolve<IBaseClient>().StartSinglePlayer();
}
protected override void Dispose(bool disposing)

View file

@ -1,9 +1,11 @@
using System;
using Robust.Client;
namespace Template.Game;
internal static class Program
{
[STAThread]
public static void Main(string[] args)
{
ContentStart.StartLibrary(args, new GameControllerOptions()

View file

@ -1,19 +1,14 @@
<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\Template.Game\</OutputPath> <!-- This is important for gamepack mounting purposes. -->
<OutputType Condition="'$(FullRelease)' != 'True'">Exe</OutputType>
<RootNamespace>Template.Game</RootNamespace>
</PropertyGroup>
<Import Project="..\RobustToolbox\MSBuild\Robust.DefineConstants.targets" />
<ItemGroup>
<PackageReference Include="Nett" Version="0.15.0" />
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" PrivateAssets="All" />
<PackageReference Include="Nett" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RobustToolbox\Lidgren.Network\Lidgren.Network.csproj" />
@ -22,6 +17,6 @@
<ProjectReference Include="..\RobustToolbox\Robust.Shared\Robust.Shared.csproj" />
<ProjectReference Include="..\RobustToolbox\Robust.Client\Robust.Client.csproj" />
</ItemGroup>
<Import Project="..\RobustToolbox\MSBuild\Robust.Engine.targets" />
<Import Project="..\RobustToolbox\MSBuild\Robust.Properties.targets" />
<Import Project="..\RobustToolbox\MSBuild\XamlIL.targets" />
</Project>

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>