~ruther/NosSmooth

ref: da2bcf6244ee21aaddaf329e32ffb4f19242b7d5 NosSmooth/Core/NosSmooth.Game/Data/Entities/GroundItem.cs -rw-r--r-- 1.3 KiB
da2bcf62 — Rutherther chore: update versions 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
//  GroundItem.cs
//
//  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 NosSmooth.Data.Abstractions.Infos;
using NosSmooth.Game.Data.Info;
using NosSmooth.Packets.Enums;

namespace NosSmooth.Game.Data.Entities;

/// <summary>
/// The item on the ground.
/// </summary>
public class GroundItem : IEntity
{
    /// <summary>
    /// Gets or sets the id of the owner, if any.
    /// </summary>
    public long? OwnerId { get; set; }

    /// <summary>
    /// Gets or sets the amount of the item on the ground.
    /// </summary>
    public int Amount { get; internal set; }

    /// <summary>
    /// Gets or sets whether the item is for a quest.
    /// </summary>
    public bool IsQuestRelated { get; internal set; }

    /// <summary>
    /// Gets or sets the info about the item, if available.
    /// </summary>
    public IItemInfo? ItemInfo { get; internal set; }

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

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

    /// <inheritdoc/>
    public Position? Position { get; set; }

    /// <inheritdoc/>
    public EntityType Type
    {
        get => EntityType.Object;
    }
}
Do not follow this link