summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/PeerContextReceivedEventArgs.cs
blob: 151a295c1c0df6e681b511771788eac5f2486e1f (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
using System;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for an <see cref="IMultiplayerEvents.PeerContextReceived"/> event.</summary>
    public class PeerContextReceivedEventArgs : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The peer whose metadata was received.</summary>
        public IMultiplayerPeer Peer { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="peer">The peer whose metadata was received.</param>
        internal PeerContextReceivedEventArgs(IMultiplayerPeer peer)
        {
            this.Peer = peer;
        }
    }
}