Merge pull request #80 from plsfixrito/ilivingenitityvnum Move VNum property to ILivingEntity
4 files changed, 9 insertions(+), 10 deletions(-) M Core/NosSmooth.Game/Data/Entities/LivingEntity.cs M Core/NosSmooth.Game/Data/Entities/Monster.cs M Core/NosSmooth.Game/Data/Entities/Npc.cs M Core/NosSmooth.Game/Data/Entities/Player.cs
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