diff --git a/CHANGELOG.md b/CHANGELOG.md index 03ab7bb..78c1029 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Additions - Added DrawExtendedAutoTile to the AutoTiling class Improvements +- *Moved AutoTiling to Graphics namespace* - Cache TokenizedString inner offsets for non-Left text alignments to improve performance - Exposed Camera's RoundPosition - Exposed the epsilon value used by Camera @@ -28,6 +29,9 @@ Improvements Fixes - Fixed some end-of-line inconsistencies when using the Right text alignment +Removals +- *Removed deprecated Misc versions of SoundEffectInfo and SoundEffectInstanceHandler* + ### MLEM.Ui Additions - Allow specifying a maximum amount of characters for a TextField diff --git a/Demos/AutoTilingDemo.cs b/Demos/AutoTilingDemo.cs index a734d03..6ab657b 100644 --- a/Demos/AutoTilingDemo.cs +++ b/Demos/AutoTilingDemo.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using MLEM.Misc; +using MLEM.Graphics; using MLEM.Startup; namespace Demos { diff --git a/MLEM/Extensions/SpriteBatchExtensions.cs b/MLEM/Extensions/SpriteBatchExtensions.cs index 0769397..d8da017 100644 --- a/MLEM/Extensions/SpriteBatchExtensions.cs +++ b/MLEM/Extensions/SpriteBatchExtensions.cs @@ -1,5 +1,6 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using MLEM.Graphics; using MLEM.Misc; using MLEM.Textures; diff --git a/MLEM/Misc/AutoTiling.cs b/MLEM/Graphics/AutoTiling.cs similarity index 99% rename from MLEM/Misc/AutoTiling.cs rename to MLEM/Graphics/AutoTiling.cs index 9014801..16928ff 100644 --- a/MLEM/Misc/AutoTiling.cs +++ b/MLEM/Graphics/AutoTiling.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -namespace MLEM.Misc { +namespace MLEM.Graphics { /// /// This class contains a method that allows users to easily draw a tile with automatic connections, as well as a more complex method. /// Note that can also be used for drawing by using the and methods instead. diff --git a/MLEM/Misc/StaticSpriteBatch.cs b/MLEM/Graphics/StaticSpriteBatch.cs similarity index 99% rename from MLEM/Misc/StaticSpriteBatch.cs rename to MLEM/Graphics/StaticSpriteBatch.cs index 0e9392d..9c611f0 100644 --- a/MLEM/Misc/StaticSpriteBatch.cs +++ b/MLEM/Graphics/StaticSpriteBatch.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using MLEM.Extensions; -namespace MLEM.Misc { +namespace MLEM.Graphics { /// /// A static sprite batch is a variation of that keeps all batched items in a , allowing for them to be drawn multiple times. /// To add items to a static sprite batch, use to begin batching, to clear currently batched items, Add and its various overloads to add batch items, to remove them again, and to end batching. diff --git a/MLEM/Misc/SoundEffectInfo.cs b/MLEM/Misc/SoundEffectInfo.cs deleted file mode 100644 index 683f2e1..0000000 --- a/MLEM/Misc/SoundEffectInfo.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using Microsoft.Xna.Framework.Audio; - -namespace MLEM.Misc { - /// - [Obsolete("This class has been moved to MLEM.Sound.SoundEffectInfo in 5.1.0")] - public class SoundEffectInfo : Sound.SoundEffectInfo { - - /// - public SoundEffectInfo(SoundEffect sound, float volume = 1, float pitch = 0, float pan = 0) : base(sound, volume, pitch, pan) { - } - - } -} \ No newline at end of file diff --git a/MLEM/Misc/SoundEffectInstanceHandler.cs b/MLEM/Misc/SoundEffectInstanceHandler.cs deleted file mode 100644 index 3a094b1..0000000 --- a/MLEM/Misc/SoundEffectInstanceHandler.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using Microsoft.Xna.Framework; - -namespace MLEM.Misc { - /// - [Obsolete("This class has been moved to MLEM.Sound.SoundEffectInstanceHandler in 5.1.0")] - public class SoundEffectInstanceHandler : Sound.SoundEffectInstanceHandler { - - /// - public SoundEffectInstanceHandler(Game game) : base(game) { - } - - } -} \ No newline at end of file diff --git a/MLEM/Sound/SoundEffectInstanceHandler.cs b/MLEM/Sound/SoundEffectInstanceHandler.cs index 790f481..9b7d68c 100644 --- a/MLEM/Sound/SoundEffectInstanceHandler.cs +++ b/MLEM/Sound/SoundEffectInstanceHandler.cs @@ -86,7 +86,7 @@ namespace MLEM.Sound { } /// - /// Adds a new to this handler. + /// Adds a new to this handler. /// This also starts playing the created instance. /// /// The info for which to add a diff --git a/MLEM/Textures/TextureRegion.cs b/MLEM/Textures/TextureRegion.cs index 16d1488..6557567 100644 --- a/MLEM/Textures/TextureRegion.cs +++ b/MLEM/Textures/TextureRegion.cs @@ -1,6 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using MLEM.Extensions; +using MLEM.Graphics; using MLEM.Misc; namespace MLEM.Textures {