This commit is contained in:
huangjun
2026-08-30 22:25:23 +08:00
parent 92bf3e9097
commit 93a10a89c5
180 changed files with 15257 additions and 11604 deletions
@@ -17,12 +17,12 @@ namespace SepCore.Definition
/// </summary>
public partial class TbUIFormConfig
{
private readonly System.Collections.Generic.Dictionary<int, UIFormConfig> _dataMap;
private readonly System.Collections.Generic.Dictionary<UIFormType, UIFormConfig> _dataMap;
private readonly System.Collections.Generic.List<UIFormConfig> _dataList;
public TbUIFormConfig(ByteBuf _buf)
{
_dataMap = new System.Collections.Generic.Dictionary<int, UIFormConfig>();
_dataMap = new System.Collections.Generic.Dictionary<UIFormType, UIFormConfig>();
_dataList = new System.Collections.Generic.List<UIFormConfig>();
for(int n = _buf.ReadSize() ; n > 0 ; --n)
@@ -34,12 +34,12 @@ public partial class TbUIFormConfig
}
}
public System.Collections.Generic.Dictionary<int, UIFormConfig> DataMap => _dataMap;
public System.Collections.Generic.Dictionary<UIFormType, UIFormConfig> DataMap => _dataMap;
public System.Collections.Generic.List<UIFormConfig> DataList => _dataList;
public UIFormConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
public UIFormConfig Get(int key) => _dataMap[key];
public UIFormConfig this[int key] => _dataMap[key];
public UIFormConfig GetOrDefault(UIFormType key) => _dataMap.TryGetValue(key, out var v) ? v : null;
public UIFormConfig Get(UIFormType key) => _dataMap[key];
public UIFormConfig this[UIFormType key] => _dataMap[key];
public void ResolveRef(Tables tables)
{