-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from SadConsole/develop
8.99.3 release to support MonoGame 3.8 release.
- Loading branch information
Showing
14 changed files
with
96 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="MonoGame.Framework.DesktopGL" version="3.7.1.189" targetFramework="net461" /> | ||
<package id="MonoGame.Framework.DesktopGL" version="3.8.0.1641" targetFramework="net472" /> | ||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Globalization; | ||
|
||
namespace SadConsole.StringParser | ||
{ | ||
/// <summary> | ||
/// Clears the cell effect for the glyph. | ||
/// </summary> | ||
public sealed class ParseCommandClearEffect : ParseCommandBase | ||
{ | ||
public int Counter; | ||
|
||
public ParseCommandClearEffect(string parameters, ParseCommandStacks commandStack) | ||
{ | ||
string[] parametersArray = parameters.Split(':'); | ||
|
||
if (parametersArray.Length == 1 && parametersArray[0] != "") | ||
Counter = int.Parse(parametersArray[0], CultureInfo.InvariantCulture); | ||
else | ||
Counter = -1; | ||
|
||
commandStack.TurnOnEffects = true; | ||
|
||
// No exceptions, set the type | ||
CommandType = CommandTypes.Effect; | ||
} | ||
|
||
public override void Build(ref ColoredGlyph glyphState, ColoredGlyph[] glyphString, int surfaceIndex, | ||
CellSurface surface, ref int stringIndex, string processedString, ParseCommandStacks commandStack) | ||
{ | ||
glyphState.Effect = null; | ||
|
||
if (Counter != -1) | ||
{ | ||
Counter--; | ||
|
||
if (Counter == 0) | ||
commandStack.RemoveSafe(this); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters