~ruther/NosSmooth

bbb771c93b1b4b8b76f8c70e5ae298a045250324 — Rutherther 2 years ago 3118318 + d45c0f0
Merge pull request #80 from plsfixrito/ilivingenitityvnum

Move VNum property to ILivingEntity
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