mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 09:37:03 +02:00
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using Robust.Shared.ContentPack;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Reflection;
|
|
|
|
namespace Robust.Client
|
|
{
|
|
// Partial of GameController to initialize IoC and some other low-level systems like it.
|
|
internal sealed partial class GameController
|
|
{
|
|
private static void InitIoC(DisplayMode mode, IDependencyCollection deps)
|
|
{
|
|
ClientIoC.RegisterIoC(mode, deps);
|
|
deps.BuildGraph();
|
|
RegisterReflection(deps);
|
|
}
|
|
|
|
internal static void RegisterReflection(IDependencyCollection deps)
|
|
{
|
|
// Gets a handle to the shared and the current (client) dll.
|
|
deps.Resolve<IReflectionManager>().LoadAssemblies(new List<Assembly>(2)
|
|
{
|
|
// Do NOT register Robust.Client.Godot.
|
|
// At least not for now.
|
|
AppDomain.CurrentDomain.GetAssemblyByName("Robust.Shared"),
|
|
Assembly.GetExecutingAssembly()
|
|
});
|
|
}
|
|
}
|
|
}
|