Removed the StateType property from every component. This field was completely unused except for a debug assertion.

This commit is contained in:
Acruid
2020-01-24 14:10:36 -08:00
parent 0f1cee44a3
commit 4ab7f1dcb3
24 changed files with 4 additions and 33 deletions

View File

@@ -8,7 +8,6 @@ namespace Content.Shared.GameObjects.Components.Mobs
{
public sealed override uint? NetID => ContentNetIDs.COMBATMODE;
public override string Name => "CombatMode";
public sealed override Type StateType => typeof(CombatModeComponentState);
[Serializable, NetSerializable]
protected sealed class CombatModeComponentState : ComponentState

View File

@@ -13,7 +13,6 @@ namespace Content.Shared.GameObjects.Components.Mobs
public sealed override string Name => "HumanoidAppearance";
public sealed override uint? NetID => ContentNetIDs.HUMANOID_APPEARANCE;
public sealed override Type StateType => typeof(HumanoidAppearanceComponentState);
[ViewVariables(VVAccess.ReadWrite)]
public virtual HumanoidCharacterAppearance Appearance

View File

@@ -11,7 +11,6 @@ namespace Content.Shared.GameObjects.Components.Mobs
{
public override string Name => "OverlayEffectsUI";
public sealed override uint? NetID => ContentNetIDs.OVERLAYEFFECTS;
public sealed override Type StateType => typeof(OverlayEffectComponentState);
}
public enum ScreenEffects

View File

@@ -13,8 +13,6 @@ namespace Content.Shared.GameObjects.Components.Mobs
{
public override string Name => "StatusEffectsUI";
public override uint? NetID => ContentNetIDs.STATUSEFFECTS;
public sealed override Type StateType => typeof(StatusEffectComponentState);
}
[Serializable, NetSerializable]