Added enum types (#2701)

This commit is contained in:
ColdAutumnRain
2020-12-04 11:57:33 +01:00
committed by GitHub
parent 216a47dddc
commit 266d2909d7
50 changed files with 52 additions and 51 deletions

View File

@@ -12,7 +12,7 @@ namespace Content.Client.Chat
{ {
public abstract class SpeechBubble : Control public abstract class SpeechBubble : Control
{ {
public enum SpeechType public enum SpeechType : byte
{ {
Emote, Emote,
Say Say

View File

@@ -81,7 +81,7 @@ namespace Content.Client.GameObjects.Components.Atmos
} }
} }
public enum FireVisualLayers public enum FireVisualLayers : byte
{ {
Fire Fire
} }

View File

@@ -66,7 +66,7 @@ namespace Content.Client.GameObjects.Components.Atmos
return stateId; return stateId;
} }
private enum Layer private enum Layer : byte
{ {
PipeBase, PipeBase,
} }

View File

@@ -41,7 +41,7 @@ namespace Content.Client.GameObjects.Components.Atmos
sprite.LayerSetVisible(pumpEnabledLayer, pumpVisualState.PumpEnabled); sprite.LayerSetVisible(pumpEnabledLayer, pumpVisualState.PumpEnabled);
} }
public enum Layer public enum Layer : byte
{ {
PumpEnabled, PumpEnabled,
} }

View File

@@ -64,7 +64,7 @@ namespace Content.Client.GameObjects.Components.Atmos
sprite.LayerSetVisible(baseSiphonLayer, true); sprite.LayerSetVisible(baseSiphonLayer, true);
} }
private enum Layer private enum Layer : byte
{ {
SiphonBase, SiphonBase,
} }

View File

@@ -94,7 +94,7 @@ namespace Content.Client.GameObjects.Components.Atmos
} }
} }
public enum VaporVisualLayers public enum VaporVisualLayers : byte
{ {
Base Base
} }

View File

@@ -64,7 +64,7 @@ namespace Content.Client.GameObjects.Components.Atmos
sprite.LayerSetVisible(baseVentLayer, true); sprite.LayerSetVisible(baseVentLayer, true);
} }
private enum Layer private enum Layer : byte
{ {
VentBase, VentBase,
} }

View File

@@ -93,7 +93,7 @@ namespace Content.Client.GameObjects.Components.Botany
} }
} }
public enum PlantHolderLayers public enum PlantHolderLayers : byte
{ {
Plant, Plant,
HealthLight, HealthLight,

View File

@@ -32,7 +32,7 @@ namespace Content.Client.GameObjects.Components.CloningPod
} }
} }
public enum CloningPodVisualLayers public enum CloningPodVisualLayers : byte
{ {
Machine, Machine,
} }

View File

@@ -91,7 +91,7 @@ namespace Content.Client.GameObjects.Components.Clothing
} }
} }
public enum FemaleClothingMask public enum FemaleClothingMask : byte
{ {
NoMask = 0, NoMask = 0,
UniformFull, UniformFull,

View File

@@ -85,7 +85,7 @@ namespace Content.Client.GameObjects.Components
} }
} }
public enum Layers public enum Layers : byte
{ {
Body, Body,
Screen, Screen,

View File

@@ -154,7 +154,7 @@ namespace Content.Client.GameObjects.Components.Disposal
} }
} }
public enum DisposalUnitVisualLayers public enum DisposalUnitVisualLayers : byte
{ {
Base, Base,
Handle, Handle,

View File

@@ -167,7 +167,7 @@ namespace Content.Client.GameObjects.Components.Doors
} }
} }
public enum DoorVisualLayers public enum DoorVisualLayers : byte
{ {
Base, Base,
BaseUnlit, BaseUnlit,

View File

@@ -44,7 +44,7 @@ namespace Content.Client.GameObjects.Components.Fluids
} }
} }
public enum SprayVisualLayers public enum SprayVisualLayers : byte
{ {
Base Base
} }

View File

@@ -60,7 +60,7 @@ namespace Content.Client.GameObjects.Components.Gravity
} }
} }
public enum GravityGeneratorVisualLayers public enum GravityGeneratorVisualLayers : byte
{ {
Base, Base,
Core Core

View File

@@ -277,7 +277,7 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
Clockwise = 4, Clockwise = 4,
} }
public enum CornerLayers public enum CornerLayers : byte
{ {
SE, SE,
NE, NE,
@@ -290,7 +290,7 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
/// Controls the mode with which icon smoothing is calculated. /// Controls the mode with which icon smoothing is calculated.
/// </summary> /// </summary>
[PublicAPI] [PublicAPI]
public enum IconSmoothingMode public enum IconSmoothingMode : byte
{ {
/// <summary> /// <summary>
/// Each icon is made up of 4 corners, each of which can get a different state depending on /// Each icon is made up of 4 corners, each of which can get a different state depending on

View File

@@ -53,7 +53,7 @@ namespace Content.Client.GameObjects.Components.Kitchen
sprite.LayerSetVisible(MicrowaveVisualizerLayers.BaseUnlit, glowingPartsVisible); sprite.LayerSetVisible(MicrowaveVisualizerLayers.BaseUnlit, glowingPartsVisible);
} }
private enum MicrowaveVisualizerLayers private enum MicrowaveVisualizerLayers : byte
{ {
Base, Base,
BaseUnlit BaseUnlit

View File

@@ -217,7 +217,7 @@ namespace Content.Client.GameObjects.Components
} }
[SuppressMessage("ReSharper", "InconsistentNaming")] [SuppressMessage("ReSharper", "InconsistentNaming")]
private enum OverCornerLayers private enum OverCornerLayers : byte
{ {
SE, SE,
NE, NE,

View File

@@ -48,7 +48,7 @@ namespace Content.Client.GameObjects.Components.MedicalScanner
} }
} }
public enum MedicalScannerVisualLayers public enum MedicalScannerVisualLayers : byte
{ {
Machine, Machine,
Terminal, Terminal,

View File

@@ -71,7 +71,7 @@ namespace Content.Client.GameObjects.Components.Mobs
} }
} }
public enum DamageStateVisualLayers public enum DamageStateVisualLayers : byte
{ {
Base Base
} }

View File

@@ -23,7 +23,7 @@ namespace Content.Client.GameObjects.Components.Morgue
} }
} }
public enum BodyBagVisualLayers public enum BodyBagVisualLayers : byte
{ {
Label, Label,
} }

View File

@@ -69,7 +69,7 @@ namespace Content.Client.GameObjects.Components.Storage
} }
} }
public enum CrematoriumVisualLayers public enum CrematoriumVisualLayers : byte
{ {
Base, Base,
Light, Light,

View File

@@ -75,7 +75,7 @@ namespace Content.Client.GameObjects.Components.Storage
} }
} }
public enum MorgueVisualLayers public enum MorgueVisualLayers : byte
{ {
Base, Base,
Light, Light,

View File

@@ -48,7 +48,7 @@ namespace Content.Client.GameObjects.Components.Movement
} }
} }
enum Layers enum Layers : byte
{ {
Portal Portal
} }

View File

@@ -53,7 +53,7 @@ namespace Content.Client.GameObjects.Components.Nutrition
} }
} }
public enum CreamPiedVisualLayers public enum CreamPiedVisualLayers : byte
{ {
Pie, Pie,
} }

View File

@@ -17,7 +17,7 @@ namespace Content.Client.GameObjects.Components.PDA
/// </summary> /// </summary>
private string _state; private string _state;
private enum PDAVisualLayers private enum PDAVisualLayers : byte
{ {
Base, Base,
Flashlight, Flashlight,

View File

@@ -46,7 +46,7 @@ namespace Content.Client.GameObjects.Components.Power.AME
} }
} }
enum Layers enum Layers : byte
{ {
Display, Display,
} }

View File

@@ -52,7 +52,7 @@ namespace Content.Client.GameObjects.Components.Power.AME
} }
} }
enum Layers enum Layers : byte
{ {
Core, Core,
CoreState, CoreState,

View File

@@ -55,7 +55,7 @@ namespace Content.Client.GameObjects.Components.Power
} }
} }
enum Layers enum Layers : byte
{ {
ChargeState, ChargeState,
Lock, Lock,

View File

@@ -114,7 +114,7 @@ namespace Content.Client.GameObjects.Components.Power
var glowingPartsVisible = !(component.TryGetData(PowerDeviceVisuals.Powered, out bool powered) && !powered); var glowingPartsVisible = !(component.TryGetData(PowerDeviceVisuals.Powered, out bool powered) && !powered);
sprite.LayerSetVisible(AutolatheVisualLayers.BaseUnlit, glowingPartsVisible); sprite.LayerSetVisible(AutolatheVisualLayers.BaseUnlit, glowingPartsVisible);
} }
public enum AutolatheVisualLayers public enum AutolatheVisualLayers : byte
{ {
Base, Base,
BaseUnlit BaseUnlit

View File

@@ -41,7 +41,7 @@ namespace Content.Client.GameObjects.Components.Power
} }
} }
private enum Layers private enum Layers : byte
{ {
Charge Charge
} }

View File

@@ -68,7 +68,7 @@ namespace Content.Client.GameObjects.Components.Power
} }
} }
enum Layers enum Layers : byte
{ {
Base, Base,
Light, Light,

View File

@@ -18,7 +18,7 @@ namespace Content.Client.GameObjects.Components.Power
} }
} }
public enum PowerDeviceVisualLayers public enum PowerDeviceVisualLayers : byte
{ {
Powered Powered
} }

View File

@@ -110,7 +110,7 @@ namespace Content.Client.GameObjects.Components.Power
var glowingPartsVisible = !(component.TryGetData(PowerDeviceVisuals.Powered, out bool powered) && !powered); var glowingPartsVisible = !(component.TryGetData(PowerDeviceVisuals.Powered, out bool powered) && !powered);
sprite.LayerSetVisible(ProtolatheVisualLayers.BaseUnlit, glowingPartsVisible); sprite.LayerSetVisible(ProtolatheVisualLayers.BaseUnlit, glowingPartsVisible);
} }
public enum ProtolatheVisualLayers public enum ProtolatheVisualLayers : byte
{ {
Base, Base,
BaseUnlit, BaseUnlit,

View File

@@ -62,7 +62,7 @@ namespace Content.Client.GameObjects.Components.Power
} }
} }
enum Layers enum Layers : byte
{ {
Input, Input,
Charge, Charge,

View File

@@ -96,7 +96,7 @@ namespace Content.Client.GameObjects.Components
} }
} }
public enum RadiationCollectorVisualLayers public enum RadiationCollectorVisualLayers : byte
{ {
Main Main
} }

View File

@@ -61,7 +61,7 @@ namespace Content.Client.GameObjects.Components.Recycling
} }
} }
public enum RecyclerVisualLayers public enum RecyclerVisualLayers : byte
{ {
Bloody Bloody
} }

View File

@@ -51,7 +51,7 @@ namespace Content.Client.GameObjects.Components
Sprite.LayerSetState(ReinforcedCornerLayers.NW, $"{_reinforcedStateBase}{(int) cornerNW}"); Sprite.LayerSetState(ReinforcedCornerLayers.NW, $"{_reinforcedStateBase}{(int) cornerNW}");
} }
public enum ReinforcedCornerLayers public enum ReinforcedCornerLayers : byte
{ {
SE, SE,
NE, NE,

View File

@@ -35,7 +35,7 @@ namespace Content.Client.GameObjects.Components
} }
} }
public enum ReinforcedWallVisualLayers public enum ReinforcedWallVisualLayers : byte
{ {
Deconstruction, Deconstruction,
} }

View File

@@ -85,7 +85,7 @@ namespace Content.Client.GameObjects.Components.Storage
} }
} }
public enum StorageVisualLayers public enum StorageVisualLayers : byte
{ {
Door, Door,
Welded, Welded,

View File

@@ -69,7 +69,7 @@ namespace Content.Client.GameObjects.Components.Trigger
} }
} }
} }
public enum TriggerVisualLayers public enum TriggerVisualLayers : byte
{ {
Base Base
} }

View File

@@ -202,7 +202,7 @@ namespace Content.Client.GameObjects.Components.VendingMachines
} }
} }
public enum VendingMachineVisualLayers public enum VendingMachineVisualLayers : byte
{ {
// Off / Broken. The other layers will overlay this if the machine is on. // Off / Broken. The other layers will overlay this if the machine is on.
Unlit, Unlit,

View File

@@ -22,7 +22,7 @@ namespace Content.Client.GameObjects.Components.Weapons.Ranged.Barrels.Visualize
} }
} }
public enum AmmoVisualLayers public enum AmmoVisualLayers : byte
{ {
Base, Base,
} }

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Maths;
namespace Content.Client.GameObjects.Components.Weapons.Ranged namespace Content.Client.GameObjects.Components.Weapons.Ranged
{ {
// Yeah I put it all in the same enum, don't judge me // Yeah I put it all in the same enum, don't judge me
public enum RangedBarrelVisualLayers public enum RangedBarrelVisualLayers : byte
{ {
Base, Base,
BaseUnshaded, BaseUnshaded,

View File

@@ -113,7 +113,7 @@ namespace Content.Client.GameObjects.Components
} }
[SuppressMessage("ReSharper", "InconsistentNaming")] [SuppressMessage("ReSharper", "InconsistentNaming")]
public enum WindowDamageLayers public enum WindowDamageLayers : byte
{ {
DamageSE, DamageSE,
DamageNE, DamageNE,

View File

@@ -21,7 +21,7 @@ namespace Content.Client.GameObjects.Components.Wires
} }
} }
public enum WiresVisualLayers public enum WiresVisualLayers : byte
{ {
MaintenancePanel, MaintenancePanel,
} }

View File

@@ -497,7 +497,8 @@ namespace Content.Client.GameObjects.EntitySystems.AI
} }
[Flags] [Flags]
public enum PathfindingDebugMode { public enum PathfindingDebugMode : byte
{
None = 0, None = 0,
Route = 1 << 0, Route = 1 << 0,
Graph = 1 << 1, Graph = 1 << 1,

View File

@@ -98,7 +98,7 @@ namespace Content.Client.GameObjects.EntitySystems
} }
} }
internal enum AtmosDebugOverlayMode internal enum AtmosDebugOverlayMode : byte
{ {
TotalMoles, TotalMoles,
GasMoles, GasMoles,

View File

@@ -73,7 +73,7 @@ namespace Content.Client.GameObjects.EntitySystems
private readonly List<SpriteComponent> _highlightedSprites = new(); private readonly List<SpriteComponent> _highlightedSprites = new();
private enum DragState private enum DragState : byte
{ {
NotDragging, NotDragging,
// not dragging yet, waiting to see // not dragging yet, waiting to see

View File

@@ -295,7 +295,7 @@ namespace Content.Client.State
_disconnected.Visible = page == Page.Disconnected; _disconnected.Visible = page == Page.Disconnected;
} }
private enum Page private enum Page : byte
{ {
Connecting, Connecting,
ConnectFailed, ConnectFailed,