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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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