private static void ListenForDestruction(TileDestroyedCondition condition)
{
if (!_isListenerHooked)
{
AchievementsHelper.OnTileDestroyed += new AchievementsHelper.TileDestroyedEvent(TileDestroyedListener);
_isListenerHooked = true;
}
for (int index = 0; index < condition._tileIds.Length; ++index)
{
if (!_listeners.ContainsKey(condition._tileIds[index]))
_listeners[condition._tileIds[index]] = new List<TileDestroyedCondition>();
_listeners[condition._tileIds[index]].Add(condition);
}
}