Browse Source

Use #region to mark interface implementations

master
Christopher 9 years ago
parent
commit
2082e1e2e7
  1. 6
      Assets/Fungus/Narrative/Scripts/Character.cs
  2. 8
      Assets/Fungus/Narrative/Scripts/Commands/Menu.cs
  3. 8
      Assets/Fungus/Narrative/Scripts/Commands/Say.cs
  4. 8
      Assets/Fungus/UI/Scripts/Commands/SetText.cs
  5. 6
      Assets/Fungus/UI/Scripts/Commands/Write.cs
  6. 7
      Assets/Fungus/UI/Scripts/Writer.cs
  7. 6
      Assets/Fungus/UI/Scripts/WriterAudio.cs

6
Assets/Fungus/Narrative/Scripts/Character.cs

@ -59,9 +59,7 @@ namespace Fungus
activeCharacters.Remove(this); activeCharacters.Remove(this);
} }
// #region ILocalizable implementation
// ILocalizable implementation
//
public virtual string GetStandardText() public virtual string GetStandardText()
{ {
@ -112,5 +110,7 @@ namespace Fungus
// String id for character names is CHARACTER.<Character Name> // String id for character names is CHARACTER.<Character Name>
return "CHARACTER." + nameText; return "CHARACTER." + nameText;
} }
#endregion
} }
} }

8
Assets/Fungus/Narrative/Scripts/Commands/Menu.cs

@ -90,10 +90,8 @@ namespace Fungus
return new Color32(184, 210, 235, 255); return new Color32(184, 210, 235, 255);
} }
// #region ILocalizable implementation
// ILocalizable implementation
//
public virtual string GetStandardText() public virtual string GetStandardText()
{ {
return text; return text;
@ -114,5 +112,7 @@ namespace Fungus
// String id for Menu commands is MENU.<Localization Id>.<Command id> // String id for Menu commands is MENU.<Localization Id>.<Command id>
return "MENU." + GetFlowchartLocalizationId() + "." + itemId; return "MENU." + GetFlowchartLocalizationId() + "." + itemId;
} }
#endregion
} }
} }

8
Assets/Fungus/Narrative/Scripts/Commands/Say.cs

@ -145,10 +145,8 @@ namespace Fungus
sayDialog.Stop(); sayDialog.Stop();
} }
// #region ILocalizable implementation
// ILocalizable implementation
//
public virtual string GetStandardText() public virtual string GetStandardText()
{ {
return storyText; return storyText;
@ -175,5 +173,7 @@ namespace Fungus
return stringId; return stringId;
} }
#endregion
} }
} }

8
Assets/Fungus/UI/Scripts/Commands/SetText.cs

@ -90,10 +90,8 @@ namespace Fungus
} }
} }
// #region ILocalizable implementation
// ILocalizable implementation
//
public virtual string GetStandardText() public virtual string GetStandardText()
{ {
return text; return text;
@ -114,5 +112,7 @@ namespace Fungus
// String id for Set Text commands is SETTEXT.<Localization Id>.<Command id> // String id for Set Text commands is SETTEXT.<Localization Id>.<Command id>
return "SETTEXT." + GetFlowchartLocalizationId() + "." + itemId; return "SETTEXT." + GetFlowchartLocalizationId() + "." + itemId;
} }
#endregion
} }
} }

6
Assets/Fungus/UI/Scripts/Commands/Write.cs

@ -118,9 +118,7 @@ namespace Fungus
GetWriter().Stop(); GetWriter().Stop();
} }
// #region ILocalizable implementation
// ILocalizable implementation
//
public virtual string GetStandardText() public virtual string GetStandardText()
{ {
@ -142,5 +140,7 @@ namespace Fungus
// String id for Write commands is WRITE.<Localization Id>.<Command id> // String id for Write commands is WRITE.<Localization Id>.<Command id>
return "WRITE." + GetFlowchartLocalizationId() + "." + itemId; return "WRITE." + GetFlowchartLocalizationId() + "." + itemId;
} }
#endregion
} }
} }

7
Assets/Fungus/UI/Scripts/Writer.cs

@ -895,9 +895,8 @@ namespace Fungus
} }
} }
// #region IDialogInputListener implementation
// IDialogInputListener implementation
//
public virtual void OnNextLineEvent() public virtual void OnNextLineEvent()
{ {
inputFlag = true; inputFlag = true;
@ -907,5 +906,7 @@ namespace Fungus
NotifyInput(); NotifyInput();
} }
} }
#endregion
} }
} }

6
Assets/Fungus/UI/Scripts/WriterAudio.cs

@ -171,9 +171,7 @@ namespace Fungus
targetAudioSource.volume = Mathf.MoveTowards(targetAudioSource.volume, targetVolume, Time.deltaTime * 5f); targetAudioSource.volume = Mathf.MoveTowards(targetAudioSource.volume, targetVolume, Time.deltaTime * 5f);
} }
// #region IWriterListener implementation
// IWriterListener implementation
//
public virtual void OnInput() public virtual void OnInput()
{ {
@ -247,5 +245,7 @@ namespace Fungus
} }
} }
} }
#endregion
} }
} }
Loading…
Cancel
Save