Use SharedSpeciesComponent on the client.

This commit is contained in:
Pieter-Jan Briers
2019-03-27 17:12:43 +01:00
parent c0caaaa8e5
commit 575b12dcdc
2 changed files with 4 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ using SS14.Shared.IoC;
using SS14.Shared.Log; using SS14.Shared.Log;
using SS14.Shared.Utility; using SS14.Shared.Utility;
using System.Collections.Generic; using System.Collections.Generic;
using Content.Shared.GameObjects.Components.Mobs;
using SS14.Client.Graphics.Overlays; using SS14.Client.Graphics.Overlays;
namespace Content.Client.GameObjects namespace Content.Client.GameObjects
@@ -23,12 +24,8 @@ namespace Content.Client.GameObjects
/// <summary> /// <summary>
/// A character UI component which shows the current damage state of the mob (living/dead) /// A character UI component which shows the current damage state of the mob (living/dead)
/// </summary> /// </summary>
public class SpeciesUI : Component, ICharacterUI public class SpeciesUI : SharedSpeciesComponent, ICharacterUI
{ {
public override string Name => "Species";
public override uint? NetID => ContentNetIDs.SPECIES;
/// <summary> /// <summary>
/// Holds the godot control for the species window /// Holds the godot control for the species window
/// </summary> /// </summary>

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.GameObjects.Components.Mobs
{ {
public sealed override string Name => "Species"; public sealed override string Name => "Species";
public override uint? NetID => ContentNetIDs.SPECIES; public sealed override uint? NetID => ContentNetIDs.SPECIES;
[Serializable, NetSerializable] [Serializable, NetSerializable]
public enum MobVisuals public enum MobVisuals
@@ -31,4 +31,4 @@ namespace Content.Shared.GameObjects.Components.Mobs
} }
} }
} }