21 lines
513 B
C#
21 lines
513 B
C#
using Content.Shared._NF.Books.Systems;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client._NF.Books.Systems
|
|
{
|
|
public sealed class BooksSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeNetworkEvent<OpenURLEvent>(OnOpenURL);
|
|
}
|
|
|
|
private void OnOpenURL(OpenURLEvent args)
|
|
{
|
|
var uriOpener = IoCManager.Resolve<IUriOpener>();
|
|
uriOpener.OpenUri(args.URL);
|
|
}
|
|
}
|
|
}
|