Files
RobustToolbox/Robust.Client/WebViewHook/IWebViewManagerHook.cs
Pieter-Jan Briers d6cbdd221c WebView fixes and improvements.
Re-organize initialization so that User-Agent CVar actually works.

Add web.headless CVar to not load CEF even on graphical client.

Clean up init logic to not rely on static IoC, and clean up loggers used too.
2023-02-24 00:29:31 +01:00

28 lines
756 B
C#

using System;
using Robust.Shared.IoC;
namespace Robust.Client.WebViewHook
{
/// <summary>
/// Used so that the IWebViewManager can be loaded when loading Robust.Client.WebView.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly)]
internal sealed class WebViewManagerImplAttribute : Attribute
{
public readonly Type ImplementationType;
public WebViewManagerImplAttribute(Type implementationType)
{
ImplementationType = implementationType;
}
}
internal interface IWebViewManagerHook
{
void PreInitialize(IDependencyCollection dependencies, GameController.DisplayMode mode);
void Initialize();
void Update();
void Shutdown();
}
}