using System.Diagnostics; using System.Collections; using System.Collections.Generic; using System; using Godot; namespace Rokojori { public class Map : Dictionary { public void ForEach( Action callback ) { foreach ( var kv in this ) { callback( kv.Key, kv.Value ); } } } public class StringMap : Map { public string ReplaceAll( string source ) { return RegexUtility.ReplaceMultiple( source, this ); } } }