mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 17:47:24 +02:00
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace Robust.Shared.GameObjects
|
|
{
|
|
// If you wanna use these, add it to some random prototype.
|
|
// I recommend the #1 mug:
|
|
// 1. it doesn't spawn on the map (currently).
|
|
// 2. it's at the top of the entity list (currently).
|
|
// 3. it crashed the game before, it's iconic!
|
|
|
|
/// <summary>
|
|
/// Throws an exception in <see cref="OnAdd" />.
|
|
/// </summary>
|
|
public sealed class DebugExceptionOnAddComponent : Component
|
|
{
|
|
protected override void OnAdd() => throw new NotSupportedException();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Throws an exception in <see cref="Initialize" />.
|
|
/// </summary>
|
|
public sealed class DebugExceptionInitializeComponent : Component
|
|
{
|
|
protected override void Initialize() => throw new NotSupportedException();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Throws an exception in <see cref="Startup" />.
|
|
/// </summary>
|
|
public sealed class DebugExceptionStartupComponent : Component
|
|
{
|
|
protected override void Startup() => throw new NotSupportedException();
|
|
}
|
|
}
|