mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* 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
23 lines
570 B
C#
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);
|
|
}
|
|
}
|
|
}
|