using Milimoe.FunGame.Core.Api.Utility; using Milimoe.FunGame.Core.Entity; namespace Milimoe.FunGame.Core.Api.OpenEntityAdapter { public class OpenItemAdapter { public static void Adaptation(EntityModuleConfig config) where T : BaseEntity { foreach (string key in config.Keys) { if (config[key] is Item prev) { Item next = prev.Copy(); if (next is T t) { config[key] = t; } } } } } }