表格重构
This commit is contained in:
122
Assets/Scripts/Configs~/Gen/ConfigAssets.Gen.cs
Normal file
122
Assets/Scripts/Configs~/Gen/ConfigAssets.Gen.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public partial class ConfigAssets
|
||||
{
|
||||
public List<BaitConfig> BaitConfigArr;
|
||||
public List<BobberConfig> BobberConfigArr;
|
||||
public List<FeederConfig> FeederConfigArr;
|
||||
public List<FishAcceptConfig> FishAcceptConfigArr;
|
||||
public List<FishConfig> FishConfigArr;
|
||||
public List<HookConfig> HookConfigArr;
|
||||
public List<LeadersConfig> LeadersConfigArr;
|
||||
public List<LineConfig> LineConfigArr;
|
||||
public List<LureConfig> LureConfigArr;
|
||||
public List<ReelConfig> ReelConfigArr;
|
||||
public List<RingConfig> RingConfigArr;
|
||||
public List<RodConfig> RodConfigArr;
|
||||
public List<UnitConfig> UnitConfigArr;
|
||||
public List<WeightConfig> WeightConfigArr;
|
||||
|
||||
public void Parse(JToken[] arr, Type type)
|
||||
{
|
||||
var tableNameAttribute = type.GetCustomAttribute<TableNameAttribute>();
|
||||
if (tableNameAttribute == null) return;
|
||||
if (type == typeof(BaitConfig))
|
||||
{
|
||||
BaitConfigArr = ParseLine<BaitConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(BobberConfig))
|
||||
{
|
||||
BobberConfigArr = ParseLine<BobberConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(FeederConfig))
|
||||
{
|
||||
FeederConfigArr = ParseLine<FeederConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(FishAcceptConfig))
|
||||
{
|
||||
FishAcceptConfigArr = ParseLine<FishAcceptConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(FishConfig))
|
||||
{
|
||||
FishConfigArr = ParseLine<FishConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(HookConfig))
|
||||
{
|
||||
HookConfigArr = ParseLine<HookConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(LeadersConfig))
|
||||
{
|
||||
LeadersConfigArr = ParseLine<LeadersConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(LineConfig))
|
||||
{
|
||||
LineConfigArr = ParseLine<LineConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(LureConfig))
|
||||
{
|
||||
LureConfigArr = ParseLine<LureConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(ReelConfig))
|
||||
{
|
||||
ReelConfigArr = ParseLine<ReelConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(RingConfig))
|
||||
{
|
||||
RingConfigArr = ParseLine<RingConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(RodConfig))
|
||||
{
|
||||
RodConfigArr = ParseLine<RodConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(UnitConfig))
|
||||
{
|
||||
UnitConfigArr = ParseLine<UnitConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
if (type == typeof(WeightConfig))
|
||||
{
|
||||
WeightConfigArr = ParseLine<WeightConfig>(arr, tableNameAttribute);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void AssociationContexts()
|
||||
{
|
||||
new ConfigContext<BaitConfig>().Association(BaitConfigArr);
|
||||
new ConfigContext<BobberConfig>().Association(BobberConfigArr);
|
||||
new ConfigContext<FeederConfig>().Association(FeederConfigArr);
|
||||
new ConfigContext<FishAcceptConfig>().Association(FishAcceptConfigArr);
|
||||
new ConfigContext<FishConfig>().Association(FishConfigArr);
|
||||
new ConfigContext<HookConfig>().Association(HookConfigArr);
|
||||
new ConfigContext<LeadersConfig>().Association(LeadersConfigArr);
|
||||
new ConfigContext<LineConfig>().Association(LineConfigArr);
|
||||
new ConfigContext<LureConfig>().Association(LureConfigArr);
|
||||
new ConfigContext<ReelConfig>().Association(ReelConfigArr);
|
||||
new ConfigContext<RingConfig>().Association(RingConfigArr);
|
||||
new ConfigContext<RodConfig>().Association(RodConfigArr);
|
||||
new ConfigContext<UnitConfig>().Association(UnitConfigArr);
|
||||
new ConfigContext<WeightConfig>().Association(WeightConfigArr);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/ConfigAssets.Gen.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/ConfigAssets.Gen.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bd9bbc8f86e64a928533f493e39813ed
|
||||
3
Assets/Scripts/Configs~/Gen/Warps.meta
Normal file
3
Assets/Scripts/Configs~/Gen/Warps.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98e70a75b52b4728aec1e5b7f506695c
|
||||
timeCreated: 1756050753
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/BaitConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/BaitConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class BaitConfig
|
||||
{
|
||||
private static ConfigContext<BaitConfig> _context;
|
||||
|
||||
private static ConfigContext<BaitConfig> Context => _context ??= Configs.Table<BaitConfig>();
|
||||
|
||||
public static BaitConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static BaitConfig Get(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static BaitConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static BaitConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static BaitConfig Fist(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static BaitConfig Last(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<BaitConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<BaitConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<BaitConfig> GetList(Predicate<BaitConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/BaitConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/BaitConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5c6bdb0bae4da2a4da6aacaf58a1abc0
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/BobberConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/BobberConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class BobberConfig
|
||||
{
|
||||
private static ConfigContext<BobberConfig> _context;
|
||||
|
||||
private static ConfigContext<BobberConfig> Context => _context ??= Configs.Table<BobberConfig>();
|
||||
|
||||
public static BobberConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static BobberConfig Get(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static BobberConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static BobberConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static BobberConfig Fist(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static BobberConfig Last(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<BobberConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<BobberConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<BobberConfig> GetList(Predicate<BobberConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 99b64c24f2bad454086ac41dd6aa7ffc
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/FeederConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/FeederConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class FeederConfig
|
||||
{
|
||||
private static ConfigContext<FeederConfig> _context;
|
||||
|
||||
private static ConfigContext<FeederConfig> Context => _context ??= Configs.Table<FeederConfig>();
|
||||
|
||||
public static FeederConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static FeederConfig Get(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static FeederConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static FeederConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static FeederConfig Fist(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static FeederConfig Last(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<FeederConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<FeederConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<FeederConfig> GetList(Predicate<FeederConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc082eda2a5880148843ce9c21ed4eed
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/FishAcceptConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/FishAcceptConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class FishAcceptConfig
|
||||
{
|
||||
private static ConfigContext<FishAcceptConfig> _context;
|
||||
|
||||
private static ConfigContext<FishAcceptConfig> Context => _context ??= Configs.Table<FishAcceptConfig>();
|
||||
|
||||
public static FishAcceptConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static FishAcceptConfig Get(Predicate<FishAcceptConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static FishAcceptConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static FishAcceptConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static FishAcceptConfig Fist(Predicate<FishAcceptConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static FishAcceptConfig Last(Predicate<FishAcceptConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<FishAcceptConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<FishAcceptConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<FishAcceptConfig> GetList(Predicate<FishAcceptConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 23d45122e487d8f439bf063a4df7a4b7
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/FishConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/FishConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class FishConfig
|
||||
{
|
||||
private static ConfigContext<FishConfig> _context;
|
||||
|
||||
private static ConfigContext<FishConfig> Context => _context ??= Configs.Table<FishConfig>();
|
||||
|
||||
public static FishConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static FishConfig Get(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static FishConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static FishConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static FishConfig Fist(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static FishConfig Last(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<FishConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<FishConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<FishConfig> GetList(Predicate<FishConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/FishConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/FishConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d60d97e94b1432c4e985a5469fd01409
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/HookConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/HookConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class HookConfig
|
||||
{
|
||||
private static ConfigContext<HookConfig> _context;
|
||||
|
||||
private static ConfigContext<HookConfig> Context => _context ??= Configs.Table<HookConfig>();
|
||||
|
||||
public static HookConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static HookConfig Get(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static HookConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static HookConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static HookConfig Fist(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static HookConfig Last(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<HookConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<HookConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<HookConfig> GetList(Predicate<HookConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/HookConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/HookConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fc38b93ab46f1bd4a83f81f1cd3b3e4c
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/LeadersConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/LeadersConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class LeadersConfig
|
||||
{
|
||||
private static ConfigContext<LeadersConfig> _context;
|
||||
|
||||
private static ConfigContext<LeadersConfig> Context => _context ??= Configs.Table<LeadersConfig>();
|
||||
|
||||
public static LeadersConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static LeadersConfig Get(Predicate<LeadersConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static LeadersConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static LeadersConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static LeadersConfig Fist(Predicate<LeadersConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static LeadersConfig Last(Predicate<LeadersConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<LeadersConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<LeadersConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<LeadersConfig> GetList(Predicate<LeadersConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7911fb1cf4470014eadb4d9db5db5861
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/LineConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/LineConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class LineConfig
|
||||
{
|
||||
private static ConfigContext<LineConfig> _context;
|
||||
|
||||
private static ConfigContext<LineConfig> Context => _context ??= Configs.Table<LineConfig>();
|
||||
|
||||
public static LineConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static LineConfig Get(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static LineConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static LineConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static LineConfig Fist(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static LineConfig Last(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<LineConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<LineConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<LineConfig> GetList(Predicate<LineConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/LineConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/LineConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1acb019fe35da324cb5a26e45c54532d
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/LureConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/LureConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class LureConfig
|
||||
{
|
||||
private static ConfigContext<LureConfig> _context;
|
||||
|
||||
private static ConfigContext<LureConfig> Context => _context ??= Configs.Table<LureConfig>();
|
||||
|
||||
public static LureConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static LureConfig Get(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static LureConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static LureConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static LureConfig Fist(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static LureConfig Last(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<LureConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<LureConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<LureConfig> GetList(Predicate<LureConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/LureConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/LureConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74aae733a506d0840a1a7cc2623ed5fd
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/ReelConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/ReelConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class ReelConfig
|
||||
{
|
||||
private static ConfigContext<ReelConfig> _context;
|
||||
|
||||
private static ConfigContext<ReelConfig> Context => _context ??= Configs.Table<ReelConfig>();
|
||||
|
||||
public static ReelConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static ReelConfig Get(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static ReelConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static ReelConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static ReelConfig Fist(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static ReelConfig Last(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<ReelConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<ReelConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<ReelConfig> GetList(Predicate<ReelConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/ReelConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/ReelConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6bfa9f163eb97be418e04f1f62c607de
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/RingConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/RingConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class RingConfig
|
||||
{
|
||||
private static ConfigContext<RingConfig> _context;
|
||||
|
||||
private static ConfigContext<RingConfig> Context => _context ??= Configs.Table<RingConfig>();
|
||||
|
||||
public static RingConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static RingConfig Get(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static RingConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static RingConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static RingConfig Fist(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static RingConfig Last(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<RingConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<RingConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<RingConfig> GetList(Predicate<RingConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/RingConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/RingConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a52a98969f4fae44ba19533cb1ae552e
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/RodConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/RodConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class RodConfig
|
||||
{
|
||||
private static ConfigContext<RodConfig> _context;
|
||||
|
||||
private static ConfigContext<RodConfig> Context => _context ??= Configs.Table<RodConfig>();
|
||||
|
||||
public static RodConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static RodConfig Get(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static RodConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static RodConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static RodConfig Fist(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static RodConfig Last(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<RodConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<RodConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<RodConfig> GetList(Predicate<RodConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/RodConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/RodConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81f057dddf36a734ead19cd98e19a2e0
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/UnitConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/UnitConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class UnitConfig
|
||||
{
|
||||
private static ConfigContext<UnitConfig> _context;
|
||||
|
||||
private static ConfigContext<UnitConfig> Context => _context ??= Configs.Table<UnitConfig>();
|
||||
|
||||
public static UnitConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static UnitConfig Get(Predicate<UnitConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static UnitConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static UnitConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static UnitConfig Fist(Predicate<UnitConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static UnitConfig Last(Predicate<UnitConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<UnitConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<UnitConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<UnitConfig> GetList(Predicate<UnitConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Configs~/Gen/Warps/UnitConfigWarp.cs.meta
Normal file
2
Assets/Scripts/Configs~/Gen/Warps/UnitConfigWarp.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69acf2fddccdd7b4fae3ad883cbc50ec
|
||||
65
Assets/Scripts/Configs~/Gen/Warps/WeightConfigWarp.cs
Normal file
65
Assets/Scripts/Configs~/Gen/Warps/WeightConfigWarp.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[Serializable]
|
||||
public partial class WeightConfig
|
||||
{
|
||||
private static ConfigContext<WeightConfig> _context;
|
||||
|
||||
private static ConfigContext<WeightConfig> Context => _context ??= Configs.Table<WeightConfig>();
|
||||
|
||||
public static WeightConfig Get(int key)
|
||||
{
|
||||
return Context.Get(key);
|
||||
}
|
||||
|
||||
public static WeightConfig Get(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.Get(match);
|
||||
}
|
||||
|
||||
public static WeightConfig Fist()
|
||||
{
|
||||
return Context.Fist();
|
||||
}
|
||||
|
||||
public static WeightConfig Last()
|
||||
{
|
||||
return Context.Last();
|
||||
}
|
||||
|
||||
public static WeightConfig Fist(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.Fist(match);
|
||||
}
|
||||
|
||||
public static WeightConfig Last(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.Last(match);
|
||||
}
|
||||
|
||||
public static int Count()
|
||||
{
|
||||
return Context.Count();
|
||||
}
|
||||
|
||||
public static int Count(Func<WeightConfig, bool> predicate)
|
||||
{
|
||||
return Context.Count(predicate);
|
||||
}
|
||||
|
||||
|
||||
public static List<WeightConfig> GetList()
|
||||
{
|
||||
return Context.GetList();
|
||||
}
|
||||
|
||||
public static List<WeightConfig> GetList(Predicate<WeightConfig> match)
|
||||
{
|
||||
return Context.GetList(match);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43244884876723947bd6574d57b2349c
|
||||
Reference in New Issue
Block a user