mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 13:57:43 +01:00
feat: basic context menu port
This commit is contained in:
parent
a4d8b9c45b
commit
49d1bb7ee8
20 changed files with 1581 additions and 3 deletions
45
Dalamud/Game/Gui/ContextMenus/GameObjectContext.cs
Normal file
45
Dalamud/Game/Gui/ContextMenus/GameObjectContext.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using Dalamud.Game.Text.SeStringHandling;
|
||||
|
||||
namespace Dalamud.Game.Gui.ContextMenus
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides game object context to a context menu.
|
||||
/// </summary>
|
||||
public class GameObjectContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GameObjectContext"/> class.
|
||||
/// </summary>
|
||||
/// <param name="id">The id of the game object.</param>
|
||||
/// <param name="contentId">The lower content id of the game object.</param>
|
||||
/// <param name="name">The name of the game object.</param>
|
||||
/// <param name="worldId">The world id of the game object.</param>
|
||||
public GameObjectContext(uint? id, ulong? contentId, string? name, ushort? worldId)
|
||||
{
|
||||
this.Id = id;
|
||||
this.ContentId = contentId;
|
||||
this.Name = name;
|
||||
this.WorldId = worldId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id of the game object.
|
||||
/// </summary>
|
||||
public uint? Id { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the content id of the game object.
|
||||
/// </summary>
|
||||
public ulong? ContentId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the game object.
|
||||
/// </summary>
|
||||
public string? Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the world id of the game object.
|
||||
/// </summary>
|
||||
public ushort? WorldId { get; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue