using Godot; using System.Collections.Generic; namespace Rokojori { [Tool] [GlobalClass] public partial class AppSettings:Resource { [Export] public AppSettingsCategory[] categories = []; public void ApplySetting( App app, string key, string value ) { app.SetSetting( key, value ); categories.ForEach( ( c )=> { c.settings.ForEach( ( s)=> { if ( s.id != key ) { return; } s.ApplyValue( app ); } ); } ); } } }