blob: 1fb3482c457c81e1a9a234bf26756e1b4774cb99 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
using StardewModdingAPI.Events;
namespace StardewModdingAPI.Framework.Events
{
/// <inheritdoc />
internal class ModEvents : IModEvents
{
/*********
** Accessors
*********/
/// <inheritdoc />
public IContentEvents Content { get; }
/// <inheritdoc />
public IDisplayEvents Display { get; }
/// <inheritdoc />
public IGameLoopEvents GameLoop { get; }
/// <inheritdoc />
public IInputEvents Input { get; }
/// <inheritdoc />
public IMultiplayerEvents Multiplayer { get; }
/// <inheritdoc />
public IPlayerEvents Player { get; }
/// <inheritdoc />
public IWorldEvents World { get; }
/// <inheritdoc />
public ISpecializedEvents Specialized { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="mod">The mod which uses this instance.</param>
/// <param name="eventManager">The underlying event manager.</param>
public ModEvents(IModMetadata mod, EventManager eventManager)
{
this.Content = new ModContentEvents(mod, eventManager);
this.Display = new ModDisplayEvents(mod, eventManager);
this.GameLoop = new ModGameLoopEvents(mod, eventManager);
this.Input = new ModInputEvents(mod, eventManager);
this.Multiplayer = new ModMultiplayerEvents(mod, eventManager);
this.Player = new ModPlayerEvents(mod, eventManager);
this.World = new ModWorldEvents(mod, eventManager);
this.Specialized = new ModSpecializedEvents(mod, eventManager);
}
}
}
|