summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsCommand.cs
blob: 88a9e5a3802371b18be5d76f2bb9c0ce820015fc (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
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;
        }
    }
}