diff --git a/Config/MiniTemplate/Datas/#demo.item.xlsx b/Config/MiniTemplate/Datas/#demo.item.xlsx deleted file mode 100644 index 974ed8b..0000000 Binary files a/Config/MiniTemplate/Datas/#demo.item.xlsx and /dev/null differ diff --git a/Config/MiniTemplate/output/Gen/Tables.cs b/Config/MiniTemplate/output/Gen/Tables.cs index b840a9b..6707ecf 100644 --- a/Config/MiniTemplate/output/Gen/Tables.cs +++ b/Config/MiniTemplate/output/Gen/Tables.cs @@ -13,19 +13,16 @@ namespace cfg { public partial class Tables { - public demo.Tbitem Tbitem {get; } public TbLanguage TbLanguage {get; } public Tables(System.Func loader) { - Tbitem = new demo.Tbitem(loader("demo_tbitem")); TbLanguage = new TbLanguage(loader("tblanguage")); ResolveRef(); } private void ResolveRef() { - Tbitem.ResolveRef(this); TbLanguage.ResolveRef(this); } } diff --git a/Config/MiniTemplate/output/Gen/demo/Tbitem.cs b/Config/MiniTemplate/output/Gen/demo/Tbitem.cs deleted file mode 100644 index ac2b195..0000000 --- a/Config/MiniTemplate/output/Gen/demo/Tbitem.cs +++ /dev/null @@ -1,52 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using Luban; - - -namespace cfg.demo -{ -public partial class Tbitem -{ - private readonly System.Collections.Generic.Dictionary _dataMap; - private readonly System.Collections.Generic.List _dataList; - - public Tbitem(ByteBuf _buf) - { - _dataMap = new System.Collections.Generic.Dictionary(); - _dataList = new System.Collections.Generic.List(); - - for(int n = _buf.ReadSize() ; n > 0 ; --n) - { - demo.item _v; - _v = global::cfg.demo.item.Deserializeitem(_buf); - _dataList.Add(_v); - _dataMap.Add(_v.Id, _v); - } - } - - public System.Collections.Generic.Dictionary DataMap => _dataMap; - public System.Collections.Generic.List DataList => _dataList; - - public demo.item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; - public demo.item Get(int key) => _dataMap[key]; - public demo.item this[int key] => _dataMap[key]; - - public void ResolveRef(Tables tables) - { - foreach(var _v in _dataList) - { - _v.ResolveRef(tables); - } - } - -} - -} - diff --git a/Config/MiniTemplate/output/Gen/demo/item.cs b/Config/MiniTemplate/output/Gen/demo/item.cs deleted file mode 100644 index cd7ec13..0000000 --- a/Config/MiniTemplate/output/Gen/demo/item.cs +++ /dev/null @@ -1,65 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using Luban; - - -namespace cfg.demo -{ -public sealed partial class item : Luban.BeanBase -{ - public item(ByteBuf _buf) - { - Id = _buf.ReadInt(); - Name = _buf.ReadString(); - Desc = _buf.ReadString(); - Count = _buf.ReadInt(); - } - - public static item Deserializeitem(ByteBuf _buf) - { - return new demo.item(_buf); - } - - /// - /// id - /// - public readonly int Id; - /// - /// 名称 - /// - public readonly string Name; - /// - /// 描述 - /// - public readonly string Desc; - /// - /// 个数 - /// - public readonly int Count; - - public const int __ID__ = 750578750; - public override int GetTypeId() => __ID__; - - public void ResolveRef(Tables tables) - { - } - - public override string ToString() - { - return "{ " - + "id:" + Id + "," - + "name:" + Name + "," - + "desc:" + Desc + "," - + "count:" + Count + "," - + "}"; - } -} -} - diff --git a/Config/MiniTemplate/output/bytes/demo_tbitem.bytes b/Config/MiniTemplate/output/bytes/demo_tbitem.bytes deleted file mode 100644 index 6db22b4..0000000 --- a/Config/MiniTemplate/output/bytes/demo_tbitem.bytes +++ /dev/null @@ -1,2 +0,0 @@ -道具1描述1 -道具2描述2d \ No newline at end of file diff --git a/UnityGame/Assets/AssetBundle/Config/demo_tbitem.bytes b/UnityGame/Assets/AssetBundle/Config/demo_tbitem.bytes deleted file mode 100644 index 6db22b4..0000000 --- a/UnityGame/Assets/AssetBundle/Config/demo_tbitem.bytes +++ /dev/null @@ -1,2 +0,0 @@ -道具1描述1 -道具2描述2d \ No newline at end of file diff --git a/UnityGame/Assets/AssetBundle/Config/demo_tbitem.bytes.meta b/UnityGame/Assets/AssetBundle/Config/demo_tbitem.bytes.meta deleted file mode 100644 index d689ce7..0000000 --- a/UnityGame/Assets/AssetBundle/Config/demo_tbitem.bytes.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7bff501078c798e41b3b26d474f93afe -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityGame/Assets/Scripts/GameLogic/Export/Config/Tables.cs b/UnityGame/Assets/Scripts/GameLogic/Export/Config/Tables.cs index b840a9b..6707ecf 100644 --- a/UnityGame/Assets/Scripts/GameLogic/Export/Config/Tables.cs +++ b/UnityGame/Assets/Scripts/GameLogic/Export/Config/Tables.cs @@ -13,19 +13,16 @@ namespace cfg { public partial class Tables { - public demo.Tbitem Tbitem {get; } public TbLanguage TbLanguage {get; } public Tables(System.Func loader) { - Tbitem = new demo.Tbitem(loader("demo_tbitem")); TbLanguage = new TbLanguage(loader("tblanguage")); ResolveRef(); } private void ResolveRef() { - Tbitem.ResolveRef(this); TbLanguage.ResolveRef(this); } } diff --git a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo.meta b/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo.meta deleted file mode 100644 index 25d8e04..0000000 --- a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4606e615a92487b4a8278a39cd4e8050 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/Tbitem.cs b/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/Tbitem.cs deleted file mode 100644 index ac2b195..0000000 --- a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/Tbitem.cs +++ /dev/null @@ -1,52 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using Luban; - - -namespace cfg.demo -{ -public partial class Tbitem -{ - private readonly System.Collections.Generic.Dictionary _dataMap; - private readonly System.Collections.Generic.List _dataList; - - public Tbitem(ByteBuf _buf) - { - _dataMap = new System.Collections.Generic.Dictionary(); - _dataList = new System.Collections.Generic.List(); - - for(int n = _buf.ReadSize() ; n > 0 ; --n) - { - demo.item _v; - _v = global::cfg.demo.item.Deserializeitem(_buf); - _dataList.Add(_v); - _dataMap.Add(_v.Id, _v); - } - } - - public System.Collections.Generic.Dictionary DataMap => _dataMap; - public System.Collections.Generic.List DataList => _dataList; - - public demo.item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; - public demo.item Get(int key) => _dataMap[key]; - public demo.item this[int key] => _dataMap[key]; - - public void ResolveRef(Tables tables) - { - foreach(var _v in _dataList) - { - _v.ResolveRef(tables); - } - } - -} - -} - diff --git a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/Tbitem.cs.meta b/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/Tbitem.cs.meta deleted file mode 100644 index 1922c9f..0000000 --- a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/Tbitem.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4efa3e31c10cd944985ab8bda2628e1a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/item.cs b/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/item.cs deleted file mode 100644 index cd7ec13..0000000 --- a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/item.cs +++ /dev/null @@ -1,65 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using Luban; - - -namespace cfg.demo -{ -public sealed partial class item : Luban.BeanBase -{ - public item(ByteBuf _buf) - { - Id = _buf.ReadInt(); - Name = _buf.ReadString(); - Desc = _buf.ReadString(); - Count = _buf.ReadInt(); - } - - public static item Deserializeitem(ByteBuf _buf) - { - return new demo.item(_buf); - } - - /// - /// id - /// - public readonly int Id; - /// - /// 名称 - /// - public readonly string Name; - /// - /// 描述 - /// - public readonly string Desc; - /// - /// 个数 - /// - public readonly int Count; - - public const int __ID__ = 750578750; - public override int GetTypeId() => __ID__; - - public void ResolveRef(Tables tables) - { - } - - public override string ToString() - { - return "{ " - + "id:" + Id + "," - + "name:" + Name + "," - + "desc:" + Desc + "," - + "count:" + Count + "," - + "}"; - } -} -} - diff --git a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/item.cs.meta b/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/item.cs.meta deleted file mode 100644 index dfe9f7e..0000000 --- a/UnityGame/Assets/Scripts/GameLogic/Export/Config/demo/item.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a7df9262867985e4cb8dd577a4177710 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: