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
This commit is contained in:
Silver
2019-04-15 20:24:59 -06:00
committed by GitHub
parent 3aec6eb561
commit 25926a17b7
693 changed files with 3347 additions and 3346 deletions

View File

@@ -0,0 +1,93 @@
using System;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using JetBrains.Annotations;
namespace Robust.Shared.Utility
{
public static class DebugTools
{
/// <summary>
/// An assertion that will always <see langword="throw" /> an exception.
/// </summary>
/// <param name="message">Exception message.</param>
[Conditional("DEBUG")]
[ContractAnnotation("=> halt")]
public static void Assert(string message)
{
throw new DebugAssertException(message);
}
/// <summary>
/// An assertion that will <see langword="throw" /> an exception if the
/// <paramref name="condition" /> is not true.
/// </summary>
/// <param name="condition">Condition that must be true.</param>
[Conditional("DEBUG")]
[AssertionMethod]
public static void Assert([AssertionCondition(AssertionConditionType.IS_TRUE)]
bool condition)
{
if (!condition)
throw new DebugAssertException();
}
/// <summary>
/// An assertion that will <see langword="throw" /> an exception if the
/// <paramref name="condition" /> is not true.
/// </summary>
/// <param name="condition">Condition that must be true.</param>
/// <param name="message">Exception message.</param>
[Conditional("DEBUG")]
[AssertionMethod]
public static void Assert([AssertionCondition(AssertionConditionType.IS_TRUE)]
bool condition, string message)
{
if (!condition)
throw new DebugAssertException(message);
}
/// <summary>
/// An assertion that will <see langword="throw" /> an exception if the
/// <paramref name="arg" /> is <see langword="null" />.
/// </summary>
/// <param name="arg">Condition that must be true.</param>
[Conditional("DEBUG")]
[AssertionMethod]
public static void AssertNotNull([AssertionCondition(AssertionConditionType.IS_NOT_NULL)]
object arg)
{
if (arg == null)
{
throw new DebugAssertException();
}
}
/// <summary>
/// An assertion that will <see langword="throw" /> an exception if the
/// <paramref name="arg" /> is not <see langword="null" />.
/// </summary>
/// <param name="arg">Condition that must be true.</param>
[Conditional("DEBUG")]
[AssertionMethod]
public static void AssertNull([AssertionCondition(AssertionConditionType.IS_NULL)]
object arg)
{
if (arg != null)
{
throw new DebugAssertException();
}
}
}
public class DebugAssertException : Exception
{
public DebugAssertException()
{
}
public DebugAssertException(string message) : base(message)
{
}
}
}