blob: f043590422297e1f2ffc0f50e4c3ae14714b4c33 (
plain)
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
|
#if !SMAPI_2_0
using System;
namespace StardewModdingAPI.Events
{
/// <summary>Event arguments for a <see cref="StardewModdingAPI.Command.CommandFired"/> event.</summary>
[Obsolete("Use " + nameof(IModHelper) + "." + nameof(IModHelper.ConsoleCommands))]
public class EventArgsCommand : EventArgs
{
/*********
** Accessors
*********/
/// <summary>The triggered command.</summary>
public Command Command { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="command">The triggered command.</param>
public EventArgsCommand(Command command)
{
this.Command = command;
}
}
}
#endif
|