diff --git a/OpenToolkit.GraphicsLibraryFramework/Enums/InputAction.cs b/OpenToolkit.GraphicsLibraryFramework/Enums/InputAction.cs
index 89426e15e..26360b990 100644
--- a/OpenToolkit.GraphicsLibraryFramework/Enums/InputAction.cs
+++ b/OpenToolkit.GraphicsLibraryFramework/Enums/InputAction.cs
@@ -13,7 +13,7 @@ namespace OpenToolkit.GraphicsLibraryFramework
/// Defines event information for
/// or .
///
- public enum InputAction
+ public enum InputAction : byte
{
///
/// The key or mouse button was released.
diff --git a/OpenToolkit.GraphicsLibraryFramework/Enums/KeyModifiers.cs b/OpenToolkit.GraphicsLibraryFramework/Enums/KeyModifiers.cs
index 5f42bffbe..92a571f7f 100644
--- a/OpenToolkit.GraphicsLibraryFramework/Enums/KeyModifiers.cs
+++ b/OpenToolkit.GraphicsLibraryFramework/Enums/KeyModifiers.cs
@@ -15,7 +15,7 @@ namespace OpenToolkit.GraphicsLibraryFramework
/// Key modifiers, such as Shift or CTRL.
///
[Flags]
- public enum KeyModifiers
+ public enum KeyModifiers : byte
{
///
/// if one or more Shift keys were held down.
diff --git a/OpenToolkit.GraphicsLibraryFramework/Enums/Keys.cs b/OpenToolkit.GraphicsLibraryFramework/Enums/Keys.cs
index f3fa6a6a8..99002820a 100644
--- a/OpenToolkit.GraphicsLibraryFramework/Enums/Keys.cs
+++ b/OpenToolkit.GraphicsLibraryFramework/Enums/Keys.cs
@@ -12,7 +12,7 @@ namespace OpenToolkit.GraphicsLibraryFramework
///
/// Specifies key codes and modifiers in US keyboard layout.
///
- public enum Keys
+ public enum Keys : short
{
///
/// An unknown key.
diff --git a/OpenToolkit.GraphicsLibraryFramework/Enums/MouseButton.cs b/OpenToolkit.GraphicsLibraryFramework/Enums/MouseButton.cs
index 3cefb322e..5fdad15e8 100644
--- a/OpenToolkit.GraphicsLibraryFramework/Enums/MouseButton.cs
+++ b/OpenToolkit.GraphicsLibraryFramework/Enums/MouseButton.cs
@@ -3,7 +3,7 @@ namespace OpenToolkit.GraphicsLibraryFramework
///
/// Specifies the buttons of a mouse.
///
- public enum MouseButton
+ public enum MouseButton : byte
{
///
/// The first button.
diff --git a/Robust.Client/Audio/Midi/MidiRenderer.cs b/Robust.Client/Audio/Midi/MidiRenderer.cs
index 1c06320f1..fa052d298 100644
--- a/Robust.Client/Audio/Midi/MidiRenderer.cs
+++ b/Robust.Client/Audio/Midi/MidiRenderer.cs
@@ -14,7 +14,7 @@ using MidiEvent = NFluidsynth.MidiEvent;
namespace Robust.Client.Audio.Midi
{
- public enum MidiRendererStatus
+ public enum MidiRendererStatus : byte
{
None,
Input,
diff --git a/Robust.Client/BaseClient.cs b/Robust.Client/BaseClient.cs
index be9707e4b..246b8ee50 100644
--- a/Robust.Client/BaseClient.cs
+++ b/Robust.Client/BaseClient.cs
@@ -223,7 +223,7 @@ namespace Robust.Client
///
/// Enumeration of the run levels of the BaseClient.
///
- public enum ClientRunLevel
+ public enum ClientRunLevel : byte
{
Error = 0,
diff --git a/Robust.Client/GameController.cs b/Robust.Client/GameController.cs
index b239280a5..3e09376c1 100644
--- a/Robust.Client/GameController.cs
+++ b/Robust.Client/GameController.cs
@@ -347,7 +347,7 @@ namespace Robust.Client
}
- internal enum DisplayMode
+ internal enum DisplayMode : byte
{
Headless,
Clyde,
diff --git a/Robust.Client/Graphics/Clyde/Clyde.Constants.cs b/Robust.Client/Graphics/Clyde/Clyde.Constants.cs
index 05faeff56..06388d504 100644
--- a/Robust.Client/Graphics/Clyde/Clyde.Constants.cs
+++ b/Robust.Client/Graphics/Clyde/Clyde.Constants.cs
@@ -35,7 +35,7 @@ namespace Robust.Client.Graphics.Clyde
// To be clear: You shouldn't change this. This just helps with understanding where Primitive Restart is being used.
private const ushort PrimitiveRestartIndex = ushort.MaxValue;
- private enum Renderer
+ private enum Renderer : short
{
// Default: Try all supported renderers (not necessarily the renderers shown here)
Default = default,
diff --git a/Robust.Client/Graphics/Clyde/Clyde.Rendering.cs b/Robust.Client/Graphics/Clyde/Clyde.Rendering.cs
index c4d8e1936..275631bff 100644
--- a/Robust.Client/Graphics/Clyde/Clyde.Rendering.cs
+++ b/Robust.Client/Graphics/Clyde/Clyde.Rendering.cs
@@ -970,7 +970,7 @@ namespace Robust.Client.Graphics.Clyde
public Color Color;
}
- private enum RenderCommandType
+ private enum RenderCommandType : byte
{
DrawBatch,
diff --git a/Robust.Client/Graphics/ClydeBase.cs b/Robust.Client/Graphics/ClydeBase.cs
index e02087a1b..5f8d611e8 100644
--- a/Robust.Client/Graphics/ClydeBase.cs
+++ b/Robust.Client/Graphics/ClydeBase.cs
@@ -8,7 +8,7 @@ using Robust.Shared.Maths;
namespace Robust.Client.Graphics
{
- public enum WindowMode
+ public enum WindowMode : byte
{
Windowed = 0,
Fullscreen = 1,
diff --git a/Robust.Client/Graphics/Drawing/DrawPrimitiveTopology.cs b/Robust.Client/Graphics/Drawing/DrawPrimitiveTopology.cs
index 83852d021..788993325 100644
--- a/Robust.Client/Graphics/Drawing/DrawPrimitiveTopology.cs
+++ b/Robust.Client/Graphics/Drawing/DrawPrimitiveTopology.cs
@@ -6,7 +6,7 @@ namespace Robust.Client.Graphics.Drawing
///
/// See Vulkan's documentation for descriptions of all these modes.
///
- public enum DrawPrimitiveTopology
+ public enum DrawPrimitiveTopology : byte
{
PointList,
TriangleList,
diff --git a/Robust.Client/Graphics/Drawing/StyleBox.cs b/Robust.Client/Graphics/Drawing/StyleBox.cs
index 34d584a75..76cd16213 100644
--- a/Robust.Client/Graphics/Drawing/StyleBox.cs
+++ b/Robust.Client/Graphics/Drawing/StyleBox.cs
@@ -318,7 +318,7 @@ namespace Robust.Client.Graphics.Drawing
/// Describes margins of a style box.
///
[Flags]
- public enum Margin
+ public enum Margin : byte
{
None = 0,
diff --git a/Robust.Client/Graphics/Drawing/StyleBoxTexture.cs b/Robust.Client/Graphics/Drawing/StyleBoxTexture.cs
index 8429401f2..50c87a495 100644
--- a/Robust.Client/Graphics/Drawing/StyleBoxTexture.cs
+++ b/Robust.Client/Graphics/Drawing/StyleBoxTexture.cs
@@ -329,7 +329,7 @@ namespace Robust.Client.Graphics.Drawing
///
/// Specifies how to stretch the sides and center of the style box.
///
- public enum StretchMode
+ public enum StretchMode : byte
{
Stretch,
Tile,
diff --git a/Robust.Client/Graphics/Overlays/Overlay.cs b/Robust.Client/Graphics/Overlays/Overlay.cs
index d1096be28..2f458cd3a 100644
--- a/Robust.Client/Graphics/Overlays/Overlay.cs
+++ b/Robust.Client/Graphics/Overlays/Overlay.cs
@@ -98,7 +98,7 @@ namespace Robust.Client.Graphics.Overlays
/// Determines in which canvas layers an overlay gets drawn.
///
[Flags]
- public enum OverlaySpace
+ public enum OverlaySpace : byte
{
///
/// Used for matching bit flags.
diff --git a/Robust.Client/Graphics/Shaders/Params.cs b/Robust.Client/Graphics/Shaders/Params.cs
index ac8aba811..9552ad240 100644
--- a/Robust.Client/Graphics/Shaders/Params.cs
+++ b/Robust.Client/Graphics/Shaders/Params.cs
@@ -1,6 +1,6 @@
namespace Robust.Client.Graphics.Shaders
{
- public enum ShaderParamType
+ public enum ShaderParamType : byte
{
// Can this even happen?
Void = 0,
diff --git a/Robust.Client/Graphics/Shaders/ParsedShader.cs b/Robust.Client/Graphics/Shaders/ParsedShader.cs
index 74dc20b63..1d9875e1a 100644
--- a/Robust.Client/Graphics/Shaders/ParsedShader.cs
+++ b/Robust.Client/Graphics/Shaders/ParsedShader.cs
@@ -106,7 +106,7 @@ namespace Robust.Client.Graphics.Shaders
[SuppressMessage("ReSharper", "InconsistentNaming")]
- internal enum ShaderDataType
+ internal enum ShaderDataType : byte
{
Void,
Bool,
@@ -160,7 +160,7 @@ namespace Robust.Client.Graphics.Shaders
}
return Type.GetNativeType();
}
-
+
public bool TypePrecisionConsistent()
{
return Type.TypeHasPrecision() == (Precision != ShaderPrecisionQualifier.None);
@@ -190,7 +190,7 @@ namespace Robust.Client.Graphics.Shaders
throw new ArgumentOutOfRangeException(nameof(qualifier), qualifier, null);
}
}
-
+
public static bool TypeHasPrecision(this ShaderDataType type)
{
return
@@ -232,13 +232,13 @@ namespace Robust.Client.Graphics.Shaders
};
}
- internal enum ShaderLightMode
+ internal enum ShaderLightMode : byte
{
Default = 0,
Unshaded = 1,
}
- internal enum ShaderBlendMode
+ internal enum ShaderBlendMode : byte
{
None,
Mix,
@@ -247,7 +247,7 @@ namespace Robust.Client.Graphics.Shaders
Multiply
}
- internal enum ShaderPreset
+ internal enum ShaderPreset : byte
{
Default,
Raw
@@ -255,7 +255,7 @@ namespace Robust.Client.Graphics.Shaders
// Yeah I had no idea what to name this.
[Flags]
- internal enum ShaderParameterQualifiers
+ internal enum ShaderParameterQualifiers : byte
{
None = 0,
In = 1,
@@ -263,7 +263,7 @@ namespace Robust.Client.Graphics.Shaders
Inout = 3,
}
- internal enum ShaderPrecisionQualifier
+ internal enum ShaderPrecisionQualifier : byte
{
None = 0,
Low = 1,
diff --git a/Robust.Client/Graphics/Shaders/ShaderParser.Tokenizer.cs b/Robust.Client/Graphics/Shaders/ShaderParser.Tokenizer.cs
index 727ee68aa..7e73767be 100644
--- a/Robust.Client/Graphics/Shaders/ShaderParser.Tokenizer.cs
+++ b/Robust.Client/Graphics/Shaders/ShaderParser.Tokenizer.cs
@@ -593,7 +593,7 @@ namespace Robust.Client.Graphics.Shaders
public Symbols Symbol { get; }
}
- private enum Symbols
+ private enum Symbols : byte
{
Semicolon,
Comma,
diff --git a/Robust.Client/Graphics/Shaders/ShaderPrototype.cs b/Robust.Client/Graphics/Shaders/ShaderPrototype.cs
index 6b39dc1a7..b2bbbe5a3 100644
--- a/Robust.Client/Graphics/Shaders/ShaderPrototype.cs
+++ b/Robust.Client/Graphics/Shaders/ShaderPrototype.cs
@@ -296,7 +296,7 @@ namespace Robust.Client.Graphics.Shaders
}
}
- private enum ShaderKind
+ private enum ShaderKind : byte
{
Source,
Canvas
diff --git a/Robust.Client/Graphics/Texture.cs b/Robust.Client/Graphics/Texture.cs
index cb6246b1f..10ef632db 100644
--- a/Robust.Client/Graphics/Texture.cs
+++ b/Robust.Client/Graphics/Texture.cs
@@ -189,7 +189,7 @@ namespace Robust.Client.Graphics
/// Controls behavior when reading texture coordinates outside 0-1, which usually wraps the texture somehow.
///
[PublicAPI]
- public enum TextureWrapMode
+ public enum TextureWrapMode : byte
{
///
/// Do not wrap, instead clamp to edge.
diff --git a/Robust.Client/Input/InputDevices.cs b/Robust.Client/Input/InputDevices.cs
index 961556e08..ac4878a7e 100644
--- a/Robust.Client/Input/InputDevices.cs
+++ b/Robust.Client/Input/InputDevices.cs
@@ -10,7 +10,7 @@ namespace Robust.Client.Input
///
/// Represents one of three mouse buttons.
///
- public enum Button
+ public enum Button : byte
{
Left = 1,
Middle = 2,
diff --git a/Robust.Client/Input/InputManager.cs b/Robust.Client/Input/InputManager.cs
index b9dc6d0a4..18dbb5389 100644
--- a/Robust.Client/Input/InputManager.cs
+++ b/Robust.Client/Input/InputManager.cs
@@ -772,14 +772,14 @@ namespace Robust.Client.Input
}
}
- public enum KeyBindingType
+ public enum KeyBindingType : byte
{
Unknown = 0,
State,
Toggle,
}
- public enum CommandState
+ public enum CommandState : byte
{
Unknown = 0,
Enabled,
diff --git a/Robust.Client/Interfaces/Graphics/ClydeDebugLayers.cs b/Robust.Client/Interfaces/Graphics/ClydeDebugLayers.cs
index 5a89b9e3f..c5e6cea1b 100644
--- a/Robust.Client/Interfaces/Graphics/ClydeDebugLayers.cs
+++ b/Robust.Client/Interfaces/Graphics/ClydeDebugLayers.cs
@@ -1,6 +1,6 @@
namespace Robust.Client.Interfaces.Graphics
{
- internal enum ClydeDebugLayers
+ internal enum ClydeDebugLayers : byte
{
None,
Fov,
diff --git a/Robust.Client/Interfaces/Graphics/ClydeStockTexture.cs b/Robust.Client/Interfaces/Graphics/ClydeStockTexture.cs
index 0e6bbf2b6..021a24694 100644
--- a/Robust.Client/Interfaces/Graphics/ClydeStockTexture.cs
+++ b/Robust.Client/Interfaces/Graphics/ClydeStockTexture.cs
@@ -1,6 +1,6 @@
namespace Robust.Client.Interfaces.Graphics
{
- internal enum ClydeStockTexture
+ internal enum ClydeStockTexture : byte
{
White,
Black,
diff --git a/Robust.Client/Interfaces/Graphics/RenderTargetColorFormat.cs b/Robust.Client/Interfaces/Graphics/RenderTargetColorFormat.cs
index cd0ab2dff..fdf202301 100644
--- a/Robust.Client/Interfaces/Graphics/RenderTargetColorFormat.cs
+++ b/Robust.Client/Interfaces/Graphics/RenderTargetColorFormat.cs
@@ -3,7 +3,7 @@ namespace Robust.Client.Interfaces.Graphics
///
/// Formats for the color component of a render target.
///
- public enum RenderTargetColorFormat
+ public enum RenderTargetColorFormat : byte
{
///
/// 8 bits per channel linear RGBA.
diff --git a/Robust.Client/Interfaces/Graphics/ScreenshotType.cs b/Robust.Client/Interfaces/Graphics/ScreenshotType.cs
index fa60c3041..fc825e4df 100644
--- a/Robust.Client/Interfaces/Graphics/ScreenshotType.cs
+++ b/Robust.Client/Interfaces/Graphics/ScreenshotType.cs
@@ -1,6 +1,6 @@
namespace Robust.Client.Interfaces.Graphics
{
- public enum ScreenshotType
+ public enum ScreenshotType : byte
{
BeforeUI,
AfterUI
diff --git a/Robust.Client/Interfaces/Graphics/StandardCursorShape.cs b/Robust.Client/Interfaces/Graphics/StandardCursorShape.cs
index 35d168191..9cfc30111 100644
--- a/Robust.Client/Interfaces/Graphics/StandardCursorShape.cs
+++ b/Robust.Client/Interfaces/Graphics/StandardCursorShape.cs
@@ -3,7 +3,7 @@ namespace Robust.Client.Interfaces.Graphics
///
/// OS-standard cursor shapes.
///
- public enum StandardCursorShape
+ public enum StandardCursorShape : byte
{
///
/// The standard arrow shape. Used in almost all situations.
diff --git a/Robust.Client/Placement/PlacementManager.cs b/Robust.Client/Placement/PlacementManager.cs
index a715820c7..d3d5246a6 100644
--- a/Robust.Client/Placement/PlacementManager.cs
+++ b/Robust.Client/Placement/PlacementManager.cs
@@ -618,7 +618,7 @@ namespace Robust.Client.Placement
NetworkManager.ClientSendMessage(message);
}
- public enum PlacementTypes
+ public enum PlacementTypes : byte
{
None = 0,
Line = 1,
diff --git a/Robust.Client/UserInterface/Control.Cursor.cs b/Robust.Client/UserInterface/Control.Cursor.cs
index 78164c3a3..62358b77c 100644
--- a/Robust.Client/UserInterface/Control.Cursor.cs
+++ b/Robust.Client/UserInterface/Control.Cursor.cs
@@ -11,7 +11,7 @@ namespace Robust.Client.UserInterface
///
/// Default common cursor shapes available in the UI.
///
- public enum CursorShape
+ public enum CursorShape: byte
{
Arrow,
IBeam,
diff --git a/Robust.Client/UserInterface/Control.cs b/Robust.Client/UserInterface/Control.cs
index 9aee0ac6e..7b5ca2dba 100644
--- a/Robust.Client/UserInterface/Control.cs
+++ b/Robust.Client/UserInterface/Control.cs
@@ -757,7 +757,7 @@ namespace Robust.Client.UserInterface
///
/// Mode that will be tested when testing controls to invoke mouse button events on.
///
- public enum MouseFilterMode
+ public enum MouseFilterMode : byte
{
///
/// The control will be able to receive mouse buttons events.
diff --git a/Robust.Client/UserInterface/Controls/BaseButton.cs b/Robust.Client/UserInterface/Controls/BaseButton.cs
index 4ac8f1837..ce9558064 100644
--- a/Robust.Client/UserInterface/Controls/BaseButton.cs
+++ b/Robust.Client/UserInterface/Controls/BaseButton.cs
@@ -318,7 +318,7 @@ namespace Robust.Client.UserInterface.Controls
}
}
- public enum DrawModeEnum
+ public enum DrawModeEnum : byte
{
Normal = 0,
Pressed = 1,
@@ -361,7 +361,7 @@ namespace Robust.Client.UserInterface.Controls
///
/// For use with .
///
- public enum ActionMode
+ public enum ActionMode : byte
{
///
/// fires when the mouse button causing them is pressed down.
diff --git a/Robust.Client/UserInterface/Controls/BoxContainer.cs b/Robust.Client/UserInterface/Controls/BoxContainer.cs
index 67304c772..1f3fec5fa 100644
--- a/Robust.Client/UserInterface/Controls/BoxContainer.cs
+++ b/Robust.Client/UserInterface/Controls/BoxContainer.cs
@@ -210,7 +210,7 @@ namespace Robust.Client.UserInterface.Controls
return new Vector2(minWidth, minHeight);
}
- public enum AlignMode
+ public enum AlignMode : byte
{
///
/// Controls are laid out from the begin of the box container.
diff --git a/Robust.Client/UserInterface/Controls/GridContainer.cs b/Robust.Client/UserInterface/Controls/GridContainer.cs
index e01a85bd8..0ae8ee18b 100644
--- a/Robust.Client/UserInterface/Controls/GridContainer.cs
+++ b/Robust.Client/UserInterface/Controls/GridContainer.cs
@@ -557,13 +557,13 @@ namespace Robust.Client.UserInterface.Controls
}
}
- public enum Dimension
+ public enum Dimension : byte
{
Column,
Row
}
- public enum LimitType
+ public enum LimitType : byte
{
///
/// Defined number of rows or columns
diff --git a/Robust.Client/UserInterface/Controls/ItemList.cs b/Robust.Client/UserInterface/Controls/ItemList.cs
index e55f3c7dd..fd1e08441 100644
--- a/Robust.Client/UserInterface/Controls/ItemList.cs
+++ b/Robust.Client/UserInterface/Controls/ItemList.cs
@@ -570,7 +570,7 @@ namespace Robust.Client.UserInterface.Controls
}
}
- public enum ItemListSelectMode
+ public enum ItemListSelectMode : byte
{
None,
Single,
diff --git a/Robust.Client/UserInterface/Controls/Label.cs b/Robust.Client/UserInterface/Controls/Label.cs
index 65848c72c..1e49b16e4 100644
--- a/Robust.Client/UserInterface/Controls/Label.cs
+++ b/Robust.Client/UserInterface/Controls/Label.cs
@@ -194,7 +194,7 @@ namespace Robust.Client.UserInterface.Controls
}
}
- public enum AlignMode
+ public enum AlignMode : byte
{
Left = 0,
Center = 1,
@@ -202,7 +202,7 @@ namespace Robust.Client.UserInterface.Controls
Fill = 3
}
- public enum VAlignMode
+ public enum VAlignMode : byte
{
Top = 0,
Center = 1,
diff --git a/Robust.Client/UserInterface/Controls/LineEdit.cs b/Robust.Client/UserInterface/Controls/LineEdit.cs
index 4dc839f5d..4040af1e2 100644
--- a/Robust.Client/UserInterface/Controls/LineEdit.cs
+++ b/Robust.Client/UserInterface/Controls/LineEdit.cs
@@ -711,7 +711,7 @@ namespace Robust.Client.UserInterface.Controls
return CharClass.Other;
}
- private enum CharClass
+ private enum CharClass : byte
{
Other,
AlphaNumeric,
diff --git a/Robust.Client/UserInterface/Controls/ScrollBar.cs b/Robust.Client/UserInterface/Controls/ScrollBar.cs
index e816fc12d..46892caa3 100644
--- a/Robust.Client/UserInterface/Controls/ScrollBar.cs
+++ b/Robust.Client/UserInterface/Controls/ScrollBar.cs
@@ -225,7 +225,7 @@ namespace Robust.Client.UserInterface.Controls
return _getGrabberStyleBox()?.MinimumSize ?? Vector2.Zero;
}
- protected enum OrientationMode
+ protected enum OrientationMode : byte
{
Horizontal,
Vertical
diff --git a/Robust.Client/UserInterface/Controls/SplitContainer.cs b/Robust.Client/UserInterface/Controls/SplitContainer.cs
index b30910942..fe4a297f3 100644
--- a/Robust.Client/UserInterface/Controls/SplitContainer.cs
+++ b/Robust.Client/UserInterface/Controls/SplitContainer.cs
@@ -230,7 +230,7 @@ namespace Robust.Client.UserInterface.Controls
///
/// Defines how user-initiated moving of the split should work
///
- public enum SplitResizeMode
+ public enum SplitResizeMode : sbyte
{
///
/// Don't allow user to move the split.
@@ -249,7 +249,7 @@ namespace Robust.Client.UserInterface.Controls
///
/// Defines how the split position should be determined
///
- private enum SplitState
+ private enum SplitState : byte
{
///
/// Automatically adjust the split based on the width of the children
diff --git a/Robust.Client/UserInterface/Controls/TextureRect.cs b/Robust.Client/UserInterface/Controls/TextureRect.cs
index 9adada4c4..e35e7b5b8 100644
--- a/Robust.Client/UserInterface/Controls/TextureRect.cs
+++ b/Robust.Client/UserInterface/Controls/TextureRect.cs
@@ -173,7 +173,7 @@ namespace Robust.Client.UserInterface.Controls
}
}
- public enum StretchMode
+ public enum StretchMode : byte
{
///
/// The texture is stretched to fit the entire area of the control.
diff --git a/Robust.Client/UserInterface/CustomControls/BaseWindow.cs b/Robust.Client/UserInterface/CustomControls/BaseWindow.cs
index 787602bd0..7504e47b2 100644
--- a/Robust.Client/UserInterface/CustomControls/BaseWindow.cs
+++ b/Robust.Client/UserInterface/CustomControls/BaseWindow.cs
@@ -255,7 +255,7 @@ namespace Robust.Client.UserInterface.CustomControls
}
[Flags]
- protected enum DragMode
+ protected enum DragMode : byte
{
None = 0,
Move = 1,
diff --git a/Robust.Client/ViewVariables/Editors/VVPropEditorNumeric.cs b/Robust.Client/ViewVariables/Editors/VVPropEditorNumeric.cs
index 8174dde54..7d7f33b3d 100644
--- a/Robust.Client/ViewVariables/Editors/VVPropEditorNumeric.cs
+++ b/Robust.Client/ViewVariables/Editors/VVPropEditorNumeric.cs
@@ -67,7 +67,7 @@ namespace Robust.Client.ViewVariables.Editors
return convert.ToString(CultureInfo.InvariantCulture);
}
- public enum NumberType
+ public enum NumberType : byte
{
Byte,
SByte,
diff --git a/Robust.Client/ViewVariables/Editors/VVPropEditorUIBox2.cs b/Robust.Client/ViewVariables/Editors/VVPropEditorUIBox2.cs
index 17d0370e4..b45ab1d86 100644
--- a/Robust.Client/ViewVariables/Editors/VVPropEditorUIBox2.cs
+++ b/Robust.Client/ViewVariables/Editors/VVPropEditorUIBox2.cs
@@ -174,7 +174,7 @@ namespace Robust.Client.ViewVariables.Editors
return hBoxContainer;
}
- public enum BoxType
+ public enum BoxType : byte
{
Box2,
Box2i,
diff --git a/Robust.Shared.Maths/Color.cs b/Robust.Shared.Maths/Color.cs
index bda9b5115..a8602e591 100644
--- a/Robust.Shared.Maths/Color.cs
+++ b/Robust.Shared.Maths/Color.cs
@@ -1009,7 +1009,7 @@ namespace Robust.Shared.Maths
}
[PublicAPI]
- public enum BlendFactor
+ public enum BlendFactor : byte
{
Zero,
One,
diff --git a/Robust.Shared.Maths/Direction.cs b/Robust.Shared.Maths/Direction.cs
index 642cf62b9..7d8e9921c 100644
--- a/Robust.Shared.Maths/Direction.cs
+++ b/Robust.Shared.Maths/Direction.cs
@@ -3,7 +3,7 @@
namespace Robust.Shared.Maths
{
[Flags]
- public enum Direction
+ public enum Direction : sbyte
{
Invalid = -1,
East = 0,
diff --git a/Robust.Shared/Animations/AnimationInterpolationMode.cs b/Robust.Shared/Animations/AnimationInterpolationMode.cs
index 639017829..f13d88a7c 100644
--- a/Robust.Shared/Animations/AnimationInterpolationMode.cs
+++ b/Robust.Shared/Animations/AnimationInterpolationMode.cs
@@ -3,7 +3,7 @@ namespace Robust.Shared.Animations
///
/// Specifies how animated properties are interpolated between two keyframes.
///
- public enum AnimationInterpolationMode
+ public enum AnimationInterpolationMode: byte
{
///
/// Use a linear interpolation for supported values.
diff --git a/Robust.Shared/Configuration/CVar.cs b/Robust.Shared/Configuration/CVar.cs
index 88fee5788..8328ee8b7 100644
--- a/Robust.Shared/Configuration/CVar.cs
+++ b/Robust.Shared/Configuration/CVar.cs
@@ -6,7 +6,7 @@ namespace Robust.Shared.Configuration
/// Extra flags for changing the behavior of a config var.
///
[Flags]
- public enum CVar
+ public enum CVar : short
{
///
/// No special flags.
diff --git a/Robust.Shared/ContentPack/AssemblyTypeChecker.Config.cs b/Robust.Shared/ContentPack/AssemblyTypeChecker.Config.cs
index 228efb8ba..2308816d9 100644
--- a/Robust.Shared/ContentPack/AssemblyTypeChecker.Config.cs
+++ b/Robust.Shared/ContentPack/AssemblyTypeChecker.Config.cs
@@ -108,7 +108,7 @@ namespace Robust.Shared.ContentPack
}
#pragma warning restore 649
- private enum InheritMode
+ private enum InheritMode : byte
{
// Allow if All is set, block otherwise
Default,
diff --git a/Robust.Shared/ContentPack/AssemblyTypeChecker.cs b/Robust.Shared/ContentPack/AssemblyTypeChecker.cs
index 608cda9f2..a254d41ce 100644
--- a/Robust.Shared/ContentPack/AssemblyTypeChecker.cs
+++ b/Robust.Shared/ContentPack/AssemblyTypeChecker.cs
@@ -845,7 +845,7 @@ namespace Robust.Shared.ContentPack
}
[Flags]
- public enum DumpFlags
+ public enum DumpFlags : byte
{
None = 0,
Types = 1,
diff --git a/Robust.Shared/ContentPack/ModRunLevel.cs b/Robust.Shared/ContentPack/ModRunLevel.cs
index b9c936958..6b7dbad6f 100644
--- a/Robust.Shared/ContentPack/ModRunLevel.cs
+++ b/Robust.Shared/ContentPack/ModRunLevel.cs
@@ -3,7 +3,7 @@
///
/// Run levels of the Content entry point.
///
- public enum ModRunLevel
+ public enum ModRunLevel: byte
{
Error = 0,
Init = 1,
diff --git a/Robust.Shared/ContentPack/ModUpdateLevel.cs b/Robust.Shared/ContentPack/ModUpdateLevel.cs
index f2b5a0d5c..c70a1bcc6 100644
--- a/Robust.Shared/ContentPack/ModUpdateLevel.cs
+++ b/Robust.Shared/ContentPack/ModUpdateLevel.cs
@@ -3,7 +3,7 @@
///
/// Levels at which point the content assemblies are getting updates.
///
- public enum ModUpdateLevel
+ public enum ModUpdateLevel : byte
{
///
/// This update is called before the main state manager on process frames.
diff --git a/Robust.Shared/Enums/NetworkEnums.cs b/Robust.Shared/Enums/NetworkEnums.cs
index 59c3b54bf..0189e2bc9 100644
--- a/Robust.Shared/Enums/NetworkEnums.cs
+++ b/Robust.Shared/Enums/NetworkEnums.cs
@@ -1,6 +1,6 @@
namespace Robust.Shared.Enums
{
- public enum PlacementManagerMessage
+ public enum PlacementManagerMessage : byte
{
StartPlacement,
CancelPlacement,
@@ -18,7 +18,7 @@
Disconnected
}
- public enum NetworkDataType
+ public enum NetworkDataType: byte
{
d_enum,
d_bool,
diff --git a/Robust.Shared/GameObjects/Components/Collidable/PhysicsComponent.Collision.cs b/Robust.Shared/GameObjects/Components/Collidable/PhysicsComponent.Collision.cs
index 3269ce1eb..9dcf003e1 100644
--- a/Robust.Shared/GameObjects/Components/Collidable/PhysicsComponent.Collision.cs
+++ b/Robust.Shared/GameObjects/Components/Collidable/PhysicsComponent.Collision.cs
@@ -505,7 +505,7 @@ namespace Robust.Shared.GameObjects.Components
}
[Serializable, NetSerializable]
- public enum BodyStatus
+ public enum BodyStatus: byte
{
OnGround,
InAir
diff --git a/Robust.Shared/GameObjects/Components/Transform/SnapGridComponent.cs b/Robust.Shared/GameObjects/Components/Transform/SnapGridComponent.cs
index e75deeb63..2e9264cd0 100644
--- a/Robust.Shared/GameObjects/Components/Transform/SnapGridComponent.cs
+++ b/Robust.Shared/GameObjects/Components/Transform/SnapGridComponent.cs
@@ -196,7 +196,7 @@ namespace Robust.Shared.GameObjects.Components.Transform
}
}
- public enum SnapGridOffset
+ public enum SnapGridOffset: byte
{
///
/// Center snap grid (wires, pipes, ...).
diff --git a/Robust.Shared/GameObjects/EntityEventBus.cs b/Robust.Shared/GameObjects/EntityEventBus.cs
index e04426b36..445866352 100644
--- a/Robust.Shared/GameObjects/EntityEventBus.cs
+++ b/Robust.Shared/GameObjects/EntityEventBus.cs
@@ -83,7 +83,7 @@ namespace Robust.Shared.GameObjects
}
[Flags]
- public enum EventSource
+ public enum EventSource : byte
{
None = 0b0000,
Local = 0b0001,
diff --git a/Robust.Shared/GameObjects/EntityManager.cs b/Robust.Shared/GameObjects/EntityManager.cs
index f469cf4ea..a0fd6014f 100644
--- a/Robust.Shared/GameObjects/EntityManager.cs
+++ b/Robust.Shared/GameObjects/EntityManager.cs
@@ -672,7 +672,7 @@ namespace Robust.Shared.GameObjects
}
- public enum EntityMessageType
+ public enum EntityMessageType : byte
{
Error = 0,
ComponentMessage,
diff --git a/Robust.Shared/Interfaces/GameObjects/IComponentFactory.cs b/Robust.Shared/Interfaces/GameObjects/IComponentFactory.cs
index bb653a030..2b55efdbb 100644
--- a/Robust.Shared/Interfaces/GameObjects/IComponentFactory.cs
+++ b/Robust.Shared/Interfaces/GameObjects/IComponentFactory.cs
@@ -10,7 +10,7 @@ namespace Robust.Shared.Interfaces.GameObjects
/// This distinction is important because prototypes are shared across client and server, but the two might have different components.
///
///
- public enum ComponentAvailability
+ public enum ComponentAvailability : byte
{
///
/// The component is available and can be instantiated.
@@ -213,7 +213,7 @@ namespace Robust.Shared.Interfaces.GameObjects
/// The registration if found, null otherwise.
/// true it found, false otherwise.
bool TryGetRegistration(IComponent component, [NotNullWhen(true)] out IComponentRegistration? registration);
-
+
///
/// Automatically create registrations for all components with a
///
diff --git a/Robust.Shared/Interfaces/Network/IClientNetManager.cs b/Robust.Shared/Interfaces/Network/IClientNetManager.cs
index de047566d..599d8d43e 100644
--- a/Robust.Shared/Interfaces/Network/IClientNetManager.cs
+++ b/Robust.Shared/Interfaces/Network/IClientNetManager.cs
@@ -43,7 +43,7 @@ namespace Robust.Shared.Interfaces.Network
void ClientDisconnect(string reason);
}
- public enum ClientConnectionState
+ public enum ClientConnectionState : byte
{
///
/// We are not connected and not trying to get connected either. Quite lonely huh.
diff --git a/Robust.Shared/Interfaces/Network/NetMessageAccept.cs b/Robust.Shared/Interfaces/Network/NetMessageAccept.cs
index a7f4afce2..e84004061 100644
--- a/Robust.Shared/Interfaces/Network/NetMessageAccept.cs
+++ b/Robust.Shared/Interfaces/Network/NetMessageAccept.cs
@@ -6,7 +6,7 @@ namespace Robust.Shared.Interfaces.Network
/// Defines on which side of the network a net message can be accepted.
///
[Flags]
- public enum NetMessageAccept
+ public enum NetMessageAccept : byte
{
None = 0,
diff --git a/Robust.Shared/Localization/Macros/Attributes.cs b/Robust.Shared/Localization/Macros/Attributes.cs
index 6e859cf41..ee98677ab 100644
--- a/Robust.Shared/Localization/Macros/Attributes.cs
+++ b/Robust.Shared/Localization/Macros/Attributes.cs
@@ -6,7 +6,7 @@ namespace Robust.Shared.Localization.Macros
///
/// Genders for grammatical usage only.
///
- public enum Gender
+ public enum Gender : byte
{
Epicene,
Female,
diff --git a/Robust.Shared/Log/LogLevel.cs b/Robust.Shared/Log/LogLevel.cs
index 0b4d3f4cf..b78c33dd9 100644
--- a/Robust.Shared/Log/LogLevel.cs
+++ b/Robust.Shared/Log/LogLevel.cs
@@ -6,7 +6,7 @@ namespace Robust.Shared.Log
/// The value associated with the level determines the order in which they are filtered,
/// Under the default .
///
- public enum LogLevel
+ public enum LogLevel : byte
{
///
/// When you're *really* trying to track down that bug.
diff --git a/Robust.Shared/Network/AuthMode.cs b/Robust.Shared/Network/AuthMode.cs
index 16730757a..ce362fcea 100644
--- a/Robust.Shared/Network/AuthMode.cs
+++ b/Robust.Shared/Network/AuthMode.cs
@@ -1,6 +1,6 @@
namespace Robust.Shared.Network
{
- public enum AuthMode
+ public enum AuthMode : byte
{
Optional = 0,
Required = 1,
diff --git a/Robust.Shared/Network/NetMessage.cs b/Robust.Shared/Network/NetMessage.cs
index c0878529f..5638f19c6 100644
--- a/Robust.Shared/Network/NetMessage.cs
+++ b/Robust.Shared/Network/NetMessage.cs
@@ -9,7 +9,7 @@ namespace Robust.Shared.Network
///
/// The group the message belongs to, used for statistics and packet channels.
///
- public enum MsgGroups
+ public enum MsgGroups : byte
{
///
/// Error state, the message needs to set a different one.
diff --git a/Robust.Shared/Noise/FastNoise.cs b/Robust.Shared/Noise/FastNoise.cs
index bcbc86aea..0c76bcc1a 100644
--- a/Robust.Shared/Noise/FastNoise.cs
+++ b/Robust.Shared/Noise/FastNoise.cs
@@ -46,7 +46,7 @@ namespace Robust.Shared.Noise
private const MethodImplOptions FN_INLINE = MethodImplOptions.AggressiveInlining;
private const int FN_CELLULAR_INDEX_MAX = 3;
- public enum NoiseType
+ public enum NoiseType : byte
{
Value,
ValueFractal,
@@ -60,28 +60,28 @@ namespace Robust.Shared.Noise
CubicFractal
};
- public enum Interp
+ public enum Interp : byte
{
Linear,
Hermite,
Quintic
};
- public enum FractalType
+ public enum FractalType : byte
{
FBM,
Billow,
RigidMulti
};
- public enum CellularDistanceFunction
+ public enum CellularDistanceFunction : byte
{
Euclidean,
Manhattan,
Natural
};
- public enum CellularReturnType
+ public enum CellularReturnType : byte
{
CellValue,
NoiseLookup,
diff --git a/Robust.Shared/Noise/NoiseGenerator.cs b/Robust.Shared/Noise/NoiseGenerator.cs
index 8abae66d1..bede3feb4 100644
--- a/Robust.Shared/Noise/NoiseGenerator.cs
+++ b/Robust.Shared/Noise/NoiseGenerator.cs
@@ -8,7 +8,7 @@ namespace Robust.Shared.Noise
public sealed class NoiseGenerator
{
[PublicAPI]
- public enum NoiseType
+ public enum NoiseType : byte
{
Fbm = 0,
Ridged = 1
diff --git a/Robust.Shared/Physics/BodyType.cs b/Robust.Shared/Physics/BodyType.cs
index db64c132b..aea11418d 100644
--- a/Robust.Shared/Physics/BodyType.cs
+++ b/Robust.Shared/Physics/BodyType.cs
@@ -7,7 +7,7 @@ namespace Robust.Shared.Physics
/// The properties of physical body. This determines how collisions will effect this body.
///
[Serializable, NetSerializable]
- public enum BodyType
+ public enum BodyType : byte
{
///
/// Will not be processed by the collision system. Basically "out of phase" with the world.
diff --git a/Robust.Shared/Timing/GameLoop.cs b/Robust.Shared/Timing/GameLoop.cs
index 0f773b97f..53cf77320 100644
--- a/Robust.Shared/Timing/GameLoop.cs
+++ b/Robust.Shared/Timing/GameLoop.cs
@@ -282,7 +282,7 @@ namespace Robust.Shared.Timing
///
/// Methods the GameLoop can use to limit the Update rate.
///
- public enum SleepMode
+ public enum SleepMode : sbyte
{
///
/// Thread will not yield to the scheduler or sleep, and consume 100% cpu. Use this if you are
diff --git a/Robust.Shared/Utility/QuadTree.cs b/Robust.Shared/Utility/QuadTree.cs
index d7959d96b..a6ce3f072 100644
--- a/Robust.Shared/Utility/QuadTree.cs
+++ b/Robust.Shared/Utility/QuadTree.cs
@@ -512,7 +512,7 @@ namespace Robust.Shared.Utility
}
}
- public enum DiRectangleFion : int
+ public enum DiRectangleFion : byte
{
NW = 0,
NE = 1,
diff --git a/Robust.Shared/ViewVariables/ViewVariablesAttribute.cs b/Robust.Shared/ViewVariables/ViewVariablesAttribute.cs
index 7d12873f3..4de1dec51 100644
--- a/Robust.Shared/ViewVariables/ViewVariablesAttribute.cs
+++ b/Robust.Shared/ViewVariables/ViewVariablesAttribute.cs
@@ -21,7 +21,7 @@ namespace Robust.Shared.ViewVariables
}
}
- public enum VVAccess
+ public enum VVAccess : byte
{
///
/// This property can only be read, not written.
diff --git a/Robust.Shared/ViewVariables/ViewVariablesTraits.cs b/Robust.Shared/ViewVariables/ViewVariablesTraits.cs
index 0842b0507..767a1fd8b 100644
--- a/Robust.Shared/ViewVariables/ViewVariablesTraits.cs
+++ b/Robust.Shared/ViewVariables/ViewVariablesTraits.cs
@@ -8,7 +8,7 @@ namespace Robust.Shared.ViewVariables
/// Pre-defined simple VV traits used by the engine.
///
[Serializable, NetSerializable]
- public enum ViewVariablesTraits
+ public enum ViewVariablesTraits : byte
{
///
/// This object has VV-accessible members (field or property with the .
diff --git a/Robust.UnitTesting/RobustUnitTest.cs b/Robust.UnitTesting/RobustUnitTest.cs
index ed25a1f15..0350341b0 100644
--- a/Robust.UnitTesting/RobustUnitTest.cs
+++ b/Robust.UnitTesting/RobustUnitTest.cs
@@ -16,7 +16,7 @@ using Robust.Shared.Utility;
namespace Robust.UnitTesting
{
- public enum UnitTestProject
+ public enum UnitTestProject : byte
{
Server,
Client
diff --git a/Robust.UnitTesting/Shared/Maths/NumericsHelpers_Test.cs b/Robust.UnitTesting/Shared/Maths/NumericsHelpers_Test.cs
index be1443484..91ad52a38 100644
--- a/Robust.UnitTesting/Shared/Maths/NumericsHelpers_Test.cs
+++ b/Robust.UnitTesting/Shared/Maths/NumericsHelpers_Test.cs
@@ -29,7 +29,7 @@ namespace Robust.UnitTesting.Shared.Maths
}
[Flags]
- enum Intrinsics
+ enum Intrinsics : byte
{
None = 0,
Sse = 1 << 1,
diff --git a/Robust.UnitTesting/Shared/Prototypes/PrototypeManager_Test.cs b/Robust.UnitTesting/Shared/Prototypes/PrototypeManager_Test.cs
index b6a424868..7274079da 100644
--- a/Robust.UnitTesting/Shared/Prototypes/PrototypeManager_Test.cs
+++ b/Robust.UnitTesting/Shared/Prototypes/PrototypeManager_Test.cs
@@ -98,7 +98,7 @@ namespace Robust.UnitTesting.Shared.Prototypes
Assert.That(prototype.PlacementMode, Is.EqualTo("SnapgridCenter"));
}
- private enum YamlTestEnum
+ private enum YamlTestEnum : byte
{
Foo,
Bar