Files
Fishing2/Assets/Scripts/Configs~/Editor/ConfigWarpTemplate
2025-10-10 17:57:36 +08:00

65 lines
1.5 KiB
Plaintext

/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
using System;
using System.Collections.Generic;
namespace NBF
{
[Serializable]
public partial class ##NAME##
{
private static ConfigContext<##NAME##> _context;
private static ConfigContext<##NAME##> Context => _context ??= Configs.Table<##NAME##>();
public static ##NAME## Get(int key)
{
return Context.Get(key);
}
public static ##NAME## Get(Predicate<##NAME##> match)
{
return Context.Get(match);
}
public static ##NAME## Fist()
{
return Context.Fist();
}
public static ##NAME## Last()
{
return Context.Last();
}
public static ##NAME## Fist(Predicate<##NAME##> match)
{
return Context.Fist(match);
}
public static ##NAME## Last(Predicate<##NAME##> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<##NAME##, bool> predicate)
{
return Context.Count(predicate);
}
public static List<##NAME##> GetList()
{
return Context.GetList();
}
public static List<##NAME##> GetList(Predicate<##NAME##> match)
{
return Context.GetList(match);
}
}
}