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. 5
      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; return block == targetBlock;
} }
public string GetLocationIdentifier()
{
return ParentBlock.GetFlowchart().GetName() + ":" + ParentBlock.BlockName + ".Call:" + CommandIndex.ToString();
}
#endregion #endregion
} }
} }

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

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

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

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

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

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

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

@ -230,7 +230,7 @@ namespace Fungus
public virtual string GetLocationIdentifier() 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> /// <summary>

Loading…
Cancel
Save