summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/IModEvents.cs
blob: cf2f8cb8f609a0cb1cc1feb32e7d58acab65c112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace StardewModdingAPI.Events
{
    /// <summary>Manages access to events raised by SMAPI.</summary>
    public interface IModEvents
    {
        /// <summary>Events linked to the game's update loop. The update loop runs roughly ≈60 times/second to run game logic like state changes, action handling, etc. These can be useful, but you should consider more semantic events like <see cref="Input"/> if possible.</summary>
        IGameLoopEvents GameLoop { get; }

        /// <summary>Events raised when the player provides input using a controller, keyboard, or mouse.</summary>
        IInputEvents Input { get; }

        /// <summary>Events raised when something changes in the world.</summary>
        IWorldEvents World { get; }
    }
}