mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
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
27 lines
776 B
C#
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);
|
|
}
|
|
}
|
|
}
|