From 8f6969c09f4972a9aee033e4404c3692a7f85a89 Mon Sep 17 00:00:00 2001 From: oldpeper <96619050+oldpeper@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A1=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- box1/Assets/Resources/chapter.json | 28 + box1/Assets/Resources/chapter.json.meta | 7 + box1/Assets/Resources/eventgroup.json | 48 + box1/Assets/Resources/eventgroup.json.meta | 7 + box1/Assets/Resources/eventtype.json | 52 + box1/Assets/Resources/eventtype.json.meta | 7 + box1/Assets/Resources/level.json | 64 ++ box1/Assets/Resources/level.json.meta | 7 + box1/Assets/Resources/task.json | 44 + box1/Assets/Resources/task.json.meta | 7 + box1/Assets/Scenes/SampleScene.unity | 234 ++++- box1/Assets/Script/DataManager.cs | 18 + box1/Assets/Script/DataManager.cs.meta | 11 + box1/Assets/Script/Excel.meta | 8 + box1/Assets/Script/Excel/BChapter.cs | 73 ++ box1/Assets/Script/Excel/BChapter.cs.meta | 11 + box1/Assets/Script/Excel/BEventgroup.cs | 55 + box1/Assets/Script/Excel/BEventgroup.cs.meta | 11 + box1/Assets/Script/Excel/BEventtype.cs | 91 ++ box1/Assets/Script/Excel/BEventtype.cs.meta | 11 + box1/Assets/Script/Excel/BLevel.cs | 127 +++ box1/Assets/Script/Excel/BLevel.cs.meta | 11 + box1/Assets/Script/Excel/BTask.cs | 73 ++ box1/Assets/Script/Excel/BTask.cs.meta | 11 + box1/Assets/Script/Excel/Box.meta | 8 + box1/Assets/Script/Excel/Chapter.cs | 53 + box1/Assets/Script/Excel/Chapter.cs.meta | 11 + box1/Assets/Script/Excel/Eventgroup.cs | 53 + box1/Assets/Script/Excel/Eventgroup.cs.meta | 11 + box1/Assets/Script/Excel/Eventtype.cs | 53 + box1/Assets/Script/Excel/Eventtype.cs.meta | 11 + box1/Assets/Script/Excel/Level.cs | 53 + box1/Assets/Script/Excel/Level.cs.meta | 11 + box1/Assets/Script/Excel/Tables.cs | 43 + box1/Assets/Script/Excel/Tables.cs.meta | 11 + box1/Assets/Script/Excel/Task.cs | 53 + box1/Assets/Script/Excel/Task.cs.meta | 11 + box1/Assets/Script/Excel/item.meta | 8 + box1/Assets/Script/Excel/item/EQuality.cs | 35 + .../Assets/Script/Excel/item/EQuality.cs.meta | 11 + box1/Assets/Script/Excel/item/ItemExchange.cs | 55 + .../Script/Excel/item/ItemExchange.cs.meta | 11 + box1/Assets/Script/Excel/test.meta | 8 + box1/Assets/Script/Excel/test/AccessFlag.cs | 28 + .../Script/Excel/test/AccessFlag.cs.meta | 11 + box1/Assets/Script/Excel/test/Circle.cs | 53 + box1/Assets/Script/Excel/test/Circle.cs.meta | 11 + box1/Assets/Script/Excel/test/Rectangle.cs | 59 ++ .../Script/Excel/test/Rectangle.cs.meta | 11 + box1/Assets/Script/Excel/test/Shape.cs | 46 + box1/Assets/Script/Excel/test/Shape.cs.meta | 11 + .../Script/Excel/test/TestExcelBean1.cs | 70 ++ .../Script/Excel/test/TestExcelBean1.cs.meta | 11 + .../Script/Excel/test/TestExcelBean2.cs | 64 ++ .../Script/Excel/test/TestExcelBean2.cs.meta | 11 + box1/Assets/Script/Excel/vector2.cs | 47 + box1/Assets/Script/Excel/vector2.cs.meta | 11 + box1/Assets/Script/Excel/vector3.cs | 50 + box1/Assets/Script/Excel/vector3.cs.meta | 11 + box1/Assets/Script/Excel/vector4.cs | 53 + box1/Assets/Script/Excel/vector4.cs.meta | 11 + box1/Assets/Script/GameManager.cs | 20 +- box1/Assets/Script/Item/ItemObj.cs | 1 - box1/Assets/Script/ItemSystem.cs | 90 +- box1/Assets/Script/JsonTab.cs | 36 + box1/Assets/Script/JsonTab.cs.meta | 11 + box1/Assets/Script/Map/Grid.cs | 31 +- box1/Assets/Script/Map/MapManager.cs | 1 + box1/Assets/Script/TaskSystem.cs | 10 + box1/Assets/Script/TaskSystem.cs.meta | 11 + box1/Luban/CommandLine.dll | Bin 0 -> 225280 bytes box1/Luban/ExcelDataReader.dll | Bin 0 -> 161280 bytes box1/Luban/Google.Protobuf.dll | Bin 0 -> 461088 bytes box1/Luban/Luban.Bson.deps.json | 104 ++ box1/Luban/Luban.Bson.dll | Bin 0 -> 7680 bytes box1/Luban/Luban.CSharp.deps.json | 58 ++ box1/Luban/Luban.CSharp.dll | Bin 0 -> 56320 bytes box1/Luban/Luban.Core.deps.json | 57 ++ box1/Luban/Luban.Core.dll | Bin 0 -> 239616 bytes box1/Luban/Luban.Cpp.deps.json | 70 ++ box1/Luban/Luban.Cpp.dll | Bin 0 -> 25088 bytes box1/Luban/Luban.DataLoader.Builtin.deps.json | 544 ++++++++++ box1/Luban/Luban.DataLoader.Builtin.dll | Bin 0 -> 74240 bytes box1/Luban/Luban.DataTarget.Builtin.deps.json | 558 ++++++++++ box1/Luban/Luban.DataTarget.Builtin.dll | Bin 0 -> 25600 bytes .../Luban.DataValidator.Builtin.deps.json | 70 ++ box1/Luban/Luban.DataValidator.Builtin.dll | Bin 0 -> 26112 bytes box1/Luban/Luban.FlatBuffers.deps.json | 572 +++++++++++ box1/Luban/Luban.FlatBuffers.dll | Bin 0 -> 12800 bytes box1/Luban/Luban.Gdscript.deps.json | 572 +++++++++++ box1/Luban/Luban.Gdscript.dll | Bin 0 -> 10752 bytes box1/Luban/Luban.Golang.deps.json | 70 ++ box1/Luban/Luban.Golang.dll | Bin 0 -> 24576 bytes box1/Luban/Luban.Java.deps.json | 70 ++ box1/Luban/Luban.Java.dll | Bin 0 -> 19968 bytes box1/Luban/Luban.L10N.deps.json | 558 ++++++++++ box1/Luban/Luban.L10N.dll | Bin 0 -> 12800 bytes box1/Luban/Luban.Lua.deps.json | 70 ++ box1/Luban/Luban.Lua.dll | Bin 0 -> 14848 bytes box1/Luban/Luban.MsgPack.deps.json | 141 +++ box1/Luban/Luban.MsgPack.dll | Bin 0 -> 8704 bytes box1/Luban/Luban.PHP.deps.json | 572 +++++++++++ box1/Luban/Luban.PHP.dll | Bin 0 -> 11776 bytes box1/Luban/Luban.Protobuf.deps.json | 588 +++++++++++ box1/Luban/Luban.Protobuf.dll | Bin 0 -> 20992 bytes box1/Luban/Luban.Python.deps.json | 572 +++++++++++ box1/Luban/Luban.Python.dll | Bin 0 -> 13312 bytes box1/Luban/Luban.Rust.deps.json | 70 ++ box1/Luban/Luban.Rust.dll | Bin 0 -> 25088 bytes box1/Luban/Luban.Schema.Builtin.deps.json | 559 ++++++++++ box1/Luban/Luban.Schema.Builtin.dll | Bin 0 -> 31232 bytes .../Luban.Schema.Builtin.runtimeconfig.json | 14 + box1/Luban/Luban.Typescript.deps.json | 602 +++++++++++ box1/Luban/Luban.Typescript.dll | Bin 0 -> 18432 bytes box1/Luban/Luban.deps.json | 962 ++++++++++++++++++ box1/Luban/Luban.dll | Bin 0 -> 18432 bytes box1/Luban/Luban.exe | Bin 0 -> 142848 bytes box1/Luban/Luban.runtimeconfig.json | 13 + box1/Luban/MessagePack.Annotations.dll | Bin 0 -> 11776 bytes box1/Luban/MessagePack.dll | Bin 0 -> 329728 bytes box1/Luban/Microsoft.NET.StringTools.dll | Bin 0 -> 30352 bytes box1/Luban/NLog.dll | Bin 0 -> 924672 bytes box1/Luban/Neo.Lua.dll | Bin 0 -> 321024 bytes box1/Luban/Newtonsoft.Json.Bson.dll | Bin 0 -> 97720 bytes box1/Luban/Newtonsoft.Json.dll | Bin 0 -> 669096 bytes box1/Luban/Scriban.dll | Bin 0 -> 439296 bytes box1/Luban/Templates/common/cpp/enum.sbn | 23 + box1/Luban/Templates/common/cs/enum.sbn | 28 + box1/Luban/Templates/common/go/enum.sbn | 19 + box1/Luban/Templates/common/java/enum.sbn | 19 + box1/Luban/Templates/common/php/enum.sbn | 2 + .../Templates/common/rs/macros/Cargo.toml.sbn | 14 + .../Templates/common/rs/macros/src/lib.rs.sbn | 65 ++ box1/Luban/Templates/common/ts/enum.sbn | 2 + box1/Luban/Templates/cpp-rawptr-bin/bean.sbn | 32 + .../Templates/cpp-rawptr-bin/schema_cpp.sbn | 45 + .../Templates/cpp-rawptr-bin/schema_h.sbn | 21 + box1/Luban/Templates/cpp-rawptr-bin/table.sbn | 134 +++ .../Luban/Templates/cpp-rawptr-bin/tables.sbn | 23 + .../Templates/cpp-sharedptr-bin/bean.sbn | 32 + .../cpp-sharedptr-bin/schema_cpp.sbn | 50 + .../Templates/cpp-sharedptr-bin/schema_h.sbn | 21 + .../Templates/cpp-sharedptr-bin/table.sbn | 140 +++ .../Templates/cpp-sharedptr-bin/tables.sbn | 23 + box1/Luban/Templates/cs-bin/bean.sbn | 151 +++ box1/Luban/Templates/cs-bin/table.sbn | 163 +++ box1/Luban/Templates/cs-bin/tables.sbn | 31 + box1/Luban/Templates/cs-dotnet-json/bean.sbn | 152 +++ box1/Luban/Templates/cs-dotnet-json/table.sbn | 162 +++ .../Luban/Templates/cs-dotnet-json/tables.sbn | 32 + box1/Luban/Templates/cs-editor-json/bean.sbn | 102 ++ box1/Luban/Templates/cs-editor-json/enum.sbn | 59 ++ .../Templates/cs-newtonsoft-json/bean.sbn | 158 +++ .../Templates/cs-newtonsoft-json/table.sbn | 169 +++ .../Templates/cs-newtonsoft-json/tables.sbn | 32 + box1/Luban/Templates/cs-simple-json/bean.sbn | 152 +++ box1/Luban/Templates/cs-simple-json/table.sbn | 162 +++ .../Luban/Templates/cs-simple-json/tables.sbn | 32 + box1/Luban/Templates/cs_pb/tables.sbn | 32 + box1/Luban/Templates/flatbuffers/schema.sbn | 51 + box1/Luban/Templates/gdscript-json/schema.sbn | 175 ++++ box1/Luban/Templates/go-bin/bean.sbn | 54 + box1/Luban/Templates/go-bin/table.sbn | 116 +++ box1/Luban/Templates/go-bin/tables.sbn | 33 + box1/Luban/Templates/go-json/bean.sbn | 50 + box1/Luban/Templates/go-json/table.sbn | 103 ++ box1/Luban/Templates/go-json/tables.sbn | 28 + box1/Luban/Templates/java-bin/bean.sbn | 65 ++ box1/Luban/Templates/java-bin/table.sbn | 81 ++ box1/Luban/Templates/java-bin/tables.sbn | 37 + box1/Luban/Templates/java-json/bean.sbn | 67 ++ box1/Luban/Templates/java-json/table.sbn | 82 ++ box1/Luban/Templates/java-json/tables.sbn | 39 + box1/Luban/Templates/lua-bin/schema.sbn | 158 +++ box1/Luban/Templates/lua-lua/schema.sbn | 42 + box1/Luban/Templates/pb/schema.sbn | 41 + box1/Luban/Templates/php-json/schema.sbn | 155 +++ box1/Luban/Templates/python-json/schema.sbn | 156 +++ box1/Luban/Templates/rust-bin/lib.sbn | 51 + box1/Luban/Templates/rust-bin/mod.sbn | 280 +++++ box1/Luban/Templates/rust-bin/toml.sbn | 11 + box1/Luban/Templates/rust-json/lib.sbn | 51 + box1/Luban/Templates/rust-json/mod.sbn | 287 ++++++ box1/Luban/Templates/rust-json/toml.sbn | 12 + .../Luban/Templates/typescript-bin/schema.sbn | 234 +++++ .../Templates/typescript-json/schema.sbn | 226 ++++ .../Templates/typescript-protobuf/schema.sbn | 31 + box1/Luban/Ude.NetStandard.dll | Bin 0 -> 164864 bytes box1/Luban/YamlDotNet.NetCore.dll | Bin 0 -> 172032 bytes box1/Luban/de/Neo.Lua.resources.dll | Bin 0 -> 10752 bytes box1/Luban/nlog.xml | 25 + box1/MiniTemplate/Datas/__beans__.xlsx | Bin 0 -> 10282 bytes box1/MiniTemplate/Datas/__enums__.xlsx | Bin 0 -> 9606 bytes box1/MiniTemplate/Datas/__tables__.xlsx | Bin 0 -> 9775 bytes box1/MiniTemplate/Datas/item.xlsx | Bin 0 -> 11382 bytes box1/MiniTemplate/Datas/事件随机表.xlsx | Bin 0 -> 10527 bytes box1/MiniTemplate/Datas/任务表.xlsx | Bin 0 -> 12655 bytes box1/MiniTemplate/Datas/关卡事件.xlsx | Bin 0 -> 12883 bytes box1/MiniTemplate/Datas/关卡表.xlsx | Bin 0 -> 11203 bytes box1/MiniTemplate/Datas/章节表.xlsx | Bin 0 -> 10752 bytes box1/MiniTemplate/Defines/builtin.xml | 17 + box1/MiniTemplate/gen.bat | 11 + box1/MiniTemplate/gen.sh | 11 + box1/MiniTemplate/luban.conf | 26 + box1/MiniTemplate/output/item_tbitem.json | 274 +++++ box1/gen.bat | 13 + 206 files changed, 15136 insertions(+), 11 deletions(-) create mode 100644 box1/Assets/Resources/chapter.json create mode 100644 box1/Assets/Resources/chapter.json.meta create mode 100644 box1/Assets/Resources/eventgroup.json create mode 100644 box1/Assets/Resources/eventgroup.json.meta create mode 100644 box1/Assets/Resources/eventtype.json create mode 100644 box1/Assets/Resources/eventtype.json.meta create mode 100644 box1/Assets/Resources/level.json create mode 100644 box1/Assets/Resources/level.json.meta create mode 100644 box1/Assets/Resources/task.json create mode 100644 box1/Assets/Resources/task.json.meta create mode 100644 box1/Assets/Script/DataManager.cs create mode 100644 box1/Assets/Script/DataManager.cs.meta create mode 100644 box1/Assets/Script/Excel.meta create mode 100644 box1/Assets/Script/Excel/BChapter.cs create mode 100644 box1/Assets/Script/Excel/BChapter.cs.meta create mode 100644 box1/Assets/Script/Excel/BEventgroup.cs create mode 100644 box1/Assets/Script/Excel/BEventgroup.cs.meta create mode 100644 box1/Assets/Script/Excel/BEventtype.cs create mode 100644 box1/Assets/Script/Excel/BEventtype.cs.meta create mode 100644 box1/Assets/Script/Excel/BLevel.cs create mode 100644 box1/Assets/Script/Excel/BLevel.cs.meta create mode 100644 box1/Assets/Script/Excel/BTask.cs create mode 100644 box1/Assets/Script/Excel/BTask.cs.meta create mode 100644 box1/Assets/Script/Excel/Box.meta create mode 100644 box1/Assets/Script/Excel/Chapter.cs create mode 100644 box1/Assets/Script/Excel/Chapter.cs.meta create mode 100644 box1/Assets/Script/Excel/Eventgroup.cs create mode 100644 box1/Assets/Script/Excel/Eventgroup.cs.meta create mode 100644 box1/Assets/Script/Excel/Eventtype.cs create mode 100644 box1/Assets/Script/Excel/Eventtype.cs.meta create mode 100644 box1/Assets/Script/Excel/Level.cs create mode 100644 box1/Assets/Script/Excel/Level.cs.meta create mode 100644 box1/Assets/Script/Excel/Tables.cs create mode 100644 box1/Assets/Script/Excel/Tables.cs.meta create mode 100644 box1/Assets/Script/Excel/Task.cs create mode 100644 box1/Assets/Script/Excel/Task.cs.meta create mode 100644 box1/Assets/Script/Excel/item.meta create mode 100644 box1/Assets/Script/Excel/item/EQuality.cs create mode 100644 box1/Assets/Script/Excel/item/EQuality.cs.meta create mode 100644 box1/Assets/Script/Excel/item/ItemExchange.cs create mode 100644 box1/Assets/Script/Excel/item/ItemExchange.cs.meta create mode 100644 box1/Assets/Script/Excel/test.meta create mode 100644 box1/Assets/Script/Excel/test/AccessFlag.cs create mode 100644 box1/Assets/Script/Excel/test/AccessFlag.cs.meta create mode 100644 box1/Assets/Script/Excel/test/Circle.cs create mode 100644 box1/Assets/Script/Excel/test/Circle.cs.meta create mode 100644 box1/Assets/Script/Excel/test/Rectangle.cs create mode 100644 box1/Assets/Script/Excel/test/Rectangle.cs.meta create mode 100644 box1/Assets/Script/Excel/test/Shape.cs create mode 100644 box1/Assets/Script/Excel/test/Shape.cs.meta create mode 100644 box1/Assets/Script/Excel/test/TestExcelBean1.cs create mode 100644 box1/Assets/Script/Excel/test/TestExcelBean1.cs.meta create mode 100644 box1/Assets/Script/Excel/test/TestExcelBean2.cs create mode 100644 box1/Assets/Script/Excel/test/TestExcelBean2.cs.meta create mode 100644 box1/Assets/Script/Excel/vector2.cs create mode 100644 box1/Assets/Script/Excel/vector2.cs.meta create mode 100644 box1/Assets/Script/Excel/vector3.cs create mode 100644 box1/Assets/Script/Excel/vector3.cs.meta create mode 100644 box1/Assets/Script/Excel/vector4.cs create mode 100644 box1/Assets/Script/Excel/vector4.cs.meta create mode 100644 box1/Assets/Script/JsonTab.cs create mode 100644 box1/Assets/Script/JsonTab.cs.meta create mode 100644 box1/Assets/Script/TaskSystem.cs create mode 100644 box1/Assets/Script/TaskSystem.cs.meta create mode 100644 box1/Luban/CommandLine.dll create mode 100644 box1/Luban/ExcelDataReader.dll create mode 100644 box1/Luban/Google.Protobuf.dll create mode 100644 box1/Luban/Luban.Bson.deps.json create mode 100644 box1/Luban/Luban.Bson.dll create mode 100644 box1/Luban/Luban.CSharp.deps.json create mode 100644 box1/Luban/Luban.CSharp.dll create mode 100644 box1/Luban/Luban.Core.deps.json create mode 100644 box1/Luban/Luban.Core.dll create mode 100644 box1/Luban/Luban.Cpp.deps.json create mode 100644 box1/Luban/Luban.Cpp.dll create mode 100644 box1/Luban/Luban.DataLoader.Builtin.deps.json create mode 100644 box1/Luban/Luban.DataLoader.Builtin.dll create mode 100644 box1/Luban/Luban.DataTarget.Builtin.deps.json create mode 100644 box1/Luban/Luban.DataTarget.Builtin.dll create mode 100644 box1/Luban/Luban.DataValidator.Builtin.deps.json create mode 100644 box1/Luban/Luban.DataValidator.Builtin.dll create mode 100644 box1/Luban/Luban.FlatBuffers.deps.json create mode 100644 box1/Luban/Luban.FlatBuffers.dll create mode 100644 box1/Luban/Luban.Gdscript.deps.json create mode 100644 box1/Luban/Luban.Gdscript.dll create mode 100644 box1/Luban/Luban.Golang.deps.json create mode 100644 box1/Luban/Luban.Golang.dll create mode 100644 box1/Luban/Luban.Java.deps.json create mode 100644 box1/Luban/Luban.Java.dll create mode 100644 box1/Luban/Luban.L10N.deps.json create mode 100644 box1/Luban/Luban.L10N.dll create mode 100644 box1/Luban/Luban.Lua.deps.json create mode 100644 box1/Luban/Luban.Lua.dll create mode 100644 box1/Luban/Luban.MsgPack.deps.json create mode 100644 box1/Luban/Luban.MsgPack.dll create mode 100644 box1/Luban/Luban.PHP.deps.json create mode 100644 box1/Luban/Luban.PHP.dll create mode 100644 box1/Luban/Luban.Protobuf.deps.json create mode 100644 box1/Luban/Luban.Protobuf.dll create mode 100644 box1/Luban/Luban.Python.deps.json create mode 100644 box1/Luban/Luban.Python.dll create mode 100644 box1/Luban/Luban.Rust.deps.json create mode 100644 box1/Luban/Luban.Rust.dll create mode 100644 box1/Luban/Luban.Schema.Builtin.deps.json create mode 100644 box1/Luban/Luban.Schema.Builtin.dll create mode 100644 box1/Luban/Luban.Schema.Builtin.runtimeconfig.json create mode 100644 box1/Luban/Luban.Typescript.deps.json create mode 100644 box1/Luban/Luban.Typescript.dll create mode 100644 box1/Luban/Luban.deps.json create mode 100644 box1/Luban/Luban.dll create mode 100644 box1/Luban/Luban.exe create mode 100644 box1/Luban/Luban.runtimeconfig.json create mode 100644 box1/Luban/MessagePack.Annotations.dll create mode 100644 box1/Luban/MessagePack.dll create mode 100644 box1/Luban/Microsoft.NET.StringTools.dll create mode 100644 box1/Luban/NLog.dll create mode 100644 box1/Luban/Neo.Lua.dll create mode 100644 box1/Luban/Newtonsoft.Json.Bson.dll create mode 100644 box1/Luban/Newtonsoft.Json.dll create mode 100644 box1/Luban/Scriban.dll create mode 100644 box1/Luban/Templates/common/cpp/enum.sbn create mode 100644 box1/Luban/Templates/common/cs/enum.sbn create mode 100644 box1/Luban/Templates/common/go/enum.sbn create mode 100644 box1/Luban/Templates/common/java/enum.sbn create mode 100644 box1/Luban/Templates/common/php/enum.sbn create mode 100644 box1/Luban/Templates/common/rs/macros/Cargo.toml.sbn create mode 100644 box1/Luban/Templates/common/rs/macros/src/lib.rs.sbn create mode 100644 box1/Luban/Templates/common/ts/enum.sbn create mode 100644 box1/Luban/Templates/cpp-rawptr-bin/bean.sbn create mode 100644 box1/Luban/Templates/cpp-rawptr-bin/schema_cpp.sbn create mode 100644 box1/Luban/Templates/cpp-rawptr-bin/schema_h.sbn create mode 100644 box1/Luban/Templates/cpp-rawptr-bin/table.sbn create mode 100644 box1/Luban/Templates/cpp-rawptr-bin/tables.sbn create mode 100644 box1/Luban/Templates/cpp-sharedptr-bin/bean.sbn create mode 100644 box1/Luban/Templates/cpp-sharedptr-bin/schema_cpp.sbn create mode 100644 box1/Luban/Templates/cpp-sharedptr-bin/schema_h.sbn create mode 100644 box1/Luban/Templates/cpp-sharedptr-bin/table.sbn create mode 100644 box1/Luban/Templates/cpp-sharedptr-bin/tables.sbn create mode 100644 box1/Luban/Templates/cs-bin/bean.sbn create mode 100644 box1/Luban/Templates/cs-bin/table.sbn create mode 100644 box1/Luban/Templates/cs-bin/tables.sbn create mode 100644 box1/Luban/Templates/cs-dotnet-json/bean.sbn create mode 100644 box1/Luban/Templates/cs-dotnet-json/table.sbn create mode 100644 box1/Luban/Templates/cs-dotnet-json/tables.sbn create mode 100644 box1/Luban/Templates/cs-editor-json/bean.sbn create mode 100644 box1/Luban/Templates/cs-editor-json/enum.sbn create mode 100644 box1/Luban/Templates/cs-newtonsoft-json/bean.sbn create mode 100644 box1/Luban/Templates/cs-newtonsoft-json/table.sbn create mode 100644 box1/Luban/Templates/cs-newtonsoft-json/tables.sbn create mode 100644 box1/Luban/Templates/cs-simple-json/bean.sbn create mode 100644 box1/Luban/Templates/cs-simple-json/table.sbn create mode 100644 box1/Luban/Templates/cs-simple-json/tables.sbn create mode 100644 box1/Luban/Templates/cs_pb/tables.sbn create mode 100644 box1/Luban/Templates/flatbuffers/schema.sbn create mode 100644 box1/Luban/Templates/gdscript-json/schema.sbn create mode 100644 box1/Luban/Templates/go-bin/bean.sbn create mode 100644 box1/Luban/Templates/go-bin/table.sbn create mode 100644 box1/Luban/Templates/go-bin/tables.sbn create mode 100644 box1/Luban/Templates/go-json/bean.sbn create mode 100644 box1/Luban/Templates/go-json/table.sbn create mode 100644 box1/Luban/Templates/go-json/tables.sbn create mode 100644 box1/Luban/Templates/java-bin/bean.sbn create mode 100644 box1/Luban/Templates/java-bin/table.sbn create mode 100644 box1/Luban/Templates/java-bin/tables.sbn create mode 100644 box1/Luban/Templates/java-json/bean.sbn create mode 100644 box1/Luban/Templates/java-json/table.sbn create mode 100644 box1/Luban/Templates/java-json/tables.sbn create mode 100644 box1/Luban/Templates/lua-bin/schema.sbn create mode 100644 box1/Luban/Templates/lua-lua/schema.sbn create mode 100644 box1/Luban/Templates/pb/schema.sbn create mode 100644 box1/Luban/Templates/php-json/schema.sbn create mode 100644 box1/Luban/Templates/python-json/schema.sbn create mode 100644 box1/Luban/Templates/rust-bin/lib.sbn create mode 100644 box1/Luban/Templates/rust-bin/mod.sbn create mode 100644 box1/Luban/Templates/rust-bin/toml.sbn create mode 100644 box1/Luban/Templates/rust-json/lib.sbn create mode 100644 box1/Luban/Templates/rust-json/mod.sbn create mode 100644 box1/Luban/Templates/rust-json/toml.sbn create mode 100644 box1/Luban/Templates/typescript-bin/schema.sbn create mode 100644 box1/Luban/Templates/typescript-json/schema.sbn create mode 100644 box1/Luban/Templates/typescript-protobuf/schema.sbn create mode 100644 box1/Luban/Ude.NetStandard.dll create mode 100644 box1/Luban/YamlDotNet.NetCore.dll create mode 100644 box1/Luban/de/Neo.Lua.resources.dll create mode 100644 box1/Luban/nlog.xml create mode 100644 box1/MiniTemplate/Datas/__beans__.xlsx create mode 100644 box1/MiniTemplate/Datas/__enums__.xlsx create mode 100644 box1/MiniTemplate/Datas/__tables__.xlsx create mode 100644 box1/MiniTemplate/Datas/item.xlsx create mode 100644 box1/MiniTemplate/Datas/事件随机表.xlsx create mode 100644 box1/MiniTemplate/Datas/任务表.xlsx create mode 100644 box1/MiniTemplate/Datas/关卡事件.xlsx create mode 100644 box1/MiniTemplate/Datas/关卡表.xlsx create mode 100644 box1/MiniTemplate/Datas/章节表.xlsx create mode 100644 box1/MiniTemplate/Defines/builtin.xml create mode 100644 box1/MiniTemplate/gen.bat create mode 100644 box1/MiniTemplate/gen.sh create mode 100644 box1/MiniTemplate/luban.conf create mode 100644 box1/MiniTemplate/output/item_tbitem.json create mode 100644 box1/gen.bat diff --git a/box1/Assets/Resources/chapter.json b/box1/Assets/Resources/chapter.json new file mode 100644 index 00000000..48860819 --- /dev/null +++ b/box1/Assets/Resources/chapter.json @@ -0,0 +1,28 @@ +[ + { + "ID": 11001, + "Chaptericon": "", + "Chaptername": "杭州", + "Contain": [ + "110011", + "110012", + "110013", + "110014", + "110015" + ], + "Reward": 0 + }, + { + "ID": 11002, + "Chaptericon": "", + "Chaptername": "上海", + "Contain": [ + "110021", + "110022", + "110023", + "110024", + "110025" + ], + "Reward": 0 + } +] \ No newline at end of file diff --git a/box1/Assets/Resources/chapter.json.meta b/box1/Assets/Resources/chapter.json.meta new file mode 100644 index 00000000..7b1bfe43 --- /dev/null +++ b/box1/Assets/Resources/chapter.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0fde3fe8e961ab5439b7009b90f9bc4c +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Resources/eventgroup.json b/box1/Assets/Resources/eventgroup.json new file mode 100644 index 00000000..9e7d3df2 --- /dev/null +++ b/box1/Assets/Resources/eventgroup.json @@ -0,0 +1,48 @@ +[ + { + "ID": 1100111, + "Eventgroup": [ + "11001111", + "11001121", + "11001131", + "11001141", + "11001151" + ] + }, + { + "ID": 1100112, + "Eventgroup": [ + "11001121", + "11001131", + "11001141", + "11001151" + ] + }, + { + "ID": 1100113, + "Eventgroup": [ + "11001121", + "11001131", + "11001141", + "11001151" + ] + }, + { + "ID": 1100114, + "Eventgroup": [ + "11001121", + "11001131", + "11001141", + "11001151" + ] + }, + { + "ID": 1100115, + "Eventgroup": [ + "11001121", + "11001131", + "11001141", + "11001151" + ] + } +] \ No newline at end of file diff --git a/box1/Assets/Resources/eventgroup.json.meta b/box1/Assets/Resources/eventgroup.json.meta new file mode 100644 index 00000000..0e671763 --- /dev/null +++ b/box1/Assets/Resources/eventgroup.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0bdc9730ad3a1de44957047330ae93dc +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Resources/eventtype.json b/box1/Assets/Resources/eventtype.json new file mode 100644 index 00000000..310ca28c --- /dev/null +++ b/box1/Assets/Resources/eventtype.json @@ -0,0 +1,52 @@ +[ + { + "ID": 11001111, + "Eventtype": 9, + "Event1": 0, + "Event2": 0, + "Time": 0, + "Describe": "直接到达目标点", + "Weight": 100, + "Advertisement": 1 + }, + { + "ID": 11001121, + "Eventtype": 1, + "Event1": 100, + "Event2": 0, + "Time": 0, + "Describe": "移动速度增加X", + "Weight": 30, + "Advertisement": 0 + }, + { + "ID": 11001131, + "Eventtype": 1, + "Event1": 30, + "Event2": 0, + "Time": 10, + "Describe": "移动速度增加X,持续Z秒", + "Weight": 30, + "Advertisement": 0 + }, + { + "ID": 11001141, + "Eventtype": 2, + "Event1": 30, + "Event2": 0, + "Time": 0, + "Describe": "移动时间增加", + "Weight": 30, + "Advertisement": 0 + }, + { + "ID": 11001151, + "Eventtype": 4, + "Event1": 20, + "Event2": 40, + "Time": 0, + "Describe": "移动速度降低X%,移动时间增加Y", + "Weight": 30, + "Advertisement": 0 + } +] \ No newline at end of file diff --git a/box1/Assets/Resources/eventtype.json.meta b/box1/Assets/Resources/eventtype.json.meta new file mode 100644 index 00000000..9379653d --- /dev/null +++ b/box1/Assets/Resources/eventtype.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bbf2cf23c72b5c54dabb85789f5294d5 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Resources/level.json b/box1/Assets/Resources/level.json new file mode 100644 index 00000000..9b63e375 --- /dev/null +++ b/box1/Assets/Resources/level.json @@ -0,0 +1,64 @@ +[ + { + "ID": 110011, + "name": "西湖", + "Front": 0, + "Strength": 5, + "Timetype": 1, + "Countdown": 300, + "Box": 3, + "Maintasks": 211001, + "Additionaltasks": [ + "211002", + "211003" + ], + "Length": 1000, + "Target": 5000, + "Nodelocation": [ + "10", + "15", + "20", + "25", + "30" + ], + "Eventgroupid": [ + "1100111", + "1100112", + "1100113", + "1100114", + "1100115" + ], + "Rewards": 0 + }, + { + "ID": 110012, + "name": "横店", + "Front": 110011, + "Strength": 5, + "Timetype": 1, + "Countdown": 300, + "Box": 3, + "Maintasks": 211001, + "Additionaltasks": [ + "211002", + "211004" + ], + "Length": 1000, + "Target": 5000, + "Nodelocation": [ + "10", + "15", + "20", + "25", + "30" + ], + "Eventgroupid": [ + "1100111", + "1100112", + "1100113", + "1100114", + "1100115" + ], + "Rewards": 0 + } +] \ No newline at end of file diff --git a/box1/Assets/Resources/level.json.meta b/box1/Assets/Resources/level.json.meta new file mode 100644 index 00000000..da08bcd0 --- /dev/null +++ b/box1/Assets/Resources/level.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3d502d52863a7c64d87ce1d2f84e0ccb +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Resources/task.json b/box1/Assets/Resources/task.json new file mode 100644 index 00000000..55ad9ee1 --- /dev/null +++ b/box1/Assets/Resources/task.json @@ -0,0 +1,44 @@ +[ + { + "ID": 211001, + "Tasktype": 1, + "Targettype": 0, + "Targetid": 0, + "Targetnumber": 0 + }, + { + "ID": 211002, + "Tasktype": 2, + "Targettype": 0, + "Targetid": 0, + "Targetnumber": 0 + }, + { + "ID": 211003, + "Tasktype": 3, + "Targettype": 3, + "Targetid": 0, + "Targetnumber": 10000 + }, + { + "ID": 211004, + "Tasktype": 4, + "Targettype": 2, + "Targetid": 4, + "Targetnumber": 3 + }, + { + "ID": 211005, + "Tasktype": 5, + "Targettype": 1, + "Targetid": 60, + "Targetnumber": 0 + }, + { + "ID": 211006, + "Tasktype": 6, + "Targettype": 1, + "Targetid": 100, + "Targetnumber": 0 + } +] \ No newline at end of file diff --git a/box1/Assets/Resources/task.json.meta b/box1/Assets/Resources/task.json.meta new file mode 100644 index 00000000..b98140b7 --- /dev/null +++ b/box1/Assets/Resources/task.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8229fa1484030d44f9d375d324147a68 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Scenes/SampleScene.unity b/box1/Assets/Scenes/SampleScene.unity index d3cb75f1..8bc03d73 100644 --- a/box1/Assets/Scenes/SampleScene.unity +++ b/box1/Assets/Scenes/SampleScene.unity @@ -2509,6 +2509,81 @@ SpriteRenderer: m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 +--- !u!1 &137178344 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 137178345} + - component: {fileID: 137178347} + - component: {fileID: 137178346} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &137178345 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 137178344} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1731920564} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: 327.58563} + m_SizeDelta: {x: -272.042, y: 593.7075} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &137178346 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 137178344} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.9056604, g: 0.2691349, b: 0.2691349, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &137178347 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 137178344} + m_CullTransparentMesh: 1 --- !u!1 &156983834 GameObject: m_ObjectHideFlags: 0 @@ -5253,6 +5328,82 @@ Transform: m_Children: [] m_Father: {fileID: 775228670} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &290660812 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 290660813} + - component: {fileID: 290660815} + - component: {fileID: 290660814} + m_Layer: 5 + m_Name: TourPanel + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &290660813 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 290660812} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1731920564} + m_Father: {fileID: 1069201192} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &290660814 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 290660812} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0.392} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &290660815 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 290660812} + m_CullTransparentMesh: 1 --- !u!1 &291790439 GameObject: m_ObjectHideFlags: 0 @@ -19065,7 +19216,7 @@ MonoBehaviour: m_UiScaleMode: 0 m_ReferencePixelsPerUnit: 100 m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} + m_ReferenceResolution: {x: 1920, y: 1080} m_ScreenMatchMode: 0 m_MatchWidthOrHeight: 0 m_PhysicalUnit: 3 @@ -19112,6 +19263,7 @@ RectTransform: - {fileID: 1020065702} - {fileID: 1986121324} - {fileID: 1043391206} + - {fileID: 290660813} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -20362,8 +20514,8 @@ MonoBehaviour: m_Calls: [] m_text: "\u5269\u4F59" m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 05d165cb23f565545bd57f4f30048b92, type: 2} - m_sharedMaterial: {fileID: -324037929477615083, guid: 05d165cb23f565545bd57f4f30048b92, type: 2} + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -31350,6 +31502,82 @@ MonoBehaviour: _animationName: play_1 loop: 0 timeScale: 1 +--- !u!1 &1731920563 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1731920564} + - component: {fileID: 1731920566} + - component: {fileID: 1731920565} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1731920564 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1731920563} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 137178345} + m_Father: {fileID: 290660813} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1731920565 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1731920563} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1731920566 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1731920563} + m_CullTransparentMesh: 1 --- !u!1 &1739229108 GameObject: m_ObjectHideFlags: 0 diff --git a/box1/Assets/Script/DataManager.cs b/box1/Assets/Script/DataManager.cs new file mode 100644 index 00000000..b9d9e9e3 --- /dev/null +++ b/box1/Assets/Script/DataManager.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public static class DataManager +{ + public static int Level + { + get + { + return PlayerPrefs.GetInt("Level"); + } + set + { + PlayerPrefs.SetInt("Level",value); + } + } +} diff --git a/box1/Assets/Script/DataManager.cs.meta b/box1/Assets/Script/DataManager.cs.meta new file mode 100644 index 00000000..cecdd05a --- /dev/null +++ b/box1/Assets/Script/DataManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 62628f6fe37e3974a9e450184fea816c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel.meta b/box1/Assets/Script/Excel.meta new file mode 100644 index 00000000..fae952ef --- /dev/null +++ b/box1/Assets/Script/Excel.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 70cd83f8482a8c344991e70cf3cbe32d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/BChapter.cs b/box1/Assets/Script/Excel/BChapter.cs new file mode 100644 index 00000000..ca775bba --- /dev/null +++ b/box1/Assets/Script/Excel/BChapter.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public sealed partial class BChapter : Luban.BeanBase +{ + public BChapter(JSONNode _buf) + { + { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } + { if(!_buf["Chaptericon"].IsString) { throw new SerializationException(); } Chaptericon = _buf["Chaptericon"]; } + { if(!_buf["Chaptername"].IsString) { throw new SerializationException(); } Chaptername = _buf["Chaptername"]; } + { var __json0 = _buf["Contain"]; if(!__json0.IsArray) { throw new SerializationException(); } Contain = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Contain.Add(__v0); } } + { if(!_buf["Reward"].IsNumber) { throw new SerializationException(); } Reward = _buf["Reward"]; } + } + + public static BChapter DeserializeBChapter(JSONNode _buf) + { + return new BChapter(_buf); + } + + /// + /// #ID + /// + public readonly int ID; + /// + /// 章节图标 + /// + public readonly string Chaptericon; + /// + /// 章节名称 + /// + public readonly string Chaptername; + /// + /// 包含关卡ID + /// + public readonly System.Collections.Generic.List Contain; + /// + /// 关卡宝箱ID + /// + public readonly int Reward; + + public const int __ID__ = 1465034155; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "ID:" + ID + "," + + "Chaptericon:" + Chaptericon + "," + + "Chaptername:" + Chaptername + "," + + "Contain:" + Luban.StringUtil.CollectionToString(Contain) + "," + + "Reward:" + Reward + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/BChapter.cs.meta b/box1/Assets/Script/Excel/BChapter.cs.meta new file mode 100644 index 00000000..61e8f9d1 --- /dev/null +++ b/box1/Assets/Script/Excel/BChapter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6c4e6012579c9394ba2a75feeb4f1fee +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/BEventgroup.cs b/box1/Assets/Script/Excel/BEventgroup.cs new file mode 100644 index 00000000..c7057180 --- /dev/null +++ b/box1/Assets/Script/Excel/BEventgroup.cs @@ -0,0 +1,55 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public sealed partial class BEventgroup : Luban.BeanBase +{ + public BEventgroup(JSONNode _buf) + { + { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } + { var __json0 = _buf["Eventgroup"]; if(!__json0.IsArray) { throw new SerializationException(); } Eventgroup = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Eventgroup.Add(__v0); } } + } + + public static BEventgroup DeserializeBEventgroup(JSONNode _buf) + { + return new BEventgroup(_buf); + } + + /// + /// #ID + /// + public readonly int ID; + /// + /// 事件组 + /// + public readonly System.Collections.Generic.List Eventgroup; + + public const int __ID__ = 350488071; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "ID:" + ID + "," + + "Eventgroup:" + Luban.StringUtil.CollectionToString(Eventgroup) + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/BEventgroup.cs.meta b/box1/Assets/Script/Excel/BEventgroup.cs.meta new file mode 100644 index 00000000..59a4034f --- /dev/null +++ b/box1/Assets/Script/Excel/BEventgroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0cfdce0745ef67048a8d962b0eb1f0d3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/BEventtype.cs b/box1/Assets/Script/Excel/BEventtype.cs new file mode 100644 index 00000000..b7296ea9 --- /dev/null +++ b/box1/Assets/Script/Excel/BEventtype.cs @@ -0,0 +1,91 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public sealed partial class BEventtype : Luban.BeanBase +{ + public BEventtype(JSONNode _buf) + { + { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } + { if(!_buf["Eventtype"].IsNumber) { throw new SerializationException(); } Eventtype = _buf["Eventtype"]; } + { if(!_buf["Event1"].IsNumber) { throw new SerializationException(); } Event1 = _buf["Event1"]; } + { if(!_buf["Event2"].IsNumber) { throw new SerializationException(); } Event2 = _buf["Event2"]; } + { if(!_buf["Time"].IsNumber) { throw new SerializationException(); } Time = _buf["Time"]; } + { if(!_buf["Describe"].IsString) { throw new SerializationException(); } Describe = _buf["Describe"]; } + { if(!_buf["Weight"].IsNumber) { throw new SerializationException(); } Weight = _buf["Weight"]; } + { if(!_buf["Advertisement"].IsNumber) { throw new SerializationException(); } Advertisement = _buf["Advertisement"]; } + } + + public static BEventtype DeserializeBEventtype(JSONNode _buf) + { + return new BEventtype(_buf); + } + + /// + /// #ID + /// + public readonly int ID; + /// + /// 事件类型ID + /// + public readonly int Eventtype; + /// + /// 事件内容1 + /// + public readonly int Event1; + /// + /// 事件内容2 + /// + public readonly int Event2; + /// + /// 持续时间 + /// + public readonly int Time; + /// + /// 事件描述 + /// + public readonly string Describe; + /// + /// 出现权重 + /// + public readonly int Weight; + /// + /// 是否看广告 + /// + public readonly int Advertisement; + + public const int __ID__ = 1951362738; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "ID:" + ID + "," + + "Eventtype:" + Eventtype + "," + + "Event1:" + Event1 + "," + + "Event2:" + Event2 + "," + + "Time:" + Time + "," + + "Describe:" + Describe + "," + + "Weight:" + Weight + "," + + "Advertisement:" + Advertisement + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/BEventtype.cs.meta b/box1/Assets/Script/Excel/BEventtype.cs.meta new file mode 100644 index 00000000..2af1879d --- /dev/null +++ b/box1/Assets/Script/Excel/BEventtype.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f863b97dd9e53d34d9702baa53b487c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/BLevel.cs b/box1/Assets/Script/Excel/BLevel.cs new file mode 100644 index 00000000..24793737 --- /dev/null +++ b/box1/Assets/Script/Excel/BLevel.cs @@ -0,0 +1,127 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public sealed partial class BLevel : Luban.BeanBase +{ + public BLevel(JSONNode _buf) + { + { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["Front"].IsNumber) { throw new SerializationException(); } Front = _buf["Front"]; } + { if(!_buf["Strength"].IsNumber) { throw new SerializationException(); } Strength = _buf["Strength"]; } + { if(!_buf["Timetype"].IsNumber) { throw new SerializationException(); } Timetype = _buf["Timetype"]; } + { if(!_buf["Countdown"].IsNumber) { throw new SerializationException(); } Countdown = _buf["Countdown"]; } + { if(!_buf["Box"].IsNumber) { throw new SerializationException(); } Box = _buf["Box"]; } + { if(!_buf["Maintasks"].IsNumber) { throw new SerializationException(); } Maintasks = _buf["Maintasks"]; } + { var __json0 = _buf["Additionaltasks"]; if(!__json0.IsArray) { throw new SerializationException(); } Additionaltasks = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Additionaltasks.Add(__v0); } } + { if(!_buf["Length"].IsNumber) { throw new SerializationException(); } Length = _buf["Length"]; } + { if(!_buf["Target"].IsNumber) { throw new SerializationException(); } Target = _buf["Target"]; } + { var __json0 = _buf["Nodelocation"]; if(!__json0.IsArray) { throw new SerializationException(); } Nodelocation = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Nodelocation.Add(__v0); } } + { var __json0 = _buf["Eventgroupid"]; if(!__json0.IsArray) { throw new SerializationException(); } Eventgroupid = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Eventgroupid.Add(__v0); } } + { if(!_buf["Rewards"].IsNumber) { throw new SerializationException(); } Rewards = _buf["Rewards"]; } + } + + public static BLevel DeserializeBLevel(JSONNode _buf) + { + return new BLevel(_buf); + } + + /// + /// 关卡ID + /// + public readonly int ID; + /// + /// #ID + /// + public readonly string Name; + /// + /// 关卡开启前置 + /// + public readonly int Front; + /// + /// 体力消耗 + /// + public readonly int Strength; + /// + /// 时间类型 + /// + public readonly int Timetype; + /// + /// 装箱倒计时 + /// + public readonly int Countdown; + /// + /// 默认箱子 + /// + public readonly int Box; + /// + /// 关卡主要任务 + /// + public readonly int Maintasks; + /// + /// 关卡额外任务 + /// + public readonly System.Collections.Generic.List Additionaltasks; + /// + /// 关卡走路长度 + /// + public readonly int Length; + /// + /// 目标万分比 + /// + public readonly int Target; + /// + /// 关卡节点位置 + /// + public readonly System.Collections.Generic.List Nodelocation; + /// + /// 节点事件组ID + /// + public readonly System.Collections.Generic.List Eventgroupid; + /// + /// 关卡奖励 + /// + public readonly int Rewards; + + public const int __ID__ = 1962837090; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "ID:" + ID + "," + + "name:" + Name + "," + + "Front:" + Front + "," + + "Strength:" + Strength + "," + + "Timetype:" + Timetype + "," + + "Countdown:" + Countdown + "," + + "Box:" + Box + "," + + "Maintasks:" + Maintasks + "," + + "Additionaltasks:" + Luban.StringUtil.CollectionToString(Additionaltasks) + "," + + "Length:" + Length + "," + + "Target:" + Target + "," + + "Nodelocation:" + Luban.StringUtil.CollectionToString(Nodelocation) + "," + + "Eventgroupid:" + Luban.StringUtil.CollectionToString(Eventgroupid) + "," + + "Rewards:" + Rewards + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/BLevel.cs.meta b/box1/Assets/Script/Excel/BLevel.cs.meta new file mode 100644 index 00000000..8f383a67 --- /dev/null +++ b/box1/Assets/Script/Excel/BLevel.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1e5c21db17cc77b408d530c639781cc8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/BTask.cs b/box1/Assets/Script/Excel/BTask.cs new file mode 100644 index 00000000..24d3b57e --- /dev/null +++ b/box1/Assets/Script/Excel/BTask.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public sealed partial class BTask : Luban.BeanBase +{ + public BTask(JSONNode _buf) + { + { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } + { if(!_buf["Tasktype"].IsNumber) { throw new SerializationException(); } Tasktype = _buf["Tasktype"]; } + { if(!_buf["Targettype"].IsNumber) { throw new SerializationException(); } Targettype = _buf["Targettype"]; } + { if(!_buf["Targetid"].IsNumber) { throw new SerializationException(); } Targetid = _buf["Targetid"]; } + { if(!_buf["Targetnumber"].IsNumber) { throw new SerializationException(); } Targetnumber = _buf["Targetnumber"]; } + } + + public static BTask DeserializeBTask(JSONNode _buf) + { + return new BTask(_buf); + } + + /// + /// #ID + /// + public readonly int ID; + /// + /// 任务类型 + /// + public readonly int Tasktype; + /// + /// 目标类型 + /// + public readonly int Targettype; + /// + /// 目标ID + /// + public readonly int Targetid; + /// + /// 目标数量 + /// + public readonly int Targetnumber; + + public const int __ID__ = 63551719; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "ID:" + ID + "," + + "Tasktype:" + Tasktype + "," + + "Targettype:" + Targettype + "," + + "Targetid:" + Targetid + "," + + "Targetnumber:" + Targetnumber + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/BTask.cs.meta b/box1/Assets/Script/Excel/BTask.cs.meta new file mode 100644 index 00000000..78d575b9 --- /dev/null +++ b/box1/Assets/Script/Excel/BTask.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b530a63219c4b3447a3cb43edc52a06c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/Box.meta b/box1/Assets/Script/Excel/Box.meta new file mode 100644 index 00000000..6d22307d --- /dev/null +++ b/box1/Assets/Script/Excel/Box.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: deb462dfc261778458313fcdbf43def1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/Chapter.cs b/box1/Assets/Script/Excel/Chapter.cs new file mode 100644 index 00000000..a30b5450 --- /dev/null +++ b/box1/Assets/Script/Excel/Chapter.cs @@ -0,0 +1,53 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial class Chapter +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public Chapter(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + BChapter _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = BChapter.DeserializeBChapter(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.ID, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public BChapter GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public BChapter Get(int key) => _dataMap[key]; + public BChapter this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} + diff --git a/box1/Assets/Script/Excel/Chapter.cs.meta b/box1/Assets/Script/Excel/Chapter.cs.meta new file mode 100644 index 00000000..74f604ba --- /dev/null +++ b/box1/Assets/Script/Excel/Chapter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 46505779d7430af4cbd1d8de40252b62 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/Eventgroup.cs b/box1/Assets/Script/Excel/Eventgroup.cs new file mode 100644 index 00000000..d4277388 --- /dev/null +++ b/box1/Assets/Script/Excel/Eventgroup.cs @@ -0,0 +1,53 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial class Eventgroup +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public Eventgroup(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + BEventgroup _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = BEventgroup.DeserializeBEventgroup(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.ID, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public BEventgroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public BEventgroup Get(int key) => _dataMap[key]; + public BEventgroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} + diff --git a/box1/Assets/Script/Excel/Eventgroup.cs.meta b/box1/Assets/Script/Excel/Eventgroup.cs.meta new file mode 100644 index 00000000..44677495 --- /dev/null +++ b/box1/Assets/Script/Excel/Eventgroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5246b4b585aad76478ba26a7a96e5941 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/Eventtype.cs b/box1/Assets/Script/Excel/Eventtype.cs new file mode 100644 index 00000000..2a01d5a8 --- /dev/null +++ b/box1/Assets/Script/Excel/Eventtype.cs @@ -0,0 +1,53 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial class Eventtype +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public Eventtype(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + BEventtype _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = BEventtype.DeserializeBEventtype(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.ID, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public BEventtype GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public BEventtype Get(int key) => _dataMap[key]; + public BEventtype this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} + diff --git a/box1/Assets/Script/Excel/Eventtype.cs.meta b/box1/Assets/Script/Excel/Eventtype.cs.meta new file mode 100644 index 00000000..931fa097 --- /dev/null +++ b/box1/Assets/Script/Excel/Eventtype.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0b98ff8138670bd47a06a4bd7aa2111c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/Level.cs b/box1/Assets/Script/Excel/Level.cs new file mode 100644 index 00000000..99c20438 --- /dev/null +++ b/box1/Assets/Script/Excel/Level.cs @@ -0,0 +1,53 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial class Level +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public Level(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + BLevel _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = BLevel.DeserializeBLevel(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.ID, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public BLevel GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public BLevel Get(int key) => _dataMap[key]; + public BLevel this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} + diff --git a/box1/Assets/Script/Excel/Level.cs.meta b/box1/Assets/Script/Excel/Level.cs.meta new file mode 100644 index 00000000..7e9f1748 --- /dev/null +++ b/box1/Assets/Script/Excel/Level.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d53057e1ed382634d9faf97182119642 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/Tables.cs b/box1/Assets/Script/Excel/Tables.cs new file mode 100644 index 00000000..e0157952 --- /dev/null +++ b/box1/Assets/Script/Excel/Tables.cs @@ -0,0 +1,43 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + +namespace cfg +{ +public partial class Tables +{ + public Level Level {get; } + public Eventtype Eventtype {get; } + public Task Task {get; } + public Eventgroup Eventgroup {get; } + public Chapter Chapter {get; } + + public Tables(System.Func loader) + { + Level = new Level(loader("level")); + Eventtype = new Eventtype(loader("eventtype")); + Task = new Task(loader("task")); + Eventgroup = new Eventgroup(loader("eventgroup")); + Chapter = new Chapter(loader("chapter")); + ResolveRef(); + } + + private void ResolveRef() + { + Level.ResolveRef(this); + Eventtype.ResolveRef(this); + Task.ResolveRef(this); + Eventgroup.ResolveRef(this); + Chapter.ResolveRef(this); + } +} + +} diff --git a/box1/Assets/Script/Excel/Tables.cs.meta b/box1/Assets/Script/Excel/Tables.cs.meta new file mode 100644 index 00000000..6644cf2b --- /dev/null +++ b/box1/Assets/Script/Excel/Tables.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b4888c8f5c2f1d04eb1f07b41371fc7c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/Task.cs b/box1/Assets/Script/Excel/Task.cs new file mode 100644 index 00000000..0b0f41c9 --- /dev/null +++ b/box1/Assets/Script/Excel/Task.cs @@ -0,0 +1,53 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial class Task +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public Task(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + BTask _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = BTask.DeserializeBTask(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.ID, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public BTask GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public BTask Get(int key) => _dataMap[key]; + public BTask this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} + diff --git a/box1/Assets/Script/Excel/Task.cs.meta b/box1/Assets/Script/Excel/Task.cs.meta new file mode 100644 index 00000000..81a82663 --- /dev/null +++ b/box1/Assets/Script/Excel/Task.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4f9706895588d6d4ebabe9df6f422df7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/item.meta b/box1/Assets/Script/Excel/item.meta new file mode 100644 index 00000000..35b625e0 --- /dev/null +++ b/box1/Assets/Script/Excel/item.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1ad378e0186651344ac05c76aa3f2725 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/item/EQuality.cs b/box1/Assets/Script/Excel/item/EQuality.cs new file mode 100644 index 00000000..860c6003 --- /dev/null +++ b/box1/Assets/Script/Excel/item/EQuality.cs @@ -0,0 +1,35 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EQuality + { + /// + /// 最差品质 + /// + WHITE = 1, + /// + /// 蓝色的 + /// + BLUE = 2, + /// + /// 紫色的 + /// + PURPLE = 3, + /// + /// 最高品质 + /// + RED = 4, + } + +} + diff --git a/box1/Assets/Script/Excel/item/EQuality.cs.meta b/box1/Assets/Script/Excel/item/EQuality.cs.meta new file mode 100644 index 00000000..3cd50f2a --- /dev/null +++ b/box1/Assets/Script/Excel/item/EQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a53676b8a8c426348a6fa95129f1bfb5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/item/ItemExchange.cs b/box1/Assets/Script/Excel/item/ItemExchange.cs new file mode 100644 index 00000000..81c34c61 --- /dev/null +++ b/box1/Assets/Script/Excel/item/ItemExchange.cs @@ -0,0 +1,55 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg.item +{ +public sealed partial class ItemExchange : Luban.BeanBase +{ + public ItemExchange(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["num"].IsNumber) { throw new SerializationException(); } Num = _buf["num"]; } + } + + public static ItemExchange DeserializeItemExchange(JSONNode _buf) + { + return new item.ItemExchange(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + /// + /// 道具数量 + /// + public readonly int Num; + + public const int __ID__ = 1814660465; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "num:" + Num + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/item/ItemExchange.cs.meta b/box1/Assets/Script/Excel/item/ItemExchange.cs.meta new file mode 100644 index 00000000..3f26ffd9 --- /dev/null +++ b/box1/Assets/Script/Excel/item/ItemExchange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 91405efb6ed8a704d95484fb70c13416 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/test.meta b/box1/Assets/Script/Excel/test.meta new file mode 100644 index 00000000..035b979c --- /dev/null +++ b/box1/Assets/Script/Excel/test.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 22336dfb2546ad849ad71bb0ef36d045 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/test/AccessFlag.cs b/box1/Assets/Script/Excel/test/AccessFlag.cs new file mode 100644 index 00000000..ba8bb4e8 --- /dev/null +++ b/box1/Assets/Script/Excel/test/AccessFlag.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.test +{ + [System.Flags] + public enum AccessFlag + { + WRITE = 1, + READ = 2, + TRUNCATE = 4, + NEW = 8, + /// + /// 位标记使用示例 + /// + READ_WRITE = WRITE|READ, + } + +} + diff --git a/box1/Assets/Script/Excel/test/AccessFlag.cs.meta b/box1/Assets/Script/Excel/test/AccessFlag.cs.meta new file mode 100644 index 00000000..90cddb03 --- /dev/null +++ b/box1/Assets/Script/Excel/test/AccessFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 01d2fec7179cced42a813651b41e3c83 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/test/Circle.cs b/box1/Assets/Script/Excel/test/Circle.cs new file mode 100644 index 00000000..efacb646 --- /dev/null +++ b/box1/Assets/Script/Excel/test/Circle.cs @@ -0,0 +1,53 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg.test +{ +/// +/// 这是一个圆 +/// +public sealed partial class Circle : Shape +{ + public Circle(JSONNode _buf) : base(_buf) + { + { if(!_buf["radius"].IsNumber) { throw new SerializationException(); } Radius = _buf["radius"]; } + } + + public static Circle DeserializeCircle(JSONNode _buf) + { + return new test.Circle(_buf); + } + + /// + /// 半径 + /// + public readonly float Radius; + + public const int __ID__ = 2131829196; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "radius:" + Radius + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/test/Circle.cs.meta b/box1/Assets/Script/Excel/test/Circle.cs.meta new file mode 100644 index 00000000..54694e66 --- /dev/null +++ b/box1/Assets/Script/Excel/test/Circle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b3197e7ac6905014486459fce19dddda +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/test/Rectangle.cs b/box1/Assets/Script/Excel/test/Rectangle.cs new file mode 100644 index 00000000..fcf7d2c2 --- /dev/null +++ b/box1/Assets/Script/Excel/test/Rectangle.cs @@ -0,0 +1,59 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg.test +{ +/// +/// 这是一个矩形 +/// +public sealed partial class Rectangle : Shape +{ + public Rectangle(JSONNode _buf) : base(_buf) + { + { if(!_buf["width"].IsNumber) { throw new SerializationException(); } Width = _buf["width"]; } + { if(!_buf["height"].IsNumber) { throw new SerializationException(); } Height = _buf["height"]; } + } + + public static Rectangle DeserializeRectangle(JSONNode _buf) + { + return new test.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = -31893773; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "width:" + Width + "," + + "height:" + Height + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/test/Rectangle.cs.meta b/box1/Assets/Script/Excel/test/Rectangle.cs.meta new file mode 100644 index 00000000..3d7b7447 --- /dev/null +++ b/box1/Assets/Script/Excel/test/Rectangle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7e5080dbacdc1a74088fedf490689ea5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/test/Shape.cs b/box1/Assets/Script/Excel/test/Shape.cs new file mode 100644 index 00000000..9f08b523 --- /dev/null +++ b/box1/Assets/Script/Excel/test/Shape.cs @@ -0,0 +1,46 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg.test +{ +public abstract partial class Shape : Luban.BeanBase +{ + public Shape(JSONNode _buf) + { + } + + public static Shape DeserializeShape(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "Circle": return new test.Circle(_buf); + case "Rectangle": return new test.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/test/Shape.cs.meta b/box1/Assets/Script/Excel/test/Shape.cs.meta new file mode 100644 index 00000000..b62f11db --- /dev/null +++ b/box1/Assets/Script/Excel/test/Shape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2866f9fdf12eef240b474c2c76dfb1e6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/test/TestExcelBean1.cs b/box1/Assets/Script/Excel/test/TestExcelBean1.cs new file mode 100644 index 00000000..dcece9cf --- /dev/null +++ b/box1/Assets/Script/Excel/test/TestExcelBean1.cs @@ -0,0 +1,70 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg.test +{ +/// +/// 这是个测试excel结构 +/// +public sealed partial class TestExcelBean1 : Luban.BeanBase +{ + public TestExcelBean1(JSONNode _buf) + { + { if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; } + { if(!_buf["x2"].IsString) { throw new SerializationException(); } X2 = _buf["x2"]; } + { if(!_buf["x3"].IsNumber) { throw new SerializationException(); } X3 = _buf["x3"]; } + { if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; } + } + + public static TestExcelBean1 DeserializeTestExcelBean1(JSONNode _buf) + { + return new test.TestExcelBean1(_buf); + } + + /// + /// 最高品质 + /// + public readonly int X1; + /// + /// 黑色的 + /// + public readonly string X2; + /// + /// 蓝色的 + /// + public readonly int X3; + /// + /// 最差品质 + /// + public readonly float X4; + + public const int __ID__ = -1738345160; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/test/TestExcelBean1.cs.meta b/box1/Assets/Script/Excel/test/TestExcelBean1.cs.meta new file mode 100644 index 00000000..4bc0dce7 --- /dev/null +++ b/box1/Assets/Script/Excel/test/TestExcelBean1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 088984aabfd601e4aa842070a6c57c84 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/test/TestExcelBean2.cs b/box1/Assets/Script/Excel/test/TestExcelBean2.cs new file mode 100644 index 00000000..5df8cf79 --- /dev/null +++ b/box1/Assets/Script/Excel/test/TestExcelBean2.cs @@ -0,0 +1,64 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg.test +{ +/// +/// 这是个测试excel结构 +/// +public sealed partial class TestExcelBean2 : Luban.BeanBase +{ + public TestExcelBean2(JSONNode _buf) + { + { if(!_buf["y1"].IsNumber) { throw new SerializationException(); } Y1 = _buf["y1"]; } + { if(!_buf["y2"].IsString) { throw new SerializationException(); } Y2 = _buf["y2"]; } + { if(!_buf["y3"].IsNumber) { throw new SerializationException(); } Y3 = _buf["y3"]; } + } + + public static TestExcelBean2 DeserializeTestExcelBean2(JSONNode _buf) + { + return new test.TestExcelBean2(_buf); + } + + /// + /// 最高品质 + /// + public readonly int Y1; + /// + /// 黑色的 + /// + public readonly string Y2; + /// + /// 蓝色的 + /// + public readonly float Y3; + + public const int __ID__ = -1738345159; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/test/TestExcelBean2.cs.meta b/box1/Assets/Script/Excel/test/TestExcelBean2.cs.meta new file mode 100644 index 00000000..9707a734 --- /dev/null +++ b/box1/Assets/Script/Excel/test/TestExcelBean2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 23fe7aa1264480d4c98b3f283623bf74 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/vector2.cs b/box1/Assets/Script/Excel/vector2.cs new file mode 100644 index 00000000..4a244b76 --- /dev/null +++ b/box1/Assets/Script/Excel/vector2.cs @@ -0,0 +1,47 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial struct vector2 +{ + public vector2(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + } + + public static vector2 Deserializevector2(JSONNode _buf) + { + return new vector2(_buf); + } + + public readonly float X; + public readonly float Y; + + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/vector2.cs.meta b/box1/Assets/Script/Excel/vector2.cs.meta new file mode 100644 index 00000000..6241c43e --- /dev/null +++ b/box1/Assets/Script/Excel/vector2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d4f52de2f702e94ea02046041db9856 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/vector3.cs b/box1/Assets/Script/Excel/vector3.cs new file mode 100644 index 00000000..6876532b --- /dev/null +++ b/box1/Assets/Script/Excel/vector3.cs @@ -0,0 +1,50 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial struct vector3 +{ + public vector3(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + { if(!_buf["z"].IsNumber) { throw new SerializationException(); } Z = _buf["z"]; } + } + + public static vector3 Deserializevector3(JSONNode _buf) + { + return new vector3(_buf); + } + + public readonly float X; + public readonly float Y; + public readonly float Z; + + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/vector3.cs.meta b/box1/Assets/Script/Excel/vector3.cs.meta new file mode 100644 index 00000000..784552f8 --- /dev/null +++ b/box1/Assets/Script/Excel/vector3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ff555286881a5844d8a12a09b3b74d2c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Excel/vector4.cs b/box1/Assets/Script/Excel/vector4.cs new file mode 100644 index 00000000..4f19c272 --- /dev/null +++ b/box1/Assets/Script/Excel/vector4.cs @@ -0,0 +1,53 @@ + +//------------------------------------------------------------------------------ +// +// 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; +using SimpleJSON; + + +namespace cfg +{ +public partial struct vector4 +{ + public vector4(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + { if(!_buf["z"].IsNumber) { throw new SerializationException(); } Z = _buf["z"]; } + { if(!_buf["w"].IsNumber) { throw new SerializationException(); } W = _buf["w"]; } + } + + public static vector4 Deserializevector4(JSONNode _buf) + { + return new vector4(_buf); + } + + public readonly float X; + public readonly float Y; + public readonly float Z; + public readonly float W; + + + public void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "w:" + W + "," + + "}"; + } +} + +} + diff --git a/box1/Assets/Script/Excel/vector4.cs.meta b/box1/Assets/Script/Excel/vector4.cs.meta new file mode 100644 index 00000000..2f953399 --- /dev/null +++ b/box1/Assets/Script/Excel/vector4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 94b8c074a6f034b4eaa3eff7608e0d4d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/GameManager.cs b/box1/Assets/Script/GameManager.cs index ba7c4762..2330ac97 100644 --- a/box1/Assets/Script/GameManager.cs +++ b/box1/Assets/Script/GameManager.cs @@ -1,12 +1,14 @@ using System; using System.Collections; using System.Collections.Generic; +using Unity.VisualScripting; using UnityEngine; using Random = UnityEngine.Random; public class GameManager : MonoBehaviour { public static GameManager ins; + private JsonTab _tab; public bool start; public Camera mainCamera; public List itemDatas; @@ -51,6 +53,8 @@ public class GameManager : MonoBehaviour private void Awake() { ins = this; + _tab = new JsonTab(); + _tab.InitData(); } private void Start() @@ -62,7 +66,7 @@ public class GameManager : MonoBehaviour { start = true; index = 2; - var indexID = Random.Range(0, 4); + // var indexID = Random.Range(0, 4); // switch (indexID) // { // case 0: @@ -148,6 +152,11 @@ public class GameManager : MonoBehaviour { item.Reset(); } + + foreach (var grid in MapManager.ins.WaitList) + { + grid.ResetWaitBack(); + } } else { @@ -170,6 +179,15 @@ public class GameManager : MonoBehaviour seletObj.startGrid = stopGrid; ItemSystem.ins.GetGridsRest(seletObj.startGrid, seletObj); + foreach (var item in ItemSystem.ins.itemObjs) + { + item.Reset(); + } + + foreach (var grid in MapManager.ins.WaitList) + { + grid.ResetWaitBack(); + } } } if (seletObj!=null) diff --git a/box1/Assets/Script/Item/ItemObj.cs b/box1/Assets/Script/Item/ItemObj.cs index d43c8e72..4d5ca4dd 100644 --- a/box1/Assets/Script/Item/ItemObj.cs +++ b/box1/Assets/Script/Item/ItemObj.cs @@ -72,7 +72,6 @@ public class ItemObj : MonoBehaviour } else { - Debug.LogError("1111"); MaterialPropertyBlock mats = new MaterialPropertyBlock(); mats.SetColor("_VeColor",Color.gray); spine.GetComponent().SetPropertyBlock(mats); diff --git a/box1/Assets/Script/ItemSystem.cs b/box1/Assets/Script/ItemSystem.cs index 3aba2eeb..d5f22ee3 100644 --- a/box1/Assets/Script/ItemSystem.cs +++ b/box1/Assets/Script/ItemSystem.cs @@ -57,7 +57,10 @@ public class ItemSystem : MonoBehaviour itemObjs.Add(item); } } - +/// +/// 开启随机 +/// +/// public void RandomItem(List list) { List objs = new List(); @@ -73,7 +76,10 @@ public class ItemSystem : MonoBehaviour var randomData = RandomSortList(objs); ResetPool(randomData); } - +/// +/// 放置道具 +/// +/// public void ResetPool(List ListT) { List> list = new List>(); @@ -94,7 +100,9 @@ public class ItemSystem : MonoBehaviour GetMatrixIndex(itemMatrix[index], item,list[index], out var bos); } } - if (itemObjs.Count>0) + + CoordinateRandom(list); + if (itemObjs.Count>0)//清理预制体 { for (int i = itemObjs.Count-1; i >= 0; i--) { @@ -131,8 +139,75 @@ public class ItemSystem : MonoBehaviour { item.Reset(); } + + foreach (var grid in MapManager.ins.WaitList) + { + grid.ResetWaitBack(); + } } + private void CoordinateRandom(List> list) + { + foreach (var startList in list) + { + ItemObj[,] itemMatrix=new ItemObj[MapManager.ins.waitX, MapManager.ins.waitY]; + foreach (var start in startList) + { + for (int i = start.x; i < start.x+start.item.itemSize.x; i++) + { + for (int j = start.y; j < start.y+start.item.itemSize.y; j++) + { + itemMatrix[i, j] = start.item; + } + } + } + foreach (var start in startList) + { + RandomCoordinate(itemMatrix, start); + } + } + } + + private void RandomCoordinate(ItemObj[,] itemMatrix,StartGrid startGrid) + { + + int indexX = UnityEngine.Random.Range(startGrid.x, MapManager.ins.waitX-startGrid.item.itemSize.x); + int indexY = UnityEngine.Random.Range(startGrid.y, MapManager.ins.waitY-startGrid.item.itemSize.y); + for (int i = startGrid.x; i < startGrid.x+startGrid.item.itemSize.x; i++) + { + for (int j = startGrid.y; j < startGrid.y+startGrid.item.itemSize.y; j++) + { + itemMatrix[i, j] = null; + } + } + for (int i = indexX; i < startGrid.item.itemSize.x+indexX; i++) + { + for (int j = indexY; j < startGrid.item.itemSize.y+indexY; j++) + { + if (itemMatrix[i,j]!=null) + { + RandomCoordinate(itemMatrix, startGrid); + return; + } + } + } + for (int i = indexX; i < startGrid.item.itemSize.x+indexX; i++) + { + for (int j = indexY; j < startGrid.item.itemSize.y+indexY; j++) + { + itemMatrix[i, j] = startGrid.item; + } + } + startGrid.x = indexX; + startGrid.y = indexY; + } +/// +/// 放置道具 +/// +/// +/// +/// +/// public void GetMatrixIndex(ItemObj[,] itemObjs,ItemObj item,List grids,out bool bo) { for (int i = 0; i < MapManager.ins.waitX; i++) @@ -162,7 +237,14 @@ public class ItemSystem : MonoBehaviour bo = false; } - + /// + /// 判断是否可以放置 + /// + /// + /// + /// + /// + /// public bool MatrixNull(ItemObj[,] itemObjs,ItemObj item,int x, int y) { if (x+item.itemSize.x>MapManager.ins.waitX||y + item.itemSize.y>MapManager.ins.waitY) diff --git a/box1/Assets/Script/JsonTab.cs b/box1/Assets/Script/JsonTab.cs new file mode 100644 index 00000000..edbb7370 --- /dev/null +++ b/box1/Assets/Script/JsonTab.cs @@ -0,0 +1,36 @@ +using System.Collections; +using System.Collections.Generic; +using System.IO; +using cfg; +using SimpleJSON; +using UnityEngine; + +public class JsonTab +{ + private static JsonTab instance; + + public static JsonTab Instance + { + get { return instance; } + } + + public Tables tables; + + public JsonTab() // 这是构造函数 + { + if (instance == null) + instance = this; + } + + public void InitData(){ + tables = new Tables(Loader); + } + + private JSONNode Loader(string fileName) + { + string data = Resources.Load(fileName).ToString(); + // File.ReadAllText(Application.streamingAssetsPath + "/" + fileName + ".json"); + return JSON.Parse(data); + } +} + diff --git a/box1/Assets/Script/JsonTab.cs.meta b/box1/Assets/Script/JsonTab.cs.meta new file mode 100644 index 00000000..73a9955d --- /dev/null +++ b/box1/Assets/Script/JsonTab.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 88c80ad92befca54880c54d5f6e0f3da +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Assets/Script/Map/Grid.cs b/box1/Assets/Script/Map/Grid.cs index cd7b1616..38ad91ca 100644 --- a/box1/Assets/Script/Map/Grid.cs +++ b/box1/Assets/Script/Map/Grid.cs @@ -20,7 +20,7 @@ public class Grid : MonoBehaviour public bool unLock => gridLock; [SerializeField] private bool gridLock = true; public ItemObj item; - public Stack stackItem=new Stack(); + public Stack stackItem = new Stack(); [SerializeField] private GameObject back; [SerializeField] private GameObject backGrid; @@ -111,6 +111,29 @@ public class Grid : MonoBehaviour } } + public void ResetWaitBack() + { + if (Type==GridType.wait) + { + if (stackItem.Count>1||(itemObj()!=null&&!itemObj().CanSelected())) + { + MaterialPropertyBlock mats = new MaterialPropertyBlock(); + mats.SetColor("_VeColor",Color.gray); + spine.GetComponent().SetPropertyBlock(mats); + back.SetActive(false); + backGrid.SetActive(false); + } + else + { + MaterialPropertyBlock mats = new MaterialPropertyBlock(); + mats.SetColor("_VeColor",Color.white); + spine.GetComponent().SetPropertyBlock(mats); + back.SetActive(false); + backGrid.SetActive(false); + } + } + } + private void OnMouseEnter() { GameManager.ins.stopGrid = this; @@ -123,7 +146,11 @@ public class Grid : MonoBehaviour GameManager.ins.stopGrid = null; } } - + /// + /// 返回区块资源 + /// + /// + /// public ItemObj GetItemObj() { return Type switch diff --git a/box1/Assets/Script/Map/MapManager.cs b/box1/Assets/Script/Map/MapManager.cs index cad9f1f0..9423500f 100644 --- a/box1/Assets/Script/Map/MapManager.cs +++ b/box1/Assets/Script/Map/MapManager.cs @@ -20,6 +20,7 @@ public class MapManager : MonoBehaviour public int waitY => wy; [SerializeField] private int wy; [SerializeField] private Transform waitGridParent; + public List WaitList => _waitGridList; [SerializeField] private List _waitGridList; [SerializeField] private SkeletonAnimation boxSpine; public Transform lockParent=>unLockParent; diff --git a/box1/Assets/Script/TaskSystem.cs b/box1/Assets/Script/TaskSystem.cs new file mode 100644 index 00000000..53a830f7 --- /dev/null +++ b/box1/Assets/Script/TaskSystem.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public static class TaskSystem +{ + public static Action taskEvent; + +} diff --git a/box1/Assets/Script/TaskSystem.cs.meta b/box1/Assets/Script/TaskSystem.cs.meta new file mode 100644 index 00000000..68cc8a73 --- /dev/null +++ b/box1/Assets/Script/TaskSystem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 11d45a75c18b509489665e6e4594964c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/box1/Luban/CommandLine.dll b/box1/Luban/CommandLine.dll new file mode 100644 index 0000000000000000000000000000000000000000..3eab2be274359223f5640b0af04b2af375cce752 GIT binary patch literal 225280 zcmeFa2bdhi)i&DOJ=-%o8>HD?&8*_CfLV$OivkEqfDjoI1c)TbN<(I#=fCv1Z*DRFl$O}oz z|3lx8YHDK|`0mRv_`cEX1Eby(meGdz+zTw@z$pBq!hLnog))Ws9+5NyD~>yB1>$EN z=a-9Rh1}7k&@{6;U>NBF{4MDpY$_NsZCW0|X2KJw zVRX%~j2*$H$uKh3%4vo%Ic?elTiK;8)l3o!7h7Cs767H3nk{gqw}rQ}6@rCqAy@c8 z-%;1Auk~$l&_Q=BizIip2Eh^^9Hw^W5L}=PN#kh90JUejE0E;$o^=_Bl+Wty)15~C zjOh?nXk?!6&!-=1hG1w$ zpn+as73gJC@EE2S65GNlt{0}Zt8}A!`QhE?=3{zc@&6d9>euQV!KK=t{0}Zg>zId)2h$?JEj*&II_Ml^(gh_ zjF?`Sek^(+!!he+dk|AE3+RV>AsBiQXrLE#UC>K@q+UpDSLw#}!qm2Kj_TzPpPhSu zOfQmfq+XbM6usOV(+ks&MK5GHX1(kHV(Mj~@9#*zQtxSqhJJ`On>|5Ff3p;A9o;AN z)bHzQZ@aX+-(fJ3U8Sq_w58wQkc%xjiJs68?L@v+vbDu^c1BS8A@HX?_JYs9zU2pQ z2)ZBLsR{d$+FS?*TARM^!z`R#fJ0}+zUpG|OhW$d%A3&f#Cl&vu4BgcXb(LRmo$D%(n{3!j^`}*BMOug(uKhz7s(2GC=y3sc*|IjWc6-#Po;m|i5|NWC!iD0*>YdSUvp=!Fc&te200n0nch zeyA6Mp%;M$dP$33iX-(xV!KK=t{0}Zg>zIdZKovX#`GcyN9u*CN72h|F}*PTSoA`M zW7Z2g4bjWq^h3Q647~_6&`Yc6r8H76B(|$`<9cCgyGl2zm*0JA$pzIdo3-Sw zis?lXj?@cNk5XUukLiW!$D$W99J5}qXc4{aM?cgH!O)991HH71UIs?$g~WE1Zd@-+ zZCB|=^>Wq`3w|8aizFPW7fIK+zFZX33)7E9FJw4oz3dNS)|bWfL%k3Ty$CeWONZ!X z%aM8^v0bGb*9%kI!a1s!P5=4(_hNdHgd_FB)T7jwZ^!h)^kdNr8ID;m2Y{G*!6G)Q z7lNS|fd+aRCwiGNQZFR7t90XfVQO1ANA;4Ocyez{FOqPiUYL3my}TdO3)7E9FJw4o zy&ME$>g8biVSOPOdJ$-#m+_*PnIrW=V!KK=t{0}Zg>zIdzxn>}SCm}8TREjfvv>T_(ewX1YTpJV@f!w)WsX;avb)F$)L+VrXQ99x(-oMT@E9fxyl zavh6~naxM(m~(9AJLWm|G7!@iANT!3>4)nbqG1bSVGBXlZP6*VK!uXIWyBUtWLN3N zZ9y)!WlYL%%+=`RjT zMEeV-AB+CT@T2rsU+)|NV(R5c`k`J3hF%03=%riqf&vU*?~vH8(v9ndscqpL)k|(& z>gAYTB;iQCF!d;Uxi+R3rXP!5$Z*VhISRzo%hA4n4E?a}5)J(ji?%DsdfS~KdYUt` z?J|*Fr5kU%$6-H8u4B>8r0FO=zg1#b(F+*m2SL_GPNz7qjmJv#Xoo^ zrd3HeQmafoN*&#?Iofuaek}SU!;jKmz3m9@i zu4BqC zlm(~9v?>WlYL%%+siW`5>L}BXMSo=YQTnUb(NjQ7y_`xv)Cia>6{ICZ8e+-mnxz@7h)n@)*xEA#LOxWfke5r zaxFNyHAGgMRzjJ`&Ko4nEVD}AIX4hl3bYVQJKp%U>AHsfgbLSk<= z*Y1b{0CgAhm6W-41mO(ucKVubmZ>a=;$Fl=>#dQA%pjGeQwia+;Ueku#^f0Z10#zu znYKaRU#{nEn9e7Wg-S59Pa%}v*wva_hYF2D$>e(XVgVU;!Dzx_)G)>wU7HwPM8_nI zMbt1=3v^J&PD8)_=(^A7B98B_eSJXJ3X3;*MKEU|JY6gX{{x=h=JvA^Up3+#BE^#~T^G2~Mk> zw3IE}w2X@(V=wvL3@rG4mR^-^%(z4LEdaTsU$PF zzV3ji{)Zz?>3mTDUxKSzz}Y)P-P5him?l}4VHYGt|Ro0e)rAfehBWuFGw<*$3l#`ay&eH2{G z?%HGUL``2tV90(Pt_yWQO~ll`${@9<(O)C_>w+dmVZ*Da(4hSK5!7ea;I3rQFR*vo zydE>__1TKm=O@4q-Qq&3IN{glCkgAf5~jk=NU^YqWvWgFrkM&$M3&1m4n?V^({|1` zL0#V2TyY%L`xM3N1`$;CEg~k`D^4Kqr1Nb=lg@YGy5EIUuvcK7G1+;VfbS7tt~iN+ zXX*fEJb@V^uP*dK%iwRqdiyL$@(J(z@L1-sKgw4L18CcN!SiSq&ynTxaJ(1b4A~nP ze-VzK0j?}KKR`4rs*Fb`Bfm|hjO;(k2b(K)f`IAD{$Q?^xb`#v{NZRFXlg%%BZhkk zfg$^4xb7>24HBcWC`~vVxjzDIwN}3LBq(UtjAr8qB{Ah!Oxg| zQ0-M_!W#1$0z>xeaQ%#liDbNn7|Hl#-7l5{{wzR2#*ISFM`a>es~kY+g zgO>PWC({^!pNIU=?i)atT04!Q38*ZS?P9CB;tZ(E@kS;lNGE2;z5qk=PXNX+`W8G&B>n;nwm$r)KHT@+pXs>!bM32%EZ8(t>jri( z4fMIj=Cnhn;rs$rr4-uE+ax#DBwBJZlh9@+>q(rp9kjm$t(rojSOU^-F@io}JHI0R zRMJCr%)$9JA&>*D5PeH;5a?q7`C4ob@qA6YPn~DQL23mHT_3 zFu42y-jMxAxbC}f6pUUhoM$?JLZpoPRf8R!KNEwZpx_FcEMoe!!X@H8Af&%Rdx*&` zw)hLN33J5?lKvGD=Wm3dp8~m7Szizk-Su;lhN@XCV1W2LXj$?6pq?MFtTT`oRD!bp z10?9l&