This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

@@ -1,5 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace BITKit
@@ -9,4 +11,22 @@ namespace BITKit
string GetConfig(params object[] args);
void Configure(params object[] args);
}
[Serializable]
public sealed class ConfigProviders:IConfigProvider
{
[SerializeReference,SubclassSelector] private IConfigProvider[] providers;
public string GetConfig(params object[] args)
{
return string.Join("\n",providers.Select(x=>x.GetConfig(args)));
}
public void Configure(params object[] args)
{
foreach (var provider in providers)
{
provider.Configure(args);
}
}
}
}