mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 06:42:25 +02:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
34 lines
1021 B
C#
34 lines
1021 B
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)
|
|
{
|
|
ClientIoC.RegisterIoC(mode);
|
|
IoCManager.BuildGraph();
|
|
RegisterReflection();
|
|
}
|
|
|
|
|
|
internal static void RegisterReflection()
|
|
{
|
|
// Gets a handle to the shared and the current (client) dll.
|
|
IoCManager.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()
|
|
});
|
|
}
|
|
}
|
|
}
|