Update template to latest RobustToolbox version.

This commit is contained in:
Vera Aguilera Puerto 2021-08-31 23:01:31 +02:00
parent a70054ac44
commit b417f4355e
4 changed files with 18 additions and 6 deletions

View file

@ -1,4 +1,5 @@
using Robust.Client;
using Robust.Client.Graphics;
using Robust.Shared.ContentPack;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
@ -31,6 +32,8 @@ namespace Content.Client
IoCManager.BuildGraph();
factory.GenerateNetIds();
// DEVNOTE: This is generally where you'll be setting up the IoCManager further.
}
@ -38,6 +41,9 @@ namespace Content.Client
{
base.PostInit();
// DEVNOTE: The line below will disable lighting, so you can see in-game sprites without the need for lights
//IoCManager.Resolve<ILightManager>().Enabled = false;
// DEVNOTE: Further setup...
var client = IoCManager.Resolve<IBaseClient>();

View file

@ -1,4 +1,5 @@
using Robust.Client;
using Robust.Shared.Utility;
namespace Content.Client
{
@ -9,15 +10,18 @@ namespace Content.Client
ContentStart.Start(args);
/*
// DEVNOTE: If you want to use RobustToolbox as a library, use the method below instead.
// Keep in mind, this will make your game ineligible from appearing on the SS14 hub, specially if you
// disable sandboxing.
// DEVNOTE: If you want to use RobustToolbox as a library, use the method below instead.
// Keep in mind, this will make your game ineligible from appearing on the SS14 hub, specially if you
// disable sandboxing.
ContentStart.StartLibrary(args, new GameControllerOptions()
{
// DEVNOTE: Your options here.
Sandboxing = false,
});
*/
SplashLogo = new ResourcePath("/path/to/splash/logo.png"),
// Check "RobustToolbox/Resources/Textures/Logo/icon" for an example window icon set.
WindowIconSet = new ResourcePath("/path/to/folder/with/window/icon/set"),
DefaultWindowTitle = "Robust Template"
});*/
}
}
}

View file

@ -25,6 +25,8 @@ namespace Content.Server
IoCManager.BuildGraph();
factory.GenerateNetIds();
// DEVNOTE: This is generally where you'll be setting up the IoCManager further.
}

@ -1 +1 @@
Subproject commit 986ec3ef062bd6977cedf357c77d049e4e18a017
Subproject commit 4ba56542531c4d810556455d2891a3ed82a53f86