-
Notifications
You must be signed in to change notification settings - Fork 42
/
AccessoryCopyEventArgs.cs
35 lines (31 loc) · 1.13 KB
/
AccessoryCopyEventArgs.cs
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
using System;
using System.Collections.Generic;
namespace KKAPI.Maker
{
/// <summary>
/// Event args for accessory copy events.
/// </summary>
public class AccessoryCopyEventArgs : EventArgs
{
/// <inheritdoc />
public AccessoryCopyEventArgs(IEnumerable<int> copiedSlotIndexes,
ChaFileDefine.CoordinateType copySource, ChaFileDefine.CoordinateType copyDestination)
{
CopiedSlotIndexes = copiedSlotIndexes ?? throw new ArgumentNullException(nameof(copiedSlotIndexes));
CopySource = copySource;
CopyDestination = copyDestination;
}
/// <summary>
/// Indexes of accessories that were selected to be copied.
/// </summary>
public IEnumerable<int> CopiedSlotIndexes { get; }
/// <summary>
/// Coordinate the accessories are copied from.
/// </summary>
public ChaFileDefine.CoordinateType CopySource { get; }
/// <summary>
/// Coordinate the accessories are copied into.
/// </summary>
public ChaFileDefine.CoordinateType CopyDestination { get; }
}
}