Archived
forked from RDTKEditor/RDTKEditor
添加对 Core 的直接引用
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
using RhythmBase.Components;
|
||||
namespace RhythmBase.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an event to show hands in a room.
|
||||
/// </summary>
|
||||
public class ShowHands : BaseEvent, IRoomEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShowHands"/> class.
|
||||
/// </summary>
|
||||
public ShowHands()
|
||||
{
|
||||
Rooms = new RDRoom(true, new byte[1]);
|
||||
Type = EventType.ShowHands;
|
||||
Tab = Tabs.Actions;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the rooms associated with the event.
|
||||
/// </summary>
|
||||
public RDRoom Rooms { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the action to be performed.
|
||||
/// </summary>
|
||||
public Actions Action { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the hand of the player.
|
||||
/// </summary>
|
||||
public PlayerHands Hand { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the hands should be aligned.
|
||||
/// </summary>
|
||||
public bool Align { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the action should be instant.
|
||||
/// </summary>
|
||||
public bool Instant { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the extent of the action.
|
||||
/// </summary>
|
||||
public Extents Extent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the event.
|
||||
/// </summary>
|
||||
public override EventType Type { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the tab associated with the event.
|
||||
/// </summary>
|
||||
public override Tabs Tab { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Defines the possible actions for the event.
|
||||
/// </summary>
|
||||
public enum Actions
|
||||
{
|
||||
/// <summary>
|
||||
/// Show the hands.
|
||||
/// </summary>
|
||||
Show,
|
||||
|
||||
/// <summary>
|
||||
/// Hide the hands.
|
||||
/// </summary>
|
||||
Hide,
|
||||
|
||||
/// <summary>
|
||||
/// Raise the hands.
|
||||
/// </summary>
|
||||
Raise,
|
||||
|
||||
/// <summary>
|
||||
/// Lower the hands.
|
||||
/// </summary>
|
||||
Lower
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines the possible extents for the action.
|
||||
/// </summary>
|
||||
public enum Extents
|
||||
{
|
||||
/// <summary>
|
||||
/// Full extent.
|
||||
/// </summary>
|
||||
Full,
|
||||
|
||||
/// <summary>
|
||||
/// Short extent.
|
||||
/// </summary>
|
||||
Short
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user