From 74b1728dcb180ad0c7df6daa51280b8e7a893c50 Mon Sep 17 00:00:00 2001 From: Harrison Date: Mon, 6 Jul 2020 14:04:49 -0500 Subject: [PATCH] Fixed some typos. --- .../Exceptions/InternalFrameworkException.cs | 2 +- src/SlatedGameToolkit.Framework/Exceptions/SDLException.cs | 2 +- .../Graphics/Window/WindowContext.cs | 2 +- src/SlatedGameToolkit.Framework/Logging/ILogListener.cs | 2 +- src/SlatedGameToolkit.Framework/Logging/Logger.cs | 4 ++-- .../Utilities/Playground/ConsolePlaygroundListener.cs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SlatedGameToolkit.Framework/Exceptions/InternalFrameworkException.cs b/src/SlatedGameToolkit.Framework/Exceptions/InternalFrameworkException.cs index 8513ec8..af443b2 100644 --- a/src/SlatedGameToolkit.Framework/Exceptions/InternalFrameworkException.cs +++ b/src/SlatedGameToolkit.Framework/Exceptions/InternalFrameworkException.cs @@ -3,7 +3,7 @@ using System; namespace SlatedGameToolkit.Framework.Exceptions { /// - /// An exception that is thrown when an error occurrs on the game framework level that shouldn't have occurred and is definitely considered a bug. + /// An exception that is thrown when an error occurs on the game framework level that shouldn't have occurred and is definitely considered a bug. /// internal class InternalFrameworkException : FrameworkException { const string ADDITIONAL_MESSAGE = "**This exception is a framework bug!**"; diff --git a/src/SlatedGameToolkit.Framework/Exceptions/SDLException.cs b/src/SlatedGameToolkit.Framework/Exceptions/SDLException.cs index 8f8addc..37f063c 100644 --- a/src/SlatedGameToolkit.Framework/Exceptions/SDLException.cs +++ b/src/SlatedGameToolkit.Framework/Exceptions/SDLException.cs @@ -4,7 +4,7 @@ using SDL2; namespace SlatedGameToolkit.Framework.Exceptions { /// - /// An SDLException is defined as an exception that is thrown whenever an error occurrs in any SDL functions. + /// An SDLException is defined as an exception that is thrown whenever an error occurs in any SDL functions. /// [Serializable] public class SDLException : FrameworkException { diff --git a/src/SlatedGameToolkit.Framework/Graphics/Window/WindowContext.cs b/src/SlatedGameToolkit.Framework/Graphics/Window/WindowContext.cs index cd93b0b..e58509f 100644 --- a/src/SlatedGameToolkit.Framework/Graphics/Window/WindowContext.cs +++ b/src/SlatedGameToolkit.Framework/Graphics/Window/WindowContext.cs @@ -79,7 +79,7 @@ namespace SlatedGameToolkit.Framework.Graphics.Window /// Whether or not to attempt to perform vertical synchronization. /// Will use adaptive sync if supported. /// If this window is not the current active window, retrieving and setting requires a context switch. - /// If a context switch was nessecary, will automatically switch back to previous once operation is complete. + /// If a context switch was necessary, will automatically switch back to previous once operation is complete. /// If neither normal VSync or adaptive sync are available, enabling will throw an OptionalSDLException. /// /// diff --git a/src/SlatedGameToolkit.Framework/Logging/ILogListener.cs b/src/SlatedGameToolkit.Framework/Logging/ILogListener.cs index bce7122..448437e 100644 --- a/src/SlatedGameToolkit.Framework/Logging/ILogListener.cs +++ b/src/SlatedGameToolkit.Framework/Logging/ILogListener.cs @@ -12,6 +12,6 @@ namespace SlatedGameToolkit.Framework.Logging /// The message to be logged. /// The time at which this message was requested to be logged. /// The severity of this message. - void LogMesesage(string message, DateTime time, LogLevel level); + void LogMessage(string message, DateTime time, LogLevel level); } } \ No newline at end of file diff --git a/src/SlatedGameToolkit.Framework/Logging/Logger.cs b/src/SlatedGameToolkit.Framework/Logging/Logger.cs index 15d0273..0aebe85 100644 --- a/src/SlatedGameToolkit.Framework/Logging/Logger.cs +++ b/src/SlatedGameToolkit.Framework/Logging/Logger.cs @@ -10,12 +10,12 @@ namespace SlatedGameToolkit.Framework.Logging /// Logs the message to listeners that are listening to the set severity of the message or greater. /// /// The message to log. - /// The level of severity, by defeault, info. + /// The level of severity, by default, info. public static void Log(string message, LogLevel level = LogLevel.INFO) { foreach (ILogListener listener in listeners) { if (level <= listener.Level) { - listener.LogMesesage(message, DateTime.Now, level); + listener.LogMessage(message, DateTime.Now, level); } } } diff --git a/src/SlatedGameToolkit.Tools/Utilities/Playground/ConsolePlaygroundListener.cs b/src/SlatedGameToolkit.Tools/Utilities/Playground/ConsolePlaygroundListener.cs index 275bd44..9e8cbcb 100644 --- a/src/SlatedGameToolkit.Tools/Utilities/Playground/ConsolePlaygroundListener.cs +++ b/src/SlatedGameToolkit.Tools/Utilities/Playground/ConsolePlaygroundListener.cs @@ -15,7 +15,7 @@ namespace SlatedGameToolkit.Tools.Utilities.Playground this.interaction = interaction; } - public void LogMesesage(string message, DateTime time, LogLevel level) + public void LogMessage(string message, DateTime time, LogLevel level) { Console.SetCursorPosition(0, Console.CursorTop); Console.WriteLine(string.Format("Engine [{0}] [{1}]: {2}", level, time.ToString("H:mm:ss"), message));