Revert "virtualize all net ids to reduce net traffic"
This reverts commit 027c338c5f.
Formatting fix left in.
This commit is contained in:
@@ -57,9 +57,9 @@ namespace Content.Shared.GameObjects.Components.Mobs
|
||||
{
|
||||
public bool IsInCombatMode { get; }
|
||||
public TargetingZone TargetingZone { get; }
|
||||
public override uint NetID => ContentNetIDs.COMBATMODE;
|
||||
|
||||
public CombatModeComponentState(bool isInCombatMode, TargetingZone targetingZone)
|
||||
: base(ContentNetIDs.COMBATMODE)
|
||||
{
|
||||
IsInCombatMode = isInCombatMode;
|
||||
TargetingZone = targetingZone;
|
||||
|
||||
@@ -69,9 +69,7 @@ namespace Content.Shared.GameObjects.Components.Mobs
|
||||
[NetSerializable]
|
||||
private sealed class HumanoidAppearanceComponentState : ComponentState
|
||||
{
|
||||
public override uint NetID => ContentNetIDs.HUMANOID_APPEARANCE;
|
||||
|
||||
public HumanoidAppearanceComponentState(HumanoidCharacterAppearance appearance, Sex sex)
|
||||
public HumanoidAppearanceComponentState(HumanoidCharacterAppearance appearance, Sex sex) : base(ContentNetIDs.HUMANOID_APPEARANCE)
|
||||
{
|
||||
Appearance = appearance;
|
||||
Sex = sex;
|
||||
|
||||
@@ -24,9 +24,8 @@ namespace Content.Shared.GameObjects.Components.Mobs
|
||||
public class OverlayEffectComponentState : ComponentState
|
||||
{
|
||||
public ScreenEffects ScreenEffect;
|
||||
public override uint NetID => ContentNetIDs.OVERLAYEFFECTS;
|
||||
|
||||
public OverlayEffectComponentState(ScreenEffects screenEffect)
|
||||
public OverlayEffectComponentState(ScreenEffects screenEffect) : base(ContentNetIDs.OVERLAYEFFECTS)
|
||||
{
|
||||
ScreenEffect = screenEffect;
|
||||
}
|
||||
|
||||
@@ -19,9 +19,8 @@ namespace Content.Shared.GameObjects.Components.Mobs
|
||||
public class StatusEffectComponentState : ComponentState
|
||||
{
|
||||
public Dictionary<StatusEffect, string> StatusEffects;
|
||||
public override uint NetID => ContentNetIDs.STATUSEFFECTS;
|
||||
|
||||
public StatusEffectComponentState(Dictionary<StatusEffect, string> statusEffects)
|
||||
public StatusEffectComponentState(Dictionary<StatusEffect, string> statusEffects) : base(ContentNetIDs.STATUSEFFECTS)
|
||||
{
|
||||
StatusEffects = statusEffects;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user