summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events
AgeCommit message (Collapse)Author
2022-05-11rewrite asset operations to reduce allocationsJesse Plamondon-Willard
• When raising AssetRequested, SMAPI now creates a single event args model and reuses it for each handler. • There's now a single AssetOperationGroup per asset, which tracks the loaders/editors registered by every mod for that asset. • The operation group's loader/editor lists are now used directly instead of querying them.
2022-05-08use records for asset edit operationsJesse Plamondon-Willard
2022-05-08only build AssetWithoutLocale when it's usedJesse Plamondon-Willard
2022-04-13enable nullable annotations in the rest of SMAPI core (#837)Jesse Plamondon-Willard
2022-04-13remove unused code (#837)Jesse Plamondon-Willard
2022-04-13enable nullable annotations in SMAPI where no logic changes are needed (#837)Jesse Plamondon-Willard
2022-04-13enable nullable annotations in SMAPI where no changes are needed (#837)Jesse Plamondon-Willard
2022-04-09fix deprecation warning when a mod uses LoadFromModFileJesse Plamondon-Willard
2022-04-06enable nullable annotations by default (#837)Jesse Plamondon-Willard
This adds `#nullable disable` to all existing code (except where null is impossible like enum files), so it can be migrated incrementally.
2022-03-27add asset type to AssetRequested event (#766)Jesse Plamondon-Willard
2022-03-26add LocaleChanged content event (#766)Jesse Plamondon-Willard
2022-03-26add asset edit priority (#766)Jesse Plamondon-Willard
2022-03-26add NameWithoutLocale fields (#766)Jesse Plamondon-Willard
2022-03-25extend load conflict resolution into load priority (#766)Jesse Plamondon-Willard
2022-03-25add load conflict resolution option (#766)Jesse Plamondon-Willard
2022-03-25add content pack labels (#766)Jesse Plamondon-Willard
2022-03-25use immutable set for invalidated asset names (#766)Jesse Plamondon-Willard
2022-03-25add AssetReady content event (#766)Jesse Plamondon-Willard
2022-03-24add AssetInvalidated content event (#766)Jesse Plamondon-Willard
2022-03-23add initial AssetRequested content event (#766)Jesse Plamondon-Willard
2022-02-11use Array.Empty to avoid unneeded array allocationsJesse Plamondon-Willard
2021-05-26Update FurnitureListChangedEventArgs.csDiscipleOfEris
Prune unnecessary `using` statements
2021-05-26Add `World.FurnitureListChanged` eventDiscipleOfEris
Create a new event available to SMAPI mods to track furniture changes. To facilitate the event, a `FurnitureListChangedEventArgs` class is added as well. Fixes #778
2021-01-19add Input.ButtonsChanged event (#744)Jesse Plamondon-Willard
2021-01-01fix network messages not using same JSON serializer settings (#745)Jesse Plamondon-Willard
2020-08-23minor cleanupJesse Plamondon-Willard
2020-08-23centralise core SMAPI logic, decouple from Game1 where possibleJesse Plamondon-Willard
2020-06-15Merge pull request #723 from spacechase0/event-priorityJesse Plamondon-Willard
Implement event priority attribute
2020-06-15increase event priority rangeJesse Plamondon-Willard
This can be used in cases where more granular priority is needed.
2020-06-15refactor & optimize event code a bit, drop old support for unknown event ↵Jesse Plamondon-Willard
handlers
2020-06-15Implemented event priority attributeChase W
2020-05-04add Multiplayer.PeerConnected eventJesse Plamondon-Willard
2020-03-08rework input handling to allow sending custom input to the game/modsJesse Plamondon-Willard
That will let Virtual Keyboard on Android work with the future multi-key binding API, and with mods that check input state directly (e.g. Pathoschild/StardewMods#520). It might also be useful as a public API in future versions.
2020-01-01unify item diff logic for players & chestsJesse Plamondon-Willard
2019-12-31minor refactoringJesse Plamondon-Willard
2019-12-31Finished chest eventswartech0
2019-12-31minor refactoringJesse Plamondon-Willard
This commit... - removes key fields added to non-keyed types like NetListWatcher and SnapshotListDiff; - fixes existing chests not being watched; - fixes diffs not correctly updated for added/removed chests; - performs minor cleanup, adds missing docs, etc.
2019-12-31Added the new ChestItemChanged event.wartech0
2019-09-18fix saving event doc typodanvolchek
2019-09-14fix typos and inconsistent spellingJesse Plamondon-Willard
2019-09-14remove deprecated APIs (#606)Jesse Plamondon-Willard
2018-12-30fix GameLaunched raised twice due to Game1.ticks not incrementing reliablyJesse Plamondon-Willard
2018-12-29add IsCurrentLocation event arg to World eventsJesse Plamondon-Willard
2018-12-27tweak comment header conventionJesse Plamondon-Willard
2018-12-25minor performance optimisationJesse Plamondon-Willard
2018-12-25add GameLoop.OneSecondUpdateTicking/TickedJesse Plamondon-Willard
2018-12-24add Specialised.LoadStageChanged eventJesse Plamondon-Willard
2018-12-23add Specialised.SavePreloaded eventJesse Plamondon-Willard
2018-12-13simplify access to deprecation manager for deprecation warningsJesse Plamondon-Willard
2018-12-04add IsLocalPlayer flag to player eventsJesse Plamondon-Willard