summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsCommand.cs
blob: 35370139b7f3d245b8faf1bc649206ac7facbbcd (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_1_x
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