Files
RobustToolbox/Robust.Server/Debugging/DebugDrawingManager.cs
Ephememory 519c28cad2 Add a DebugDrawingManager for drawing server side events like Ra… (#892)
* add basis for debug drawing raycasts

* rays

* this was too much work

* i assumed you could do string object stuff. you cant.

* fixed a crash

* Greatly improved DebugDrawingManager code with a struct and list as opposed to dictionary

* change default ray debug color from green to magenta

* reviewed changes

* reviewed changes and adds network message to physicsmanager so it works without much user config
2019-11-23 13:09:48 +01:00

23 lines
570 B
C#

using Robust.Server.Interfaces.Debugging;
using Robust.Shared.Interfaces.Network;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Robust.Shared.IoC;
using Robust.Shared.Network.Messages;
namespace Robust.Server.Debugging
{
internal class DebugDrawingManager : IDebugDrawingManager
{
#pragma warning disable 649
[Dependency] private readonly INetManager _net;
#pragma warning restore 649
public void Initialize()
{
_net.RegisterNetMessage<MsgRay>(MsgRay.NAME);
}
}
}