~ruther/NosSmooth

ee5e9661e7e771ce6947630093a4eb4a4c16c876 — František Boháček 3 years ago 6df1244
feat: add effects to living entities
M Core/NosSmooth.Game/Data/Characters/Character.cs => Core/NosSmooth.Game/Data/Characters/Character.cs +5 -3
@@ 35,7 35,7 @@ namespace NosSmooth.Game.Data.Characters;
/// <param name="Faction"></param>
/// <param name="Size"></param>
/// <param name="AuthorityType"></param>
/// <param name="Gender"></param>
/// <param name="Sex"></param>
/// <param name="HairStyle"></param>
/// <param name="HairColor"></param>
/// <param name="Class"></param>


@@ 75,7 75,8 @@ public record Character
    Morph? Morph = default,
    bool? ArenaWinner = default,
    bool? Invisible = default,
    long? Reputation = default
    long? Reputation = default,
    IReadOnlyList<long>? EffectsVNums = default
) : Player(
    Id,
    Name,


@@ 98,5 99,6 @@ public record Character
    Morph,
    ArenaWinner,
    Invisible,
    Reputation
    Reputation,
    EffectsVNums
);
\ No newline at end of file

M Core/NosSmooth.Game/Data/Entities/LivingEntity.cs => Core/NosSmooth.Game/Data/Entities/LivingEntity.cs +5 -0
@@ 48,4 48,9 @@ public interface ILivingEntity : IEntity
    /// Gets the size of the entity.
    /// </summary>
    public short Size { get; }

    /// <summary>
    /// Gets the VNums of the effects the entity has.
    /// </summary>
    public IReadOnlyList<long>? EffectsVNums { get; }
}
\ No newline at end of file

M Core/NosSmooth.Game/Data/Entities/Monster.cs => Core/NosSmooth.Game/Data/Entities/Monster.cs +2 -1
@@ 35,7 35,8 @@ public record Monster
    Health? Mp,
    FactionType? Faction,
    short Size,
    long MonsterVNum
    long MonsterVNum,
    IReadOnlyList<long>? EffectsVNums = default
) : ILivingEntity
{
    /// <inheritdoc/>

M Core/NosSmooth.Game/Data/Entities/Player.cs => Core/NosSmooth.Game/Data/Entities/Player.cs +3 -1
@@ 4,6 4,7 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.ObjectModel;
using NosSmooth.Game.Data.Info;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Enums.Players;


@@ 56,7 57,8 @@ public record Player
    Morph? Morph = default,
    bool? ArenaWinner = default,
    bool? Invisible = default,
    long? Reputation = default
    long? Reputation = default,
    IReadOnlyList<long>? EffectsVNums = default
) : ILivingEntity
{
    /// <inheritdoc/>

Do not follow this link