~ruther/NosSmooth

d45c0f088bb74f87198ea0ea38a063a3468ddf37 — NotKappa 2 years ago 3118318
Move VNum property to ILivingEntity

All Living entities have a VNum so it should be inside the interface
M Core/NosSmooth.Game/Data/Entities/LivingEntity.cs => Core/NosSmooth.Game/Data/Entities/LivingEntity.cs +5 -0
@@ 15,6 15,11 @@ namespace NosSmooth.Game.Data.Entities;
public interface ILivingEntity : IEntity
{
    /// <summary>
    /// Gets the VNum of the entity.
    /// </summary>
    public int VNum { get; internal set; }

    /// <summary>
    /// Gets the speed of the entity. May be null if unknown.
    /// </summary>
    public int? Speed { get; set; }

M Core/NosSmooth.Game/Data/Entities/Monster.cs => Core/NosSmooth.Game/Data/Entities/Monster.cs +1 -3
@@ 21,9 21,7 @@ public class Monster : ILivingEntity
    /// </summary>
    public IMonsterInfo? MonsterInfo { get; set; }

    /// <summary>
    /// Gets the VNum of the monster.
    /// </summary>
    /// <inheritdoc/>
    public int VNum { get; set; }

    /// <inheritdoc/>

M Core/NosSmooth.Game/Data/Entities/Npc.cs => Core/NosSmooth.Game/Data/Entities/Npc.cs +2 -4
@@ 21,10 21,8 @@ public class Npc : ILivingEntity
    /// </summary>
    public IMonsterInfo? NpcInfo { get; set; }

    /// <summary>
    /// Gets the VNum of the npc.
    /// </summary>
    public int VNum { get; internal set; }
    /// <inheritdoc/>
    public int VNum { get; set; }

    /// <inheritdoc/>
    public long Id { get; set; }

M Core/NosSmooth.Game/Data/Entities/Player.cs => Core/NosSmooth.Game/Data/Entities/Player.cs +1 -3
@@ 77,9 77,7 @@ public class Player : ILivingEntity
    /// </summary>
    public Family? Family { get; set; }

    /// <summary>
    /// Gets the VNum of the npc.
    /// </summary>
    /// <inheritdoc/>
    public int VNum { get; set; }

    /// <inheritdoc/>

Do not follow this link