Files
RobustToolbox/Robust.Client.Godot/SignalSubscriber/BaseGodotSignalSubscriber.cs
Silver 25926a17b7 Renames SS14.* to Robust.* (#793)
RobustToolbox projects should be named Robust.* 

This PR changes the RobustToolbox projects from SS14.* to Robust.*

Updates SS14.* prefixes/namespaces to Robust.*
Updates SpaceStation14.sln to RobustToolbox.sln
Updates MSBUILD/SS14.* to MSBUILD/Robust.*
Updates CSProject and MSBuild references for the above
Updates git_helper.py
Removes Runserver and Runclient as they are unusable
2019-04-15 20:24:59 -06:00

27 lines
776 B
C#

using System;
// Godot *really* doesn't like it if you inherit Godot.Object outside the main project.
// in fact, it hard crashes.
// So we use these tiny dummies to register signals.
// It's not clean but do you have a better idea?
namespace Robust.Client.GodotGlue
{
public abstract class BaseGodotSignalSubscriber : Godot.Reference
{
public void Connect(Godot.Object obj, string signal)
{
obj.Connect(signal, this, "SignalInvoker");
}
public void Disconnect(Godot.Object obj, string signal)
{
obj.Disconnect(signal, this, "SignalInvoker");
}
protected void HandleException(Exception exception)
{
SS14Loader.Instance.ExceptionCaught(exception);
}
}
}