Browse Source

Reverted ICustomTag interface

master
Christopher 8 years ago
parent
commit
6cd4e222f0
  1. 16
      Assets/Fungus/Scripts/Components/CustomTag.cs
  2. 31
      Assets/Fungus/Scripts/Interfaces/ICustomTag.cs
  3. 12
      Assets/Fungus/Scripts/Interfaces/ICustomTag.cs.meta

16
Assets/Fungus/Scripts/Components/CustomTag.cs

@ -10,7 +10,7 @@ namespace Fungus
/// Create custom tags for use in Say text.
/// </summary>
[ExecuteInEditMode]
public class CustomTag : MonoBehaviour, ICustomTag
public class CustomTag : MonoBehaviour
{
[Tooltip("String that defines the start of the tag.")]
[SerializeField] protected string tagStartSymbol;
@ -39,14 +39,26 @@ namespace Fungus
activeCustomTags.Remove(this);
}
#region ICustomTag implementation
#region Public methods
/// <summary>
/// String that defines the start of the tag.
/// </summary>
public virtual string TagStartSymbol { get { return tagStartSymbol; } }
/// <summary>
/// String that defines the end of the tag.
/// </summary>
public virtual string TagEndSymbol { get { return tagEndSymbol; } }
/// <summary>
/// String to replace the start tag with.
/// </summary>
public virtual string ReplaceTagStartWith { get { return replaceTagStartWith; } }
/// <summary>
/// String to replace the end tag with.
/// </summary>
public virtual string ReplaceTagEndWith { get { return replaceTagEndWith; } }
#endregion

31
Assets/Fungus/Scripts/Interfaces/ICustomTag.cs

@ -1,31 +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)
namespace Fungus
{
/// <summary>
/// Create custom tags for use in Say text.
/// </summary>
public interface ICustomTag
{
/// <summary>
/// String that defines the start of the tag.
/// </summary>
string TagStartSymbol { get; }
/// <summary>
/// String that defines the end of the tag.
/// </summary>
string TagEndSymbol { get; }
/// <summary>
/// String to replace the start tag with.
/// </summary>
string ReplaceTagStartWith { get; }
/// <summary>
/// String to replace the end tag with.
/// </summary>
string ReplaceTagEndWith { get; }
}
}

12
Assets/Fungus/Scripts/Interfaces/ICustomTag.cs.meta

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 59af36c15380c4854860339298d3779e
timeCreated: 1473680400
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save