fix new event arg constructors not marked internal (#606)
This commit is contained in:
parent
15907b3d6e
commit
3c5bdc96b5
|
@ -29,7 +29,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="location">The location which changed.</param>
|
||||
/// <param name="added">The buildings added to the location.</param>
|
||||
/// <param name="removed">The buildings removed from the location.</param>
|
||||
public BuildingListChangedEventArgs(GameLocation location, IEnumerable<Building> added, IEnumerable<Building> removed)
|
||||
internal BuildingListChangedEventArgs(GameLocation location, IEnumerable<Building> added, IEnumerable<Building> removed)
|
||||
{
|
||||
this.Location = location;
|
||||
this.Added = added.ToArray();
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="oldPosition">The previous cursor position.</param>
|
||||
/// <param name="newPosition">The new cursor position.</param>
|
||||
public CursorMovedEventArgs(ICursorPosition oldPosition, ICursorPosition newPosition)
|
||||
internal CursorMovedEventArgs(ICursorPosition oldPosition, ICursorPosition newPosition)
|
||||
{
|
||||
this.OldPosition = oldPosition;
|
||||
this.NewPosition = newPosition;
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="location">The location which changed.</param>
|
||||
/// <param name="added">The debris added to the location.</param>
|
||||
/// <param name="removed">The debris removed from the location.</param>
|
||||
public DebrisListChangedEventArgs(GameLocation location, IEnumerable<Debris> added, IEnumerable<Debris> removed)
|
||||
internal DebrisListChangedEventArgs(GameLocation location, IEnumerable<Debris> added, IEnumerable<Debris> removed)
|
||||
{
|
||||
this.Location = location;
|
||||
this.Added = added.ToArray();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using StardewValley.Menus;
|
||||
|
||||
namespace StardewModdingAPI.Events
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using StardewValley.Menus;
|
||||
|
||||
namespace StardewModdingAPI.Events
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="player">The player whose inventory changed.</param>
|
||||
/// <param name="changedItems">The inventory changes.</param>
|
||||
public InventoryChangedEventArgs(Farmer player, ItemStackChange[] changedItems)
|
||||
internal InventoryChangedEventArgs(Farmer player, ItemStackChange[] changedItems)
|
||||
{
|
||||
this.Player = player;
|
||||
this.Added = changedItems
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="location">The location which changed.</param>
|
||||
/// <param name="added">The large terrain features added to the location.</param>
|
||||
/// <param name="removed">The large terrain features removed from the location.</param>
|
||||
public LargeTerrainFeatureListChangedEventArgs(GameLocation location, IEnumerable<LargeTerrainFeature> added, IEnumerable<LargeTerrainFeature> removed)
|
||||
internal LargeTerrainFeatureListChangedEventArgs(GameLocation location, IEnumerable<LargeTerrainFeature> added, IEnumerable<LargeTerrainFeature> removed)
|
||||
{
|
||||
this.Location = location;
|
||||
this.Added = added.ToArray();
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="skill">The skill whose level changed.</param>
|
||||
/// <param name="oldLevel">The previous skill level.</param>
|
||||
/// <param name="newLevel">The new skill level.</param>
|
||||
public LevelChangedEventArgs(Farmer player, SkillType skill, int oldLevel, int newLevel)
|
||||
internal LevelChangedEventArgs(Farmer player, SkillType skill, int oldLevel, int newLevel)
|
||||
{
|
||||
this.Player = player;
|
||||
this.Skill = skill;
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="added">The added locations.</param>
|
||||
/// <param name="removed">The removed locations.</param>
|
||||
public LocationListChangedEventArgs(IEnumerable<GameLocation> added, IEnumerable<GameLocation> removed)
|
||||
internal LocationListChangedEventArgs(IEnumerable<GameLocation> added, IEnumerable<GameLocation> removed)
|
||||
{
|
||||
this.Added = added.ToArray();
|
||||
this.Removed = removed.ToArray();
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="oldMenu">The previous menu.</param>
|
||||
/// <param name="newMenu">The current menu.</param>
|
||||
public MenuChangedEventArgs(IClickableMenu oldMenu, IClickableMenu newMenu)
|
||||
internal MenuChangedEventArgs(IClickableMenu oldMenu, IClickableMenu newMenu)
|
||||
{
|
||||
this.OldMenu = oldMenu;
|
||||
this.NewMenu = newMenu;
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="position">The cursor position.</param>
|
||||
/// <param name="oldValue">The old scroll value.</param>
|
||||
/// <param name="newValue">The new scroll value.</param>
|
||||
public MouseWheelScrolledEventArgs(ICursorPosition position, int oldValue, int newValue)
|
||||
internal MouseWheelScrolledEventArgs(ICursorPosition position, int oldValue, int newValue)
|
||||
{
|
||||
this.Position = position;
|
||||
this.OldValue = oldValue;
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="location">The location which changed.</param>
|
||||
/// <param name="added">The NPCs added to the location.</param>
|
||||
/// <param name="removed">The NPCs removed from the location.</param>
|
||||
public NpcListChangedEventArgs(GameLocation location, IEnumerable<NPC> added, IEnumerable<NPC> removed)
|
||||
internal NpcListChangedEventArgs(GameLocation location, IEnumerable<NPC> added, IEnumerable<NPC> removed)
|
||||
{
|
||||
this.Location = location;
|
||||
this.Added = added.ToArray();
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="location">The location which changed.</param>
|
||||
/// <param name="added">The objects added to the location.</param>
|
||||
/// <param name="removed">The objects removed from the location.</param>
|
||||
public ObjectListChangedEventArgs(GameLocation location, IEnumerable<KeyValuePair<Vector2, Object>> added, IEnumerable<KeyValuePair<Vector2, Object>> removed)
|
||||
internal ObjectListChangedEventArgs(GameLocation location, IEnumerable<KeyValuePair<Vector2, Object>> added, IEnumerable<KeyValuePair<Vector2, Object>> removed)
|
||||
{
|
||||
this.Location = location;
|
||||
this.Added = added.ToArray();
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="location">The location which changed.</param>
|
||||
/// <param name="added">The terrain features added to the location.</param>
|
||||
/// <param name="removed">The terrain features removed from the location.</param>
|
||||
public TerrainFeatureListChangedEventArgs(GameLocation location, IEnumerable<KeyValuePair<Vector2, TerrainFeature>> added, IEnumerable<KeyValuePair<Vector2, TerrainFeature>> removed)
|
||||
internal TerrainFeatureListChangedEventArgs(GameLocation location, IEnumerable<KeyValuePair<Vector2, TerrainFeature>> added, IEnumerable<KeyValuePair<Vector2, TerrainFeature>> removed)
|
||||
{
|
||||
this.Location = location;
|
||||
this.Added = added.ToArray();
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="oldTime">The previous time of day in 24-hour notation (like 1600 for 4pm).</param>
|
||||
/// <param name="newTime">The current time of day in 24-hour notation (like 1600 for 4pm).</param>
|
||||
public TimeChangedEventArgs(int oldTime, int newTime)
|
||||
internal TimeChangedEventArgs(int oldTime, int newTime)
|
||||
{
|
||||
this.OldTime = oldTime;
|
||||
this.NewTime = newTime;
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace StardewModdingAPI.Events
|
|||
*********/
|
||||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="ticks">The number of ticks elapsed since the game started, including the current tick.</param>
|
||||
public UnvalidatedUpdateTickedEventArgs(uint ticks)
|
||||
internal UnvalidatedUpdateTickedEventArgs(uint ticks)
|
||||
{
|
||||
this.Ticks = ticks;
|
||||
this.IsOneSecond = this.IsMultipleOf(60);
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace StardewModdingAPI.Events
|
|||
*********/
|
||||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="ticks">The number of ticks elapsed since the game started, including the current tick.</param>
|
||||
public UnvalidatedUpdateTickingEventArgs(uint ticks)
|
||||
internal UnvalidatedUpdateTickingEventArgs(uint ticks)
|
||||
{
|
||||
this.Ticks = ticks;
|
||||
this.IsOneSecond = this.IsMultipleOf(60);
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace StardewModdingAPI.Events
|
|||
*********/
|
||||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="ticks">The number of ticks elapsed since the game started, including the current tick.</param>
|
||||
public UpdateTickedEventArgs(uint ticks)
|
||||
internal UpdateTickedEventArgs(uint ticks)
|
||||
{
|
||||
this.Ticks = ticks;
|
||||
this.IsOneSecond = this.IsMultipleOf(60);
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace StardewModdingAPI.Events
|
|||
*********/
|
||||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="ticks">The number of ticks elapsed since the game started, including the current tick.</param>
|
||||
public UpdateTickingEventArgs(uint ticks)
|
||||
internal UpdateTickingEventArgs(uint ticks)
|
||||
{
|
||||
this.Ticks = ticks;
|
||||
this.IsOneSecond = this.IsMultipleOf(60);
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <param name="player">The player who warped to a new location.</param>
|
||||
/// <param name="oldLocation">The player's previous location.</param>
|
||||
/// <param name="newLocation">The player's current location.</param>
|
||||
public WarpedEventArgs(Farmer player, GameLocation oldLocation, GameLocation newLocation)
|
||||
internal WarpedEventArgs(Farmer player, GameLocation oldLocation, GameLocation newLocation)
|
||||
{
|
||||
this.Player = player;
|
||||
this.NewLocation = newLocation;
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace StardewModdingAPI.Events
|
|||
/// <summary>Construct an instance.</summary>
|
||||
/// <param name="oldSize">The previous window size.</param>
|
||||
/// <param name="newSize">The current window size.</param>
|
||||
public WindowResizedEventArgs(Point oldSize, Point newSize)
|
||||
internal WindowResizedEventArgs(Point oldSize, Point newSize)
|
||||
{
|
||||
this.OldSize = oldSize;
|
||||
this.NewSize = newSize;
|
||||
|
|
Loading…
Reference in New Issue