Browse Source

Remove GetLocation overrides, base class implementation suits

master
desktop-maesty/steve 5 years ago
parent
commit
63452ec3d5
  1. 5
      Assets/Fungus/Scripts/Commands/Call.cs
  2. 5
      Assets/Fungus/Scripts/Commands/Menu.cs
  3. 7
      Assets/Fungus/Scripts/Commands/MenuTimer.cs
  4. 5
      Assets/Fungus/Scripts/Commands/StopBlock.cs
  5. 2
      Assets/Fungus/Scripts/Components/Command.cs

5
Assets/Fungus/Scripts/Commands/Call.cs

@ -163,11 +163,6 @@ namespace Fungus
return block == targetBlock;
}
public string GetLocationIdentifier()
{
return ParentBlock.GetFlowchart().GetName() + ":" + ParentBlock.BlockName + ".Call:" + CommandIndex.ToString();
}
#endregion
}
}

5
Assets/Fungus/Scripts/Commands/Menu.cs

@ -106,11 +106,6 @@ namespace Fungus
return block == targetBlock;
}
public string GetLocationIdentifier()
{
return ParentBlock.GetFlowchart().GetName() + ":" + ParentBlock.BlockName + ".Menu:" + CommandIndex.ToString();
}
#endregion
#region ILocalizable implementation

7
Assets/Fungus/Scripts/Commands/MenuTimer.cs

@ -72,12 +72,7 @@ namespace Fungus
{
return block == targetBlock;
}
public string GetLocationIdentifier()
{
return ParentBlock.GetFlowchart().GetName() + ":" + ParentBlock.BlockName + ".Menu Timer:" + CommandIndex.ToString();
}
#endregion
#region Backwards compatibility

5
Assets/Fungus/Scripts/Commands/StopBlock.cs

@ -67,11 +67,6 @@ namespace Fungus
return false;
}
public string GetLocationIdentifier()
{
return ParentBlock.GetFlowchart().GetName() + ":" + ParentBlock.BlockName + ".StopBlock:" + CommandIndex.ToString();
}
#endregion
}
}

2
Assets/Fungus/Scripts/Components/Command.cs

@ -230,7 +230,7 @@ namespace Fungus
public virtual string GetLocationIdentifier()
{
return ParentBlock.GetFlowchart().GetName() + ":" + ParentBlock.BlockName + "." + this.GetType().Name + ":" + CommandIndex.ToString();
return ParentBlock.GetFlowchart().GetName() + ":" + ParentBlock.BlockName + "." + this.GetType().Name + "#" + CommandIndex.ToString();
}
/// <summary>

Loading…
Cancel
Save