Added enum types (#2701)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace Content.Client.GameObjects.Components.Atmos
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum FireVisualLayers
|
public enum FireVisualLayers : byte
|
||||||
{
|
{
|
||||||
Fire
|
Fire
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace Content.Client.GameObjects.Components.Atmos
|
|||||||
return stateId;
|
return stateId;
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum Layer
|
private enum Layer : byte
|
||||||
{
|
{
|
||||||
PipeBase,
|
PipeBase,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ namespace Content.Client.GameObjects.Components.Atmos
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum VaporVisualLayers
|
public enum VaporVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base
|
Base
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ namespace Content.Client.GameObjects.Components.Botany
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum PlantHolderLayers
|
public enum PlantHolderLayers : byte
|
||||||
{
|
{
|
||||||
Plant,
|
Plant,
|
||||||
HealthLight,
|
HealthLight,
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Content.Client.GameObjects.Components.CloningPod
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum CloningPodVisualLayers
|
public enum CloningPodVisualLayers : byte
|
||||||
{
|
{
|
||||||
Machine,
|
Machine,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ namespace Content.Client.GameObjects.Components.Clothing
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum FemaleClothingMask
|
public enum FemaleClothingMask : byte
|
||||||
{
|
{
|
||||||
NoMask = 0,
|
NoMask = 0,
|
||||||
UniformFull,
|
UniformFull,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace Content.Client.GameObjects.Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum Layers
|
public enum Layers : byte
|
||||||
{
|
{
|
||||||
Body,
|
Body,
|
||||||
Screen,
|
Screen,
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ namespace Content.Client.GameObjects.Components.Disposal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum DisposalUnitVisualLayers
|
public enum DisposalUnitVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base,
|
Base,
|
||||||
Handle,
|
Handle,
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ namespace Content.Client.GameObjects.Components.Doors
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum DoorVisualLayers
|
public enum DoorVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base,
|
Base,
|
||||||
BaseUnlit,
|
BaseUnlit,
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ namespace Content.Client.GameObjects.Components.Fluids
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum SprayVisualLayers
|
public enum SprayVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base
|
Base
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace Content.Client.GameObjects.Components.Gravity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum GravityGeneratorVisualLayers
|
public enum GravityGeneratorVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base,
|
Base,
|
||||||
Core
|
Core
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace Content.Client.GameObjects.Components.MedicalScanner
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum MedicalScannerVisualLayers
|
public enum MedicalScannerVisualLayers : byte
|
||||||
{
|
{
|
||||||
Machine,
|
Machine,
|
||||||
Terminal,
|
Terminal,
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ namespace Content.Client.GameObjects.Components.Mobs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum DamageStateVisualLayers
|
public enum DamageStateVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base
|
Base
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace Content.Client.GameObjects.Components.Morgue
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum BodyBagVisualLayers
|
public enum BodyBagVisualLayers : byte
|
||||||
{
|
{
|
||||||
Label,
|
Label,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ namespace Content.Client.GameObjects.Components.Storage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum CrematoriumVisualLayers
|
public enum CrematoriumVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base,
|
Base,
|
||||||
Light,
|
Light,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace Content.Client.GameObjects.Components.Storage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum MorgueVisualLayers
|
public enum MorgueVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base,
|
Base,
|
||||||
Light,
|
Light,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace Content.Client.GameObjects.Components.Movement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Layers
|
enum Layers : byte
|
||||||
{
|
{
|
||||||
Portal
|
Portal
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace Content.Client.GameObjects.Components.Nutrition
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum CreamPiedVisualLayers
|
public enum CreamPiedVisualLayers : byte
|
||||||
{
|
{
|
||||||
Pie,
|
Pie,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Content.Client.GameObjects.Components.Power.AME
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Layers
|
enum Layers : byte
|
||||||
{
|
{
|
||||||
Display,
|
Display,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace Content.Client.GameObjects.Components.Power.AME
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Layers
|
enum Layers : byte
|
||||||
{
|
{
|
||||||
Core,
|
Core,
|
||||||
CoreState,
|
CoreState,
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ namespace Content.Client.GameObjects.Components.Power
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Layers
|
enum Layers : byte
|
||||||
{
|
{
|
||||||
ChargeState,
|
ChargeState,
|
||||||
Lock,
|
Lock,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace Content.Client.GameObjects.Components.Power
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum Layers
|
private enum Layers : byte
|
||||||
{
|
{
|
||||||
Charge
|
Charge
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ namespace Content.Client.GameObjects.Components.Power
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Layers
|
enum Layers : byte
|
||||||
{
|
{
|
||||||
Base,
|
Base,
|
||||||
Light,
|
Light,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Content.Client.GameObjects.Components.Power
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum PowerDeviceVisualLayers
|
public enum PowerDeviceVisualLayers : byte
|
||||||
{
|
{
|
||||||
Powered
|
Powered
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ namespace Content.Client.GameObjects.Components.Power
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Layers
|
enum Layers : byte
|
||||||
{
|
{
|
||||||
Input,
|
Input,
|
||||||
Charge,
|
Charge,
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ namespace Content.Client.GameObjects.Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public enum RadiationCollectorVisualLayers
|
public enum RadiationCollectorVisualLayers : byte
|
||||||
{
|
{
|
||||||
Main
|
Main
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace Content.Client.GameObjects.Components.Recycling
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum RecyclerVisualLayers
|
public enum RecyclerVisualLayers : byte
|
||||||
{
|
{
|
||||||
Bloody
|
Bloody
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace Content.Client.GameObjects.Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ReinforcedWallVisualLayers
|
public enum ReinforcedWallVisualLayers : byte
|
||||||
{
|
{
|
||||||
Deconstruction,
|
Deconstruction,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace Content.Client.GameObjects.Components.Storage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum StorageVisualLayers
|
public enum StorageVisualLayers : byte
|
||||||
{
|
{
|
||||||
Door,
|
Door,
|
||||||
Welded,
|
Welded,
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ namespace Content.Client.GameObjects.Components.Trigger
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public enum TriggerVisualLayers
|
public enum TriggerVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base
|
Base
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace Content.Client.GameObjects.Components.Weapons.Ranged.Barrels.Visualize
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum AmmoVisualLayers
|
public enum AmmoVisualLayers : byte
|
||||||
{
|
{
|
||||||
Base,
|
Base,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace Content.Client.GameObjects.Components.Wires
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum WiresVisualLayers
|
public enum WiresVisualLayers : byte
|
||||||
{
|
{
|
||||||
MaintenancePanel,
|
MaintenancePanel,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal enum AtmosDebugOverlayMode
|
internal enum AtmosDebugOverlayMode : byte
|
||||||
{
|
{
|
||||||
TotalMoles,
|
TotalMoles,
|
||||||
GasMoles,
|
GasMoles,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user