summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Events/IManagedEvent.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-26 19:49:17 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-26 19:49:17 -0500
commit22a0a32b6d959946bfd80bf0ca9796378f36e0cd (patch)
tree4dc91461e2a06148c975d12d46986a6a9648e1ff /src/SMAPI/Framework/Events/IManagedEvent.cs
parent1b905205a3073c56e29c46b5e57c4a9cb2ca5832 (diff)
downloadSMAPI-22a0a32b6d959946bfd80bf0ca9796378f36e0cd.tar.gz
SMAPI-22a0a32b6d959946bfd80bf0ca9796378f36e0cd.tar.bz2
SMAPI-22a0a32b6d959946bfd80bf0ca9796378f36e0cd.zip
refactor performance counter code
This commit performs some general refactoring, including... - avoid manually duplicating the event list; - rework the 'is important' event flag; - remove the new packages (Cyotek.Collections can be replaced with built-in types, and System.ValueTuple won't work in the Mono version used on Linux/Mac); - improve performance; - minor cleanup.
Diffstat (limited to 'src/SMAPI/Framework/Events/IManagedEvent.cs')
-rw-r--r--src/SMAPI/Framework/Events/IManagedEvent.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Events/IManagedEvent.cs b/src/SMAPI/Framework/Events/IManagedEvent.cs
index 04476866..e4e3ca08 100644
--- a/src/SMAPI/Framework/Events/IManagedEvent.cs
+++ b/src/SMAPI/Framework/Events/IManagedEvent.cs
@@ -1,7 +1,15 @@
namespace StardewModdingAPI.Framework.Events
{
+ /// <summary>Metadata for an event raised by SMAPI.</summary>
internal interface IManagedEvent
{
- string GetName();
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>A human-readable name for the event.</summary>
+ string EventName { get; }
+
+ /// <summary>Whether the event is typically called at least once per second.</summary>
+ bool IsPerformanceCritical { get; }
}
}