diff --git a/Assets/Fungus/Scripts/Components/Writer.cs b/Assets/Fungus/Scripts/Components/Writer.cs index afe63587..507b1188 100644 --- a/Assets/Fungus/Scripts/Components/Writer.cs +++ b/Assets/Fungus/Scripts/Components/Writer.cs @@ -833,7 +833,7 @@ namespace Fungus tokenText += "{wi}"; } - ITextTagParser tagParser = new TextTagParser(); + var tagParser = new TextTagParser(); List tokens = tagParser.Tokenize(tokenText); gameObject.SetActive(true); diff --git a/Assets/Fungus/Scripts/Interfaces/ITextTagParser.cs b/Assets/Fungus/Scripts/Interfaces/ITextTagParser.cs deleted file mode 100644 index 2c7be361..00000000 --- a/Assets/Fungus/Scripts/Interfaces/ITextTagParser.cs +++ /dev/null @@ -1,13 +0,0 @@ -// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). -// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) - -using System.Collections.Generic; -using Fungus.Utils; - -namespace Fungus -{ - public interface ITextTagParser - { - List Tokenize(string storyText); - } -} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Interfaces/ITextTagParser.cs.meta b/Assets/Fungus/Scripts/Interfaces/ITextTagParser.cs.meta deleted file mode 100644 index 1d4370e0..00000000 --- a/Assets/Fungus/Scripts/Interfaces/ITextTagParser.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1e3f4aab68276483e9d40b120cc1cafc -timeCreated: 1473756939 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Utils/TextTagParser.cs b/Assets/Fungus/Scripts/Utils/TextTagParser.cs index 868d9140..524a1fa5 100644 --- a/Assets/Fungus/Scripts/Utils/TextTagParser.cs +++ b/Assets/Fungus/Scripts/Utils/TextTagParser.cs @@ -10,7 +10,7 @@ namespace Fungus.Utils /// /// Parses a string for special Fungus text tags. /// - public class TextTagParser : ITextTagParser + public class TextTagParser { public static string GetTagHelp() { @@ -217,8 +217,11 @@ namespace Fungus.Utils return paramsList; } - #region ITextTagParser implementation + #region Public methods + /// + /// Processes a block of story text and converts it to a list of tokens. + /// public virtual List Tokenize(string storyText) { List tokens = new List();